mermaid.js 2.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory();
  4. else if(typeof define === 'function' && define.amd)
  5. define([], factory);
  6. else if(typeof exports === 'object')
  7. exports["mermaid"] = factory();
  8. else
  9. root["mermaid"] = factory();
  10. })(window, function() {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = "./src/mermaid.js");
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "./node_modules/@braintree/sanitize-url/index.js":
  99. /*!*******************************************************!*\
  100. !*** ./node_modules/@braintree/sanitize-url/index.js ***!
  101. \*******************************************************/
  102. /*! no static exports found */
  103. /***/ (function(module, exports, __webpack_require__) {
  104. "use strict";
  105. var invalidPrototcolRegex = /^(%20|\s)*(javascript|data)/im;
  106. var ctrlCharactersRegex = /[^\x20-\x7E]/gmi;
  107. var urlSchemeRegex = /^([^:]+):/gm;
  108. var relativeFirstCharacters = ['.', '/']
  109. function isRelativeUrl(url) {
  110. return relativeFirstCharacters.indexOf(url[0]) > -1;
  111. }
  112. function sanitizeUrl(url) {
  113. if (!url) {
  114. return 'about:blank';
  115. }
  116. var urlScheme, urlSchemeParseResults;
  117. var sanitizedUrl = url.replace(ctrlCharactersRegex, '').trim();
  118. if (isRelativeUrl(sanitizedUrl)) {
  119. return sanitizedUrl;
  120. }
  121. urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);
  122. if (!urlSchemeParseResults) {
  123. return 'about:blank';
  124. }
  125. urlScheme = urlSchemeParseResults[0];
  126. if (invalidPrototcolRegex.test(urlScheme)) {
  127. return 'about:blank';
  128. }
  129. return sanitizedUrl;
  130. }
  131. module.exports = {
  132. sanitizeUrl: sanitizeUrl
  133. };
  134. /***/ }),
  135. /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/dark/index.scss":
  136. /*!*******************************************************************************************************************!*\
  137. !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/dark/index.scss ***!
  138. \*******************************************************************************************************************/
  139. /*! no static exports found */
  140. /***/ (function(module, exports, __webpack_require__) {
  141. exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
  142. // Module
  143. exports.push([module.i, "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #BDD5EA;\n stroke: purple;\n stroke-width: 1px; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: lightgrey; }\n\n.edgePath .path {\n stroke: lightgrey;\n stroke-width: 1.5px; }\n\n.edgeLabel {\n background-color: #e8e8e8; }\n\n.cluster rect {\n fill: #6D6D65;\n stroke: rgba(255, 255, 255, 0.25);\n stroke-width: 1px; }\n\n.cluster text {\n fill: #F9FFFE; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #6D6D65;\n border: 1px solid rgba(255, 255, 255, 0.25);\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #81B1DB;\n fill: #BDD5EA; }\n\ntext.actor {\n fill: black;\n stroke: none; }\n\n.actor-line {\n stroke: lightgrey; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: lightgrey; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: lightgrey; }\n\n#arrowhead {\n fill: lightgrey; }\n\n.sequenceNumber {\n fill: white; }\n\n#sequencenumber {\n fill: lightgrey; }\n\n#crosshead path {\n fill: lightgrey !important;\n stroke: lightgrey !important; }\n\n.messageText {\n fill: lightgrey;\n stroke: none; }\n\n.labelBox {\n stroke: #81B1DB;\n fill: #BDD5EA; }\n\n.labelText {\n fill: #323D47;\n stroke: none; }\n\n.loopText {\n fill: lightgrey;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: '2 2';\n stroke: #81B1DB; }\n\n.note {\n stroke: rgba(255, 255, 255, 0.25);\n fill: #fff5ad; }\n\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px; }\n\n.activation0 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation1 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation2 {\n fill: #f4f4f4;\n stroke: #666; }\n\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: rgba(255, 255, 255, 0.3); }\n\n.section2 {\n fill: #EAE8B9; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #F9FFFE; }\n\n.sectionTitle1 {\n fill: #F9FFFE; }\n\n.sectionTitle2 {\n fill: #F9FFFE; }\n\n.sectionTitle3 {\n fill: #F9FFFE; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px; }\n\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.3;\n shape-rendering: crispEdges; }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: #DB5757;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: #323D47;\n text-anchor: start;\n font-size: 11px; }\n\n.taskTextOutsideLeft {\n fill: #323D47;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: #323D47; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #BDD5EA;\n stroke: rgba(255, 255, 255, 0.5); }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: lightgrey; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: lightgrey; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #81B1DB;\n stroke: rgba(255, 255, 255, 0.5); }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: #323D47 !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: #323D47 !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #E83737;\n fill: #E83737;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #E83737;\n fill: #81B1DB;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #E83737;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: #323D47 !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: #323D47 !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: #323D47; }\n\ng.classGroup text {\n fill: purple;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 10px; }\n\ng.classGroup rect {\n fill: #BDD5EA;\n stroke: purple; }\n\ng.classGroup line {\n stroke: purple;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #BDD5EA;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: purple;\n font-size: 10px; }\n\n.relation {\n stroke: purple;\n stroke-width: 1;\n fill: none; }\n\n#compositionStart {\n fill: purple;\n stroke: purple;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: purple;\n stroke: purple;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #BDD5EA;\n stroke: purple;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #BDD5EA;\n stroke: purple;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: purple;\n stroke: purple;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: purple;\n stroke: purple;\n stroke-width: 1; }\n\n#extensionStart {\n fill: purple;\n stroke: purple;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: purple;\n stroke: purple;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey; }\n", ""]);
  144. /***/ }),
  145. /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/default/index.scss":
  146. /*!**********************************************************************************************************************!*\
  147. !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/default/index.scss ***!
  148. \**********************************************************************************************************************/
  149. /*! no static exports found */
  150. /***/ (function(module, exports, __webpack_require__) {
  151. exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
  152. // Module
  153. exports.push([module.i, "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #ECECFF;\n stroke: #9370DB;\n stroke-width: 1px; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: #333333; }\n\n.edgePath .path {\n stroke: #333333;\n stroke-width: 1.5px; }\n\n.edgeLabel {\n background-color: #e8e8e8; }\n\n.cluster rect {\n fill: #ffffde;\n stroke: #aaaa33;\n stroke-width: 1px; }\n\n.cluster text {\n fill: #333; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #ffffde;\n border: 1px solid #aaaa33;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #CCCCFF;\n fill: #ECECFF; }\n\ntext.actor {\n fill: black;\n stroke: none; }\n\n.actor-line {\n stroke: grey; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: #333; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: #333; }\n\n#arrowhead {\n fill: #333; }\n\n.sequenceNumber {\n fill: white; }\n\n#sequencenumber {\n fill: #333; }\n\n#crosshead path {\n fill: #333 !important;\n stroke: #333 !important; }\n\n.messageText {\n fill: #333;\n stroke: none; }\n\n.labelBox {\n stroke: #CCCCFF;\n fill: #ECECFF; }\n\n.labelText {\n fill: black;\n stroke: none; }\n\n.loopText {\n fill: black;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: '2 2';\n stroke: #CCCCFF; }\n\n.note {\n stroke: #aaaa33;\n fill: #fff5ad; }\n\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px; }\n\n.activation0 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation1 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation2 {\n fill: #f4f4f4;\n stroke: #666; }\n\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: rgba(102, 102, 255, 0.49); }\n\n.section2 {\n fill: #fff400; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #333; }\n\n.sectionTitle1 {\n fill: #333; }\n\n.sectionTitle2 {\n fill: #333; }\n\n.sectionTitle3 {\n fill: #333; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px; }\n\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.3;\n shape-rendering: crispEdges; }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: red;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: black;\n text-anchor: start;\n font-size: 11px; }\n\n.taskTextOutsideLeft {\n fill: black;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #8a90dd;\n stroke: #534fbc; }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: black; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: black; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #bfc7ff;\n stroke: #534fbc; }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: black !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: black !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #ff8888;\n fill: red;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #ff8888;\n fill: #bfc7ff;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #ff8888;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: black !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: black !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: black; }\n\ng.classGroup text {\n fill: #9370DB;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 10px; }\n\ng.classGroup rect {\n fill: #ECECFF;\n stroke: #9370DB; }\n\ng.classGroup line {\n stroke: #9370DB;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #ECECFF;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: #9370DB;\n font-size: 10px; }\n\n.relation {\n stroke: #9370DB;\n stroke-width: 1;\n fill: none; }\n\n#compositionStart {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #ECECFF;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #ECECFF;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#extensionStart {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey; }\n", ""]);
  154. /***/ }),
  155. /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/forest/index.scss":
  156. /*!*********************************************************************************************************************!*\
  157. !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/forest/index.scss ***!
  158. \*********************************************************************************************************************/
  159. /*! no static exports found */
  160. /***/ (function(module, exports, __webpack_require__) {
  161. exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
  162. // Module
  163. exports.push([module.i, "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1px; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: green; }\n\n.edgePath .path {\n stroke: green;\n stroke-width: 1.5px; }\n\n.edgeLabel {\n background-color: #e8e8e8; }\n\n.cluster rect {\n fill: #cdffb2;\n stroke: #6eaa49;\n stroke-width: 1px; }\n\n.cluster text {\n fill: #333; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #cdffb2;\n border: 1px solid #6eaa49;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #13540c;\n fill: #cde498; }\n\ntext.actor {\n fill: black;\n stroke: none; }\n\n.actor-line {\n stroke: grey; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: #333; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: #333; }\n\n#arrowhead {\n fill: #333; }\n\n.sequenceNumber {\n fill: white; }\n\n#sequencenumber {\n fill: #333; }\n\n#crosshead path {\n fill: #333 !important;\n stroke: #333 !important; }\n\n.messageText {\n fill: #333;\n stroke: none; }\n\n.labelBox {\n stroke: #326932;\n fill: #cde498; }\n\n.labelText {\n fill: black;\n stroke: none; }\n\n.loopText {\n fill: black;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: '2 2';\n stroke: #326932; }\n\n.note {\n stroke: #6eaa49;\n fill: #fff5ad; }\n\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px; }\n\n.activation0 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation1 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation2 {\n fill: #f4f4f4;\n stroke: #666; }\n\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: #6eaa49; }\n\n.section2 {\n fill: #6eaa49; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #333; }\n\n.sectionTitle1 {\n fill: #333; }\n\n.sectionTitle2 {\n fill: #333; }\n\n.sectionTitle3 {\n fill: #333; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px; }\n\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.3;\n shape-rendering: crispEdges; }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: red;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: black;\n text-anchor: start;\n font-size: 11px; }\n\n.taskTextOutsideLeft {\n fill: black;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #487e3a;\n stroke: #13540c; }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: black; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: black; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #cde498;\n stroke: #13540c; }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: black !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: black !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #ff8888;\n fill: red;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #ff8888;\n fill: #cde498;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #ff8888;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: black !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: black !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: black; }\n\ng.classGroup text {\n fill: #13540c;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 10px; }\n\ng.classGroup rect {\n fill: #cde498;\n stroke: #13540c; }\n\ng.classGroup line {\n stroke: #13540c;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #cde498;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: #13540c;\n font-size: 10px; }\n\n.relation {\n stroke: #13540c;\n stroke-width: 1;\n fill: none; }\n\n#compositionStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#extensionStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey; }\n", ""]);
  164. /***/ }),
  165. /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/neutral/index.scss":
  166. /*!**********************************************************************************************************************!*\
  167. !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/neutral/index.scss ***!
  168. \**********************************************************************************************************************/
  169. /*! no static exports found */
  170. /***/ (function(module, exports, __webpack_require__) {
  171. exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
  172. // Module
  173. exports.push([module.i, "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #eee;\n stroke: #999;\n stroke-width: 1px; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: #333333; }\n\n.edgePath .path {\n stroke: #666;\n stroke-width: 1.5px; }\n\n.edgeLabel {\n background-color: white; }\n\n.cluster rect {\n fill: #eaf2fb;\n stroke: #26a;\n stroke-width: 1px; }\n\n.cluster text {\n fill: #333; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #eaf2fb;\n border: 1px solid #26a;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #999;\n fill: #eee; }\n\ntext.actor {\n fill: #333;\n stroke: none; }\n\n.actor-line {\n stroke: #666; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: #333; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: '2 2';\n stroke: #333; }\n\n#arrowhead {\n fill: #333; }\n\n.sequenceNumber {\n fill: white; }\n\n#sequencenumber {\n fill: #333; }\n\n#crosshead path {\n fill: #333 !important;\n stroke: #333 !important; }\n\n.messageText {\n fill: #333;\n stroke: none; }\n\n.labelBox {\n stroke: #999;\n fill: #eee; }\n\n.labelText {\n fill: #333;\n stroke: none; }\n\n.loopText {\n fill: #333;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: '2 2';\n stroke: #999; }\n\n.note {\n stroke: #777700;\n fill: #ffa; }\n\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px; }\n\n.activation0 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation1 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation2 {\n fill: #f4f4f4;\n stroke: #666; }\n\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: #80b3e6; }\n\n.section2 {\n fill: #80b3e6; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #333; }\n\n.sectionTitle1 {\n fill: #333; }\n\n.sectionTitle2 {\n fill: #333; }\n\n.sectionTitle3 {\n fill: #333; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px; }\n\n/* Grid and axis */\n.grid .tick {\n stroke: #e6e6e6;\n opacity: 0.3;\n shape-rendering: crispEdges; }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: #d42;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: #333;\n text-anchor: start;\n font-size: 11px; }\n\n.taskTextOutsideLeft {\n fill: #333;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #26a;\n stroke: #1a4d80; }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: #333; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: #333; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #eee;\n stroke: #1a4d80; }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: #333 !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: #666;\n fill: #bbb;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: #333 !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #b1361b;\n fill: #d42;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #b1361b;\n fill: #eee;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #b1361b;\n fill: #bbb;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: #333 !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: #333 !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: #333; }\n\ng.classGroup text {\n fill: #999;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 10px; }\n\ng.classGroup rect {\n fill: #eee;\n stroke: #999; }\n\ng.classGroup line {\n stroke: #999;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #eee;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: #999;\n font-size: 10px; }\n\n.relation {\n stroke: #999;\n stroke-width: 1;\n fill: none; }\n\n#compositionStart {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #eee;\n stroke: #999;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #eee;\n stroke: #999;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#extensionStart {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey; }\n", ""]);
  174. /***/ }),
  175. /***/ "./node_modules/css-loader/dist/runtime/api.js":
  176. /*!*****************************************************!*\
  177. !*** ./node_modules/css-loader/dist/runtime/api.js ***!
  178. \*****************************************************/
  179. /*! no static exports found */
  180. /***/ (function(module, exports, __webpack_require__) {
  181. "use strict";
  182. /*
  183. MIT License http://www.opensource.org/licenses/mit-license.php
  184. Author Tobias Koppers @sokra
  185. */
  186. // css base code, injected by the css-loader
  187. module.exports = function (useSourceMap) {
  188. var list = []; // return the list of modules as css string
  189. list.toString = function toString() {
  190. return this.map(function (item) {
  191. var content = cssWithMappingToString(item, useSourceMap);
  192. if (item[2]) {
  193. return '@media ' + item[2] + '{' + content + '}';
  194. } else {
  195. return content;
  196. }
  197. }).join('');
  198. }; // import a list of modules into the list
  199. list.i = function (modules, mediaQuery) {
  200. if (typeof modules === 'string') {
  201. modules = [[null, modules, '']];
  202. }
  203. var alreadyImportedModules = {};
  204. for (var i = 0; i < this.length; i++) {
  205. var id = this[i][0];
  206. if (id != null) {
  207. alreadyImportedModules[id] = true;
  208. }
  209. }
  210. for (i = 0; i < modules.length; i++) {
  211. var item = modules[i]; // skip already imported module
  212. // this implementation is not 100% perfect for weird media query combinations
  213. // when a module is imported multiple times with different media queries.
  214. // I hope this will never occur (Hey this way we have smaller bundles)
  215. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  216. if (mediaQuery && !item[2]) {
  217. item[2] = mediaQuery;
  218. } else if (mediaQuery) {
  219. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  220. }
  221. list.push(item);
  222. }
  223. }
  224. };
  225. return list;
  226. };
  227. function cssWithMappingToString(item, useSourceMap) {
  228. var content = item[1] || '';
  229. var cssMapping = item[3];
  230. if (!cssMapping) {
  231. return content;
  232. }
  233. if (useSourceMap && typeof btoa === 'function') {
  234. var sourceMapping = toComment(cssMapping);
  235. var sourceURLs = cssMapping.sources.map(function (source) {
  236. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  237. });
  238. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  239. }
  240. return [content].join('\n');
  241. } // Adapted from convert-source-map (MIT)
  242. function toComment(sourceMap) {
  243. // eslint-disable-next-line no-undef
  244. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  245. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  246. return '/*# ' + data + ' */';
  247. }
  248. /***/ }),
  249. /***/ "./node_modules/d3-array/src/array.js":
  250. /*!********************************************!*\
  251. !*** ./node_modules/d3-array/src/array.js ***!
  252. \********************************************/
  253. /*! exports provided: slice, map */
  254. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  255. "use strict";
  256. __webpack_require__.r(__webpack_exports__);
  257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; });
  259. var array = Array.prototype;
  260. var slice = array.slice;
  261. var map = array.map;
  262. /***/ }),
  263. /***/ "./node_modules/d3-array/src/ascending.js":
  264. /*!************************************************!*\
  265. !*** ./node_modules/d3-array/src/ascending.js ***!
  266. \************************************************/
  267. /*! exports provided: default */
  268. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  269. "use strict";
  270. __webpack_require__.r(__webpack_exports__);
  271. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  272. return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
  273. });
  274. /***/ }),
  275. /***/ "./node_modules/d3-array/src/bisect.js":
  276. /*!*********************************************!*\
  277. !*** ./node_modules/d3-array/src/bisect.js ***!
  278. \*********************************************/
  279. /*! exports provided: bisectRight, bisectLeft, default */
  280. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  281. "use strict";
  282. __webpack_require__.r(__webpack_exports__);
  283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return bisectRight; });
  284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return bisectLeft; });
  285. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  286. /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js");
  287. var ascendingBisect = Object(_bisector__WEBPACK_IMPORTED_MODULE_1__["default"])(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]);
  288. var bisectRight = ascendingBisect.right;
  289. var bisectLeft = ascendingBisect.left;
  290. /* harmony default export */ __webpack_exports__["default"] = (bisectRight);
  291. /***/ }),
  292. /***/ "./node_modules/d3-array/src/bisector.js":
  293. /*!***********************************************!*\
  294. !*** ./node_modules/d3-array/src/bisector.js ***!
  295. \***********************************************/
  296. /*! exports provided: default */
  297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  298. "use strict";
  299. __webpack_require__.r(__webpack_exports__);
  300. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  301. /* harmony default export */ __webpack_exports__["default"] = (function(compare) {
  302. if (compare.length === 1) compare = ascendingComparator(compare);
  303. return {
  304. left: function(a, x, lo, hi) {
  305. if (lo == null) lo = 0;
  306. if (hi == null) hi = a.length;
  307. while (lo < hi) {
  308. var mid = lo + hi >>> 1;
  309. if (compare(a[mid], x) < 0) lo = mid + 1;
  310. else hi = mid;
  311. }
  312. return lo;
  313. },
  314. right: function(a, x, lo, hi) {
  315. if (lo == null) lo = 0;
  316. if (hi == null) hi = a.length;
  317. while (lo < hi) {
  318. var mid = lo + hi >>> 1;
  319. if (compare(a[mid], x) > 0) hi = mid;
  320. else lo = mid + 1;
  321. }
  322. return lo;
  323. }
  324. };
  325. });
  326. function ascendingComparator(f) {
  327. return function(d, x) {
  328. return Object(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"])(f(d), x);
  329. };
  330. }
  331. /***/ }),
  332. /***/ "./node_modules/d3-array/src/constant.js":
  333. /*!***********************************************!*\
  334. !*** ./node_modules/d3-array/src/constant.js ***!
  335. \***********************************************/
  336. /*! exports provided: default */
  337. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  338. "use strict";
  339. __webpack_require__.r(__webpack_exports__);
  340. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  341. return function() {
  342. return x;
  343. };
  344. });
  345. /***/ }),
  346. /***/ "./node_modules/d3-array/src/cross.js":
  347. /*!********************************************!*\
  348. !*** ./node_modules/d3-array/src/cross.js ***!
  349. \********************************************/
  350. /*! exports provided: default */
  351. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  352. "use strict";
  353. __webpack_require__.r(__webpack_exports__);
  354. /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js");
  355. /* harmony default export */ __webpack_exports__["default"] = (function(values0, values1, reduce) {
  356. var n0 = values0.length,
  357. n1 = values1.length,
  358. values = new Array(n0 * n1),
  359. i0,
  360. i1,
  361. i,
  362. value0;
  363. if (reduce == null) reduce = _pairs__WEBPACK_IMPORTED_MODULE_0__["pair"];
  364. for (i0 = i = 0; i0 < n0; ++i0) {
  365. for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {
  366. values[i] = reduce(value0, values1[i1]);
  367. }
  368. }
  369. return values;
  370. });
  371. /***/ }),
  372. /***/ "./node_modules/d3-array/src/descending.js":
  373. /*!*************************************************!*\
  374. !*** ./node_modules/d3-array/src/descending.js ***!
  375. \*************************************************/
  376. /*! exports provided: default */
  377. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  378. "use strict";
  379. __webpack_require__.r(__webpack_exports__);
  380. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  381. return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
  382. });
  383. /***/ }),
  384. /***/ "./node_modules/d3-array/src/deviation.js":
  385. /*!************************************************!*\
  386. !*** ./node_modules/d3-array/src/deviation.js ***!
  387. \************************************************/
  388. /*! exports provided: default */
  389. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  390. "use strict";
  391. __webpack_require__.r(__webpack_exports__);
  392. /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js");
  393. /* harmony default export */ __webpack_exports__["default"] = (function(array, f) {
  394. var v = Object(_variance__WEBPACK_IMPORTED_MODULE_0__["default"])(array, f);
  395. return v ? Math.sqrt(v) : v;
  396. });
  397. /***/ }),
  398. /***/ "./node_modules/d3-array/src/extent.js":
  399. /*!*********************************************!*\
  400. !*** ./node_modules/d3-array/src/extent.js ***!
  401. \*********************************************/
  402. /*! exports provided: default */
  403. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  404. "use strict";
  405. __webpack_require__.r(__webpack_exports__);
  406. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  407. var n = values.length,
  408. i = -1,
  409. value,
  410. min,
  411. max;
  412. if (valueof == null) {
  413. while (++i < n) { // Find the first comparable value.
  414. if ((value = values[i]) != null && value >= value) {
  415. min = max = value;
  416. while (++i < n) { // Compare the remaining values.
  417. if ((value = values[i]) != null) {
  418. if (min > value) min = value;
  419. if (max < value) max = value;
  420. }
  421. }
  422. }
  423. }
  424. }
  425. else {
  426. while (++i < n) { // Find the first comparable value.
  427. if ((value = valueof(values[i], i, values)) != null && value >= value) {
  428. min = max = value;
  429. while (++i < n) { // Compare the remaining values.
  430. if ((value = valueof(values[i], i, values)) != null) {
  431. if (min > value) min = value;
  432. if (max < value) max = value;
  433. }
  434. }
  435. }
  436. }
  437. }
  438. return [min, max];
  439. });
  440. /***/ }),
  441. /***/ "./node_modules/d3-array/src/histogram.js":
  442. /*!************************************************!*\
  443. !*** ./node_modules/d3-array/src/histogram.js ***!
  444. \************************************************/
  445. /*! exports provided: default */
  446. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  447. "use strict";
  448. __webpack_require__.r(__webpack_exports__);
  449. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-array/src/array.js");
  450. /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js");
  451. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-array/src/constant.js");
  452. /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js");
  453. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-array/src/identity.js");
  454. /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js");
  455. /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js");
  456. /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js");
  457. /* harmony default export */ __webpack_exports__["default"] = (function() {
  458. var value = _identity__WEBPACK_IMPORTED_MODULE_4__["default"],
  459. domain = _extent__WEBPACK_IMPORTED_MODULE_3__["default"],
  460. threshold = _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__["default"];
  461. function histogram(data) {
  462. var i,
  463. n = data.length,
  464. x,
  465. values = new Array(n);
  466. for (i = 0; i < n; ++i) {
  467. values[i] = value(data[i], i, data);
  468. }
  469. var xz = domain(values),
  470. x0 = xz[0],
  471. x1 = xz[1],
  472. tz = threshold(values, x0, x1);
  473. // Convert number of thresholds into uniform thresholds.
  474. if (!Array.isArray(tz)) {
  475. tz = Object(_ticks__WEBPACK_IMPORTED_MODULE_6__["tickStep"])(x0, x1, tz);
  476. tz = Object(_range__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive
  477. }
  478. // Remove any thresholds outside the domain.
  479. var m = tz.length;
  480. while (tz[0] <= x0) tz.shift(), --m;
  481. while (tz[m - 1] > x1) tz.pop(), --m;
  482. var bins = new Array(m + 1),
  483. bin;
  484. // Initialize bins.
  485. for (i = 0; i <= m; ++i) {
  486. bin = bins[i] = [];
  487. bin.x0 = i > 0 ? tz[i - 1] : x0;
  488. bin.x1 = i < m ? tz[i] : x1;
  489. }
  490. // Assign data to bins by value, ignoring any outside the domain.
  491. for (i = 0; i < n; ++i) {
  492. x = values[i];
  493. if (x0 <= x && x <= x1) {
  494. bins[Object(_bisect__WEBPACK_IMPORTED_MODULE_1__["default"])(tz, x, 0, m)].push(data[i]);
  495. }
  496. }
  497. return bins;
  498. }
  499. histogram.value = function(_) {
  500. return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : value;
  501. };
  502. histogram.domain = function(_) {
  503. return arguments.length ? (domain = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])([_[0], _[1]]), histogram) : domain;
  504. };
  505. histogram.thresholds = function(_) {
  506. return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)) : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : threshold;
  507. };
  508. return histogram;
  509. });
  510. /***/ }),
  511. /***/ "./node_modules/d3-array/src/identity.js":
  512. /*!***********************************************!*\
  513. !*** ./node_modules/d3-array/src/identity.js ***!
  514. \***********************************************/
  515. /*! exports provided: default */
  516. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  517. "use strict";
  518. __webpack_require__.r(__webpack_exports__);
  519. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  520. return x;
  521. });
  522. /***/ }),
  523. /***/ "./node_modules/d3-array/src/index.js":
  524. /*!********************************************!*\
  525. !*** ./node_modules/d3-array/src/index.js ***!
  526. \********************************************/
  527. /*! exports provided: bisect, bisectRight, bisectLeft, ascending, bisector, cross, descending, deviation, extent, histogram, thresholdFreedmanDiaconis, thresholdScott, thresholdSturges, max, mean, median, merge, min, pairs, permute, quantile, range, scan, shuffle, sum, ticks, tickIncrement, tickStep, transpose, variance, zip */
  528. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  529. "use strict";
  530. __webpack_require__.r(__webpack_exports__);
  531. /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js");
  532. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  533. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectRight"]; });
  534. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectLeft"]; });
  535. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  536. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return _ascending__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  537. /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js");
  538. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return _bisector__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  539. /* harmony import */ var _cross__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cross */ "./node_modules/d3-array/src/cross.js");
  540. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return _cross__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  541. /* harmony import */ var _descending__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./descending */ "./node_modules/d3-array/src/descending.js");
  542. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return _descending__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  543. /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./deviation */ "./node_modules/d3-array/src/deviation.js");
  544. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return _deviation__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  545. /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js");
  546. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return _extent__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  547. /* harmony import */ var _histogram__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./histogram */ "./node_modules/d3-array/src/histogram.js");
  548. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return _histogram__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  549. /* harmony import */ var _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./threshold/freedmanDiaconis */ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js");
  550. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  551. /* harmony import */ var _threshold_scott__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./threshold/scott */ "./node_modules/d3-array/src/threshold/scott.js");
  552. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return _threshold_scott__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  553. /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js");
  554. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  555. /* harmony import */ var _max__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./max */ "./node_modules/d3-array/src/max.js");
  556. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return _max__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  557. /* harmony import */ var _mean__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./mean */ "./node_modules/d3-array/src/mean.js");
  558. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return _mean__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  559. /* harmony import */ var _median__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./median */ "./node_modules/d3-array/src/median.js");
  560. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "median", function() { return _median__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  561. /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-array/src/merge.js");
  562. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _merge__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  563. /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js");
  564. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return _min__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  565. /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js");
  566. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return _pairs__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  567. /* harmony import */ var _permute__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./permute */ "./node_modules/d3-array/src/permute.js");
  568. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return _permute__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  569. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js");
  570. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return _quantile__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  571. /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js");
  572. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return _range__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  573. /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./scan */ "./node_modules/d3-array/src/scan.js");
  574. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return _scan__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  575. /* harmony import */ var _shuffle__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./shuffle */ "./node_modules/d3-array/src/shuffle.js");
  576. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return _shuffle__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  577. /* harmony import */ var _sum__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sum */ "./node_modules/d3-array/src/sum.js");
  578. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return _sum__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  579. /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js");
  580. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  581. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickIncrement"]; });
  582. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickStep"]; });
  583. /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js");
  584. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return _transpose__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  585. /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js");
  586. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return _variance__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  587. /* harmony import */ var _zip__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./zip */ "./node_modules/d3-array/src/zip.js");
  588. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _zip__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  589. /***/ }),
  590. /***/ "./node_modules/d3-array/src/max.js":
  591. /*!******************************************!*\
  592. !*** ./node_modules/d3-array/src/max.js ***!
  593. \******************************************/
  594. /*! exports provided: default */
  595. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  596. "use strict";
  597. __webpack_require__.r(__webpack_exports__);
  598. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  599. var n = values.length,
  600. i = -1,
  601. value,
  602. max;
  603. if (valueof == null) {
  604. while (++i < n) { // Find the first comparable value.
  605. if ((value = values[i]) != null && value >= value) {
  606. max = value;
  607. while (++i < n) { // Compare the remaining values.
  608. if ((value = values[i]) != null && value > max) {
  609. max = value;
  610. }
  611. }
  612. }
  613. }
  614. }
  615. else {
  616. while (++i < n) { // Find the first comparable value.
  617. if ((value = valueof(values[i], i, values)) != null && value >= value) {
  618. max = value;
  619. while (++i < n) { // Compare the remaining values.
  620. if ((value = valueof(values[i], i, values)) != null && value > max) {
  621. max = value;
  622. }
  623. }
  624. }
  625. }
  626. }
  627. return max;
  628. });
  629. /***/ }),
  630. /***/ "./node_modules/d3-array/src/mean.js":
  631. /*!*******************************************!*\
  632. !*** ./node_modules/d3-array/src/mean.js ***!
  633. \*******************************************/
  634. /*! exports provided: default */
  635. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  636. "use strict";
  637. __webpack_require__.r(__webpack_exports__);
  638. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  639. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  640. var n = values.length,
  641. m = n,
  642. i = -1,
  643. value,
  644. sum = 0;
  645. if (valueof == null) {
  646. while (++i < n) {
  647. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) sum += value;
  648. else --m;
  649. }
  650. }
  651. else {
  652. while (++i < n) {
  653. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) sum += value;
  654. else --m;
  655. }
  656. }
  657. if (m) return sum / m;
  658. });
  659. /***/ }),
  660. /***/ "./node_modules/d3-array/src/median.js":
  661. /*!*********************************************!*\
  662. !*** ./node_modules/d3-array/src/median.js ***!
  663. \*********************************************/
  664. /*! exports provided: default */
  665. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  666. "use strict";
  667. __webpack_require__.r(__webpack_exports__);
  668. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  669. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  670. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js");
  671. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  672. var n = values.length,
  673. i = -1,
  674. value,
  675. numbers = [];
  676. if (valueof == null) {
  677. while (++i < n) {
  678. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(values[i]))) {
  679. numbers.push(value);
  680. }
  681. }
  682. }
  683. else {
  684. while (++i < n) {
  685. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(valueof(values[i], i, values)))) {
  686. numbers.push(value);
  687. }
  688. }
  689. }
  690. return Object(_quantile__WEBPACK_IMPORTED_MODULE_2__["default"])(numbers.sort(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]), 0.5);
  691. });
  692. /***/ }),
  693. /***/ "./node_modules/d3-array/src/merge.js":
  694. /*!********************************************!*\
  695. !*** ./node_modules/d3-array/src/merge.js ***!
  696. \********************************************/
  697. /*! exports provided: default */
  698. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  699. "use strict";
  700. __webpack_require__.r(__webpack_exports__);
  701. /* harmony default export */ __webpack_exports__["default"] = (function(arrays) {
  702. var n = arrays.length,
  703. m,
  704. i = -1,
  705. j = 0,
  706. merged,
  707. array;
  708. while (++i < n) j += arrays[i].length;
  709. merged = new Array(j);
  710. while (--n >= 0) {
  711. array = arrays[n];
  712. m = array.length;
  713. while (--m >= 0) {
  714. merged[--j] = array[m];
  715. }
  716. }
  717. return merged;
  718. });
  719. /***/ }),
  720. /***/ "./node_modules/d3-array/src/min.js":
  721. /*!******************************************!*\
  722. !*** ./node_modules/d3-array/src/min.js ***!
  723. \******************************************/
  724. /*! exports provided: default */
  725. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  726. "use strict";
  727. __webpack_require__.r(__webpack_exports__);
  728. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  729. var n = values.length,
  730. i = -1,
  731. value,
  732. min;
  733. if (valueof == null) {
  734. while (++i < n) { // Find the first comparable value.
  735. if ((value = values[i]) != null && value >= value) {
  736. min = value;
  737. while (++i < n) { // Compare the remaining values.
  738. if ((value = values[i]) != null && min > value) {
  739. min = value;
  740. }
  741. }
  742. }
  743. }
  744. }
  745. else {
  746. while (++i < n) { // Find the first comparable value.
  747. if ((value = valueof(values[i], i, values)) != null && value >= value) {
  748. min = value;
  749. while (++i < n) { // Compare the remaining values.
  750. if ((value = valueof(values[i], i, values)) != null && min > value) {
  751. min = value;
  752. }
  753. }
  754. }
  755. }
  756. }
  757. return min;
  758. });
  759. /***/ }),
  760. /***/ "./node_modules/d3-array/src/number.js":
  761. /*!*********************************************!*\
  762. !*** ./node_modules/d3-array/src/number.js ***!
  763. \*********************************************/
  764. /*! exports provided: default */
  765. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  766. "use strict";
  767. __webpack_require__.r(__webpack_exports__);
  768. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  769. return x === null ? NaN : +x;
  770. });
  771. /***/ }),
  772. /***/ "./node_modules/d3-array/src/pairs.js":
  773. /*!********************************************!*\
  774. !*** ./node_modules/d3-array/src/pairs.js ***!
  775. \********************************************/
  776. /*! exports provided: default, pair */
  777. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  778. "use strict";
  779. __webpack_require__.r(__webpack_exports__);
  780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pair", function() { return pair; });
  781. /* harmony default export */ __webpack_exports__["default"] = (function(array, f) {
  782. if (f == null) f = pair;
  783. var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);
  784. while (i < n) pairs[i] = f(p, p = array[++i]);
  785. return pairs;
  786. });
  787. function pair(a, b) {
  788. return [a, b];
  789. }
  790. /***/ }),
  791. /***/ "./node_modules/d3-array/src/permute.js":
  792. /*!**********************************************!*\
  793. !*** ./node_modules/d3-array/src/permute.js ***!
  794. \**********************************************/
  795. /*! exports provided: default */
  796. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  797. "use strict";
  798. __webpack_require__.r(__webpack_exports__);
  799. /* harmony default export */ __webpack_exports__["default"] = (function(array, indexes) {
  800. var i = indexes.length, permutes = new Array(i);
  801. while (i--) permutes[i] = array[indexes[i]];
  802. return permutes;
  803. });
  804. /***/ }),
  805. /***/ "./node_modules/d3-array/src/quantile.js":
  806. /*!***********************************************!*\
  807. !*** ./node_modules/d3-array/src/quantile.js ***!
  808. \***********************************************/
  809. /*! exports provided: default */
  810. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  811. "use strict";
  812. __webpack_require__.r(__webpack_exports__);
  813. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  814. /* harmony default export */ __webpack_exports__["default"] = (function(values, p, valueof) {
  815. if (valueof == null) valueof = _number__WEBPACK_IMPORTED_MODULE_0__["default"];
  816. if (!(n = values.length)) return;
  817. if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
  818. if (p >= 1) return +valueof(values[n - 1], n - 1, values);
  819. var n,
  820. i = (n - 1) * p,
  821. i0 = Math.floor(i),
  822. value0 = +valueof(values[i0], i0, values),
  823. value1 = +valueof(values[i0 + 1], i0 + 1, values);
  824. return value0 + (value1 - value0) * (i - i0);
  825. });
  826. /***/ }),
  827. /***/ "./node_modules/d3-array/src/range.js":
  828. /*!********************************************!*\
  829. !*** ./node_modules/d3-array/src/range.js ***!
  830. \********************************************/
  831. /*! exports provided: default */
  832. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  833. "use strict";
  834. __webpack_require__.r(__webpack_exports__);
  835. /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, step) {
  836. start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
  837. var i = -1,
  838. n = Math.max(0, Math.ceil((stop - start) / step)) | 0,
  839. range = new Array(n);
  840. while (++i < n) {
  841. range[i] = start + i * step;
  842. }
  843. return range;
  844. });
  845. /***/ }),
  846. /***/ "./node_modules/d3-array/src/scan.js":
  847. /*!*******************************************!*\
  848. !*** ./node_modules/d3-array/src/scan.js ***!
  849. \*******************************************/
  850. /*! exports provided: default */
  851. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  852. "use strict";
  853. __webpack_require__.r(__webpack_exports__);
  854. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  855. /* harmony default export */ __webpack_exports__["default"] = (function(values, compare) {
  856. if (!(n = values.length)) return;
  857. var n,
  858. i = 0,
  859. j = 0,
  860. xi,
  861. xj = values[j];
  862. if (compare == null) compare = _ascending__WEBPACK_IMPORTED_MODULE_0__["default"];
  863. while (++i < n) {
  864. if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {
  865. xj = xi, j = i;
  866. }
  867. }
  868. if (compare(xj, xj) === 0) return j;
  869. });
  870. /***/ }),
  871. /***/ "./node_modules/d3-array/src/shuffle.js":
  872. /*!**********************************************!*\
  873. !*** ./node_modules/d3-array/src/shuffle.js ***!
  874. \**********************************************/
  875. /*! exports provided: default */
  876. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  877. "use strict";
  878. __webpack_require__.r(__webpack_exports__);
  879. /* harmony default export */ __webpack_exports__["default"] = (function(array, i0, i1) {
  880. var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),
  881. t,
  882. i;
  883. while (m) {
  884. i = Math.random() * m-- | 0;
  885. t = array[m + i0];
  886. array[m + i0] = array[i + i0];
  887. array[i + i0] = t;
  888. }
  889. return array;
  890. });
  891. /***/ }),
  892. /***/ "./node_modules/d3-array/src/sum.js":
  893. /*!******************************************!*\
  894. !*** ./node_modules/d3-array/src/sum.js ***!
  895. \******************************************/
  896. /*! exports provided: default */
  897. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  898. "use strict";
  899. __webpack_require__.r(__webpack_exports__);
  900. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  901. var n = values.length,
  902. i = -1,
  903. value,
  904. sum = 0;
  905. if (valueof == null) {
  906. while (++i < n) {
  907. if (value = +values[i]) sum += value; // Note: zero and null are equivalent.
  908. }
  909. }
  910. else {
  911. while (++i < n) {
  912. if (value = +valueof(values[i], i, values)) sum += value;
  913. }
  914. }
  915. return sum;
  916. });
  917. /***/ }),
  918. /***/ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js":
  919. /*!*****************************************************************!*\
  920. !*** ./node_modules/d3-array/src/threshold/freedmanDiaconis.js ***!
  921. \*****************************************************************/
  922. /*! exports provided: default */
  923. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  924. "use strict";
  925. __webpack_require__.r(__webpack_exports__);
  926. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array */ "./node_modules/d3-array/src/array.js");
  927. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ascending */ "./node_modules/d3-array/src/ascending.js");
  928. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../number */ "./node_modules/d3-array/src/number.js");
  929. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../quantile */ "./node_modules/d3-array/src/quantile.js");
  930. /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) {
  931. values = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(values, _number__WEBPACK_IMPORTED_MODULE_2__["default"]).sort(_ascending__WEBPACK_IMPORTED_MODULE_1__["default"]);
  932. return Math.ceil((max - min) / (2 * (Object(_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.75) - Object(_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.25)) * Math.pow(values.length, -1 / 3)));
  933. });
  934. /***/ }),
  935. /***/ "./node_modules/d3-array/src/threshold/scott.js":
  936. /*!******************************************************!*\
  937. !*** ./node_modules/d3-array/src/threshold/scott.js ***!
  938. \******************************************************/
  939. /*! exports provided: default */
  940. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  941. "use strict";
  942. __webpack_require__.r(__webpack_exports__);
  943. /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../deviation */ "./node_modules/d3-array/src/deviation.js");
  944. /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) {
  945. return Math.ceil((max - min) / (3.5 * Object(_deviation__WEBPACK_IMPORTED_MODULE_0__["default"])(values) * Math.pow(values.length, -1 / 3)));
  946. });
  947. /***/ }),
  948. /***/ "./node_modules/d3-array/src/threshold/sturges.js":
  949. /*!********************************************************!*\
  950. !*** ./node_modules/d3-array/src/threshold/sturges.js ***!
  951. \********************************************************/
  952. /*! exports provided: default */
  953. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  954. "use strict";
  955. __webpack_require__.r(__webpack_exports__);
  956. /* harmony default export */ __webpack_exports__["default"] = (function(values) {
  957. return Math.ceil(Math.log(values.length) / Math.LN2) + 1;
  958. });
  959. /***/ }),
  960. /***/ "./node_modules/d3-array/src/ticks.js":
  961. /*!********************************************!*\
  962. !*** ./node_modules/d3-array/src/ticks.js ***!
  963. \********************************************/
  964. /*! exports provided: default, tickIncrement, tickStep */
  965. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  966. "use strict";
  967. __webpack_require__.r(__webpack_exports__);
  968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return tickIncrement; });
  969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return tickStep; });
  970. var e10 = Math.sqrt(50),
  971. e5 = Math.sqrt(10),
  972. e2 = Math.sqrt(2);
  973. /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, count) {
  974. var reverse,
  975. i = -1,
  976. n,
  977. ticks,
  978. step;
  979. stop = +stop, start = +start, count = +count;
  980. if (start === stop && count > 0) return [start];
  981. if (reverse = stop < start) n = start, start = stop, stop = n;
  982. if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
  983. if (step > 0) {
  984. start = Math.ceil(start / step);
  985. stop = Math.floor(stop / step);
  986. ticks = new Array(n = Math.ceil(stop - start + 1));
  987. while (++i < n) ticks[i] = (start + i) * step;
  988. } else {
  989. start = Math.floor(start * step);
  990. stop = Math.ceil(stop * step);
  991. ticks = new Array(n = Math.ceil(start - stop + 1));
  992. while (++i < n) ticks[i] = (start - i) / step;
  993. }
  994. if (reverse) ticks.reverse();
  995. return ticks;
  996. });
  997. function tickIncrement(start, stop, count) {
  998. var step = (stop - start) / Math.max(0, count),
  999. power = Math.floor(Math.log(step) / Math.LN10),
  1000. error = step / Math.pow(10, power);
  1001. return power >= 0
  1002. ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
  1003. : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
  1004. }
  1005. function tickStep(start, stop, count) {
  1006. var step0 = Math.abs(stop - start) / Math.max(0, count),
  1007. step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
  1008. error = step0 / step1;
  1009. if (error >= e10) step1 *= 10;
  1010. else if (error >= e5) step1 *= 5;
  1011. else if (error >= e2) step1 *= 2;
  1012. return stop < start ? -step1 : step1;
  1013. }
  1014. /***/ }),
  1015. /***/ "./node_modules/d3-array/src/transpose.js":
  1016. /*!************************************************!*\
  1017. !*** ./node_modules/d3-array/src/transpose.js ***!
  1018. \************************************************/
  1019. /*! exports provided: default */
  1020. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1021. "use strict";
  1022. __webpack_require__.r(__webpack_exports__);
  1023. /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js");
  1024. /* harmony default export */ __webpack_exports__["default"] = (function(matrix) {
  1025. if (!(n = matrix.length)) return [];
  1026. for (var i = -1, m = Object(_min__WEBPACK_IMPORTED_MODULE_0__["default"])(matrix, length), transpose = new Array(m); ++i < m;) {
  1027. for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {
  1028. row[j] = matrix[j][i];
  1029. }
  1030. }
  1031. return transpose;
  1032. });
  1033. function length(d) {
  1034. return d.length;
  1035. }
  1036. /***/ }),
  1037. /***/ "./node_modules/d3-array/src/variance.js":
  1038. /*!***********************************************!*\
  1039. !*** ./node_modules/d3-array/src/variance.js ***!
  1040. \***********************************************/
  1041. /*! exports provided: default */
  1042. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1043. "use strict";
  1044. __webpack_require__.r(__webpack_exports__);
  1045. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  1046. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  1047. var n = values.length,
  1048. m = 0,
  1049. i = -1,
  1050. mean = 0,
  1051. value,
  1052. delta,
  1053. sum = 0;
  1054. if (valueof == null) {
  1055. while (++i < n) {
  1056. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) {
  1057. delta = value - mean;
  1058. mean += delta / ++m;
  1059. sum += delta * (value - mean);
  1060. }
  1061. }
  1062. }
  1063. else {
  1064. while (++i < n) {
  1065. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) {
  1066. delta = value - mean;
  1067. mean += delta / ++m;
  1068. sum += delta * (value - mean);
  1069. }
  1070. }
  1071. }
  1072. if (m > 1) return sum / (m - 1);
  1073. });
  1074. /***/ }),
  1075. /***/ "./node_modules/d3-array/src/zip.js":
  1076. /*!******************************************!*\
  1077. !*** ./node_modules/d3-array/src/zip.js ***!
  1078. \******************************************/
  1079. /*! exports provided: default */
  1080. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1081. "use strict";
  1082. __webpack_require__.r(__webpack_exports__);
  1083. /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js");
  1084. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1085. return Object(_transpose__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments);
  1086. });
  1087. /***/ }),
  1088. /***/ "./node_modules/d3-axis/src/array.js":
  1089. /*!*******************************************!*\
  1090. !*** ./node_modules/d3-axis/src/array.js ***!
  1091. \*******************************************/
  1092. /*! exports provided: slice */
  1093. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1094. "use strict";
  1095. __webpack_require__.r(__webpack_exports__);
  1096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  1097. var slice = Array.prototype.slice;
  1098. /***/ }),
  1099. /***/ "./node_modules/d3-axis/src/axis.js":
  1100. /*!******************************************!*\
  1101. !*** ./node_modules/d3-axis/src/axis.js ***!
  1102. \******************************************/
  1103. /*! exports provided: axisTop, axisRight, axisBottom, axisLeft */
  1104. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1105. "use strict";
  1106. __webpack_require__.r(__webpack_exports__);
  1107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisTop", function() { return axisTop; });
  1108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisRight", function() { return axisRight; });
  1109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisBottom", function() { return axisBottom; });
  1110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisLeft", function() { return axisLeft; });
  1111. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-axis/src/array.js");
  1112. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-axis/src/identity.js");
  1113. var top = 1,
  1114. right = 2,
  1115. bottom = 3,
  1116. left = 4,
  1117. epsilon = 1e-6;
  1118. function translateX(x) {
  1119. return "translate(" + (x + 0.5) + ",0)";
  1120. }
  1121. function translateY(y) {
  1122. return "translate(0," + (y + 0.5) + ")";
  1123. }
  1124. function number(scale) {
  1125. return function(d) {
  1126. return +scale(d);
  1127. };
  1128. }
  1129. function center(scale) {
  1130. var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.
  1131. if (scale.round()) offset = Math.round(offset);
  1132. return function(d) {
  1133. return +scale(d) + offset;
  1134. };
  1135. }
  1136. function entering() {
  1137. return !this.__axis;
  1138. }
  1139. function axis(orient, scale) {
  1140. var tickArguments = [],
  1141. tickValues = null,
  1142. tickFormat = null,
  1143. tickSizeInner = 6,
  1144. tickSizeOuter = 6,
  1145. tickPadding = 3,
  1146. k = orient === top || orient === left ? -1 : 1,
  1147. x = orient === left || orient === right ? "x" : "y",
  1148. transform = orient === top || orient === bottom ? translateX : translateY;
  1149. function axis(context) {
  1150. var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,
  1151. format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : _identity__WEBPACK_IMPORTED_MODULE_1__["default"]) : tickFormat,
  1152. spacing = Math.max(tickSizeInner, 0) + tickPadding,
  1153. range = scale.range(),
  1154. range0 = +range[0] + 0.5,
  1155. range1 = +range[range.length - 1] + 0.5,
  1156. position = (scale.bandwidth ? center : number)(scale.copy()),
  1157. selection = context.selection ? context.selection() : context,
  1158. path = selection.selectAll(".domain").data([null]),
  1159. tick = selection.selectAll(".tick").data(values, scale).order(),
  1160. tickExit = tick.exit(),
  1161. tickEnter = tick.enter().append("g").attr("class", "tick"),
  1162. line = tick.select("line"),
  1163. text = tick.select("text");
  1164. path = path.merge(path.enter().insert("path", ".tick")
  1165. .attr("class", "domain")
  1166. .attr("stroke", "currentColor"));
  1167. tick = tick.merge(tickEnter);
  1168. line = line.merge(tickEnter.append("line")
  1169. .attr("stroke", "currentColor")
  1170. .attr(x + "2", k * tickSizeInner));
  1171. text = text.merge(tickEnter.append("text")
  1172. .attr("fill", "currentColor")
  1173. .attr(x, k * spacing)
  1174. .attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
  1175. if (context !== selection) {
  1176. path = path.transition(context);
  1177. tick = tick.transition(context);
  1178. line = line.transition(context);
  1179. text = text.transition(context);
  1180. tickExit = tickExit.transition(context)
  1181. .attr("opacity", epsilon)
  1182. .attr("transform", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute("transform"); });
  1183. tickEnter
  1184. .attr("opacity", epsilon)
  1185. .attr("transform", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });
  1186. }
  1187. tickExit.remove();
  1188. path
  1189. .attr("d", orient === left || orient == right
  1190. ? (tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter : "M0.5," + range0 + "V" + range1)
  1191. : (tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + ",0.5H" + range1));
  1192. tick
  1193. .attr("opacity", 1)
  1194. .attr("transform", function(d) { return transform(position(d)); });
  1195. line
  1196. .attr(x + "2", k * tickSizeInner);
  1197. text
  1198. .attr(x, k * spacing)
  1199. .text(format);
  1200. selection.filter(entering)
  1201. .attr("fill", "none")
  1202. .attr("font-size", 10)
  1203. .attr("font-family", "sans-serif")
  1204. .attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
  1205. selection
  1206. .each(function() { this.__axis = position; });
  1207. }
  1208. axis.scale = function(_) {
  1209. return arguments.length ? (scale = _, axis) : scale;
  1210. };
  1211. axis.ticks = function() {
  1212. return tickArguments = _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(arguments), axis;
  1213. };
  1214. axis.tickArguments = function(_) {
  1215. return arguments.length ? (tickArguments = _ == null ? [] : _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_), axis) : tickArguments.slice();
  1216. };
  1217. axis.tickValues = function(_) {
  1218. return arguments.length ? (tickValues = _ == null ? null : _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_), axis) : tickValues && tickValues.slice();
  1219. };
  1220. axis.tickFormat = function(_) {
  1221. return arguments.length ? (tickFormat = _, axis) : tickFormat;
  1222. };
  1223. axis.tickSize = function(_) {
  1224. return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;
  1225. };
  1226. axis.tickSizeInner = function(_) {
  1227. return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;
  1228. };
  1229. axis.tickSizeOuter = function(_) {
  1230. return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;
  1231. };
  1232. axis.tickPadding = function(_) {
  1233. return arguments.length ? (tickPadding = +_, axis) : tickPadding;
  1234. };
  1235. return axis;
  1236. }
  1237. function axisTop(scale) {
  1238. return axis(top, scale);
  1239. }
  1240. function axisRight(scale) {
  1241. return axis(right, scale);
  1242. }
  1243. function axisBottom(scale) {
  1244. return axis(bottom, scale);
  1245. }
  1246. function axisLeft(scale) {
  1247. return axis(left, scale);
  1248. }
  1249. /***/ }),
  1250. /***/ "./node_modules/d3-axis/src/identity.js":
  1251. /*!**********************************************!*\
  1252. !*** ./node_modules/d3-axis/src/identity.js ***!
  1253. \**********************************************/
  1254. /*! exports provided: default */
  1255. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1256. "use strict";
  1257. __webpack_require__.r(__webpack_exports__);
  1258. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  1259. return x;
  1260. });
  1261. /***/ }),
  1262. /***/ "./node_modules/d3-axis/src/index.js":
  1263. /*!*******************************************!*\
  1264. !*** ./node_modules/d3-axis/src/index.js ***!
  1265. \*******************************************/
  1266. /*! exports provided: axisTop, axisRight, axisBottom, axisLeft */
  1267. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1268. "use strict";
  1269. __webpack_require__.r(__webpack_exports__);
  1270. /* harmony import */ var _axis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./axis */ "./node_modules/d3-axis/src/axis.js");
  1271. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisTop", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisTop"]; });
  1272. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisRight", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisRight"]; });
  1273. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisBottom", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisBottom"]; });
  1274. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisLeft", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisLeft"]; });
  1275. /***/ }),
  1276. /***/ "./node_modules/d3-brush/src/brush.js":
  1277. /*!********************************************!*\
  1278. !*** ./node_modules/d3-brush/src/brush.js ***!
  1279. \********************************************/
  1280. /*! exports provided: brushSelection, brushX, brushY, default */
  1281. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1282. "use strict";
  1283. __webpack_require__.r(__webpack_exports__);
  1284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return brushSelection; });
  1285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return brushX; });
  1286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return brushY; });
  1287. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  1288. /* harmony import */ var d3_drag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-drag */ "./node_modules/d3-drag/src/index.js");
  1289. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  1290. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  1291. /* harmony import */ var d3_transition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-transition */ "./node_modules/d3-transition/src/index.js");
  1292. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-brush/src/constant.js");
  1293. /* harmony import */ var _event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./event */ "./node_modules/d3-brush/src/event.js");
  1294. /* harmony import */ var _noevent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./noevent */ "./node_modules/d3-brush/src/noevent.js");
  1295. var MODE_DRAG = {name: "drag"},
  1296. MODE_SPACE = {name: "space"},
  1297. MODE_HANDLE = {name: "handle"},
  1298. MODE_CENTER = {name: "center"};
  1299. var X = {
  1300. name: "x",
  1301. handles: ["e", "w"].map(type),
  1302. input: function(x, e) { return x && [[x[0], e[0][1]], [x[1], e[1][1]]]; },
  1303. output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }
  1304. };
  1305. var Y = {
  1306. name: "y",
  1307. handles: ["n", "s"].map(type),
  1308. input: function(y, e) { return y && [[e[0][0], y[0]], [e[1][0], y[1]]]; },
  1309. output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }
  1310. };
  1311. var XY = {
  1312. name: "xy",
  1313. handles: ["n", "e", "s", "w", "nw", "ne", "se", "sw"].map(type),
  1314. input: function(xy) { return xy; },
  1315. output: function(xy) { return xy; }
  1316. };
  1317. var cursors = {
  1318. overlay: "crosshair",
  1319. selection: "move",
  1320. n: "ns-resize",
  1321. e: "ew-resize",
  1322. s: "ns-resize",
  1323. w: "ew-resize",
  1324. nw: "nwse-resize",
  1325. ne: "nesw-resize",
  1326. se: "nwse-resize",
  1327. sw: "nesw-resize"
  1328. };
  1329. var flipX = {
  1330. e: "w",
  1331. w: "e",
  1332. nw: "ne",
  1333. ne: "nw",
  1334. se: "sw",
  1335. sw: "se"
  1336. };
  1337. var flipY = {
  1338. n: "s",
  1339. s: "n",
  1340. nw: "sw",
  1341. ne: "se",
  1342. se: "ne",
  1343. sw: "nw"
  1344. };
  1345. var signsX = {
  1346. overlay: +1,
  1347. selection: +1,
  1348. n: null,
  1349. e: +1,
  1350. s: null,
  1351. w: -1,
  1352. nw: -1,
  1353. ne: +1,
  1354. se: +1,
  1355. sw: -1
  1356. };
  1357. var signsY = {
  1358. overlay: +1,
  1359. selection: +1,
  1360. n: -1,
  1361. e: null,
  1362. s: +1,
  1363. w: null,
  1364. nw: -1,
  1365. ne: -1,
  1366. se: +1,
  1367. sw: +1
  1368. };
  1369. function type(t) {
  1370. return {type: t};
  1371. }
  1372. // Ignore right-click, since that should open the context menu.
  1373. function defaultFilter() {
  1374. return !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].button;
  1375. }
  1376. function defaultExtent() {
  1377. var svg = this.ownerSVGElement || this;
  1378. return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];
  1379. }
  1380. // Like d3.local, but with the name “__brush” rather than auto-generated.
  1381. function local(node) {
  1382. while (!node.__brush) if (!(node = node.parentNode)) return;
  1383. return node.__brush;
  1384. }
  1385. function empty(extent) {
  1386. return extent[0][0] === extent[1][0]
  1387. || extent[0][1] === extent[1][1];
  1388. }
  1389. function brushSelection(node) {
  1390. var state = node.__brush;
  1391. return state ? state.dim.output(state.selection) : null;
  1392. }
  1393. function brushX() {
  1394. return brush(X);
  1395. }
  1396. function brushY() {
  1397. return brush(Y);
  1398. }
  1399. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1400. return brush(XY);
  1401. });
  1402. function brush(dim) {
  1403. var extent = defaultExtent,
  1404. filter = defaultFilter,
  1405. listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])(brush, "start", "brush", "end"),
  1406. handleSize = 6,
  1407. touchending;
  1408. function brush(group) {
  1409. var overlay = group
  1410. .property("__brush", initialize)
  1411. .selectAll(".overlay")
  1412. .data([type("overlay")]);
  1413. overlay.enter().append("rect")
  1414. .attr("class", "overlay")
  1415. .attr("pointer-events", "all")
  1416. .attr("cursor", cursors.overlay)
  1417. .merge(overlay)
  1418. .each(function() {
  1419. var extent = local(this).extent;
  1420. Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this)
  1421. .attr("x", extent[0][0])
  1422. .attr("y", extent[0][1])
  1423. .attr("width", extent[1][0] - extent[0][0])
  1424. .attr("height", extent[1][1] - extent[0][1]);
  1425. });
  1426. group.selectAll(".selection")
  1427. .data([type("selection")])
  1428. .enter().append("rect")
  1429. .attr("class", "selection")
  1430. .attr("cursor", cursors.selection)
  1431. .attr("fill", "#777")
  1432. .attr("fill-opacity", 0.3)
  1433. .attr("stroke", "#fff")
  1434. .attr("shape-rendering", "crispEdges");
  1435. var handle = group.selectAll(".handle")
  1436. .data(dim.handles, function(d) { return d.type; });
  1437. handle.exit().remove();
  1438. handle.enter().append("rect")
  1439. .attr("class", function(d) { return "handle handle--" + d.type; })
  1440. .attr("cursor", function(d) { return cursors[d.type]; });
  1441. group
  1442. .each(redraw)
  1443. .attr("fill", "none")
  1444. .attr("pointer-events", "all")
  1445. .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)")
  1446. .on("mousedown.brush touchstart.brush", started);
  1447. }
  1448. brush.move = function(group, selection) {
  1449. if (group.selection) {
  1450. group
  1451. .on("start.brush", function() { emitter(this, arguments).beforestart().start(); })
  1452. .on("interrupt.brush end.brush", function() { emitter(this, arguments).end(); })
  1453. .tween("brush", function() {
  1454. var that = this,
  1455. state = that.__brush,
  1456. emit = emitter(that, arguments),
  1457. selection0 = state.selection,
  1458. selection1 = dim.input(typeof selection === "function" ? selection.apply(this, arguments) : selection, state.extent),
  1459. i = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolate"])(selection0, selection1);
  1460. function tween(t) {
  1461. state.selection = t === 1 && empty(selection1) ? null : i(t);
  1462. redraw.call(that);
  1463. emit.brush();
  1464. }
  1465. return selection0 && selection1 ? tween : tween(1);
  1466. });
  1467. } else {
  1468. group
  1469. .each(function() {
  1470. var that = this,
  1471. args = arguments,
  1472. state = that.__brush,
  1473. selection1 = dim.input(typeof selection === "function" ? selection.apply(that, args) : selection, state.extent),
  1474. emit = emitter(that, args).beforestart();
  1475. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(that);
  1476. state.selection = selection1 == null || empty(selection1) ? null : selection1;
  1477. redraw.call(that);
  1478. emit.start().brush().end();
  1479. });
  1480. }
  1481. };
  1482. function redraw() {
  1483. var group = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this),
  1484. selection = local(this).selection;
  1485. if (selection) {
  1486. group.selectAll(".selection")
  1487. .style("display", null)
  1488. .attr("x", selection[0][0])
  1489. .attr("y", selection[0][1])
  1490. .attr("width", selection[1][0] - selection[0][0])
  1491. .attr("height", selection[1][1] - selection[0][1]);
  1492. group.selectAll(".handle")
  1493. .style("display", null)
  1494. .attr("x", function(d) { return d.type[d.type.length - 1] === "e" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })
  1495. .attr("y", function(d) { return d.type[0] === "s" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })
  1496. .attr("width", function(d) { return d.type === "n" || d.type === "s" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })
  1497. .attr("height", function(d) { return d.type === "e" || d.type === "w" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });
  1498. }
  1499. else {
  1500. group.selectAll(".selection,.handle")
  1501. .style("display", "none")
  1502. .attr("x", null)
  1503. .attr("y", null)
  1504. .attr("width", null)
  1505. .attr("height", null);
  1506. }
  1507. }
  1508. function emitter(that, args) {
  1509. return that.__brush.emitter || new Emitter(that, args);
  1510. }
  1511. function Emitter(that, args) {
  1512. this.that = that;
  1513. this.args = args;
  1514. this.state = that.__brush;
  1515. this.active = 0;
  1516. }
  1517. Emitter.prototype = {
  1518. beforestart: function() {
  1519. if (++this.active === 1) this.state.emitter = this, this.starting = true;
  1520. return this;
  1521. },
  1522. start: function() {
  1523. if (this.starting) this.starting = false, this.emit("start");
  1524. return this;
  1525. },
  1526. brush: function() {
  1527. this.emit("brush");
  1528. return this;
  1529. },
  1530. end: function() {
  1531. if (--this.active === 0) delete this.state.emitter, this.emit("end");
  1532. return this;
  1533. },
  1534. emit: function(type) {
  1535. Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["customEvent"])(new _event__WEBPACK_IMPORTED_MODULE_6__["default"](brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);
  1536. }
  1537. };
  1538. function started() {
  1539. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) { if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches.length < d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches.length) return Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])(); }
  1540. else if (touchending) return;
  1541. if (!filter.apply(this, arguments)) return;
  1542. var that = this,
  1543. type = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].target.__data__.type,
  1544. mode = (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].metaKey ? type = "overlay" : type) === "selection" ? MODE_DRAG : (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].altKey ? MODE_CENTER : MODE_HANDLE),
  1545. signX = dim === Y ? null : signsX[type],
  1546. signY = dim === X ? null : signsY[type],
  1547. state = local(that),
  1548. extent = state.extent,
  1549. selection = state.selection,
  1550. W = extent[0][0], w0, w1,
  1551. N = extent[0][1], n0, n1,
  1552. E = extent[1][0], e0, e1,
  1553. S = extent[1][1], s0, s1,
  1554. dx,
  1555. dy,
  1556. moving,
  1557. shifting = signX && signY && d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].shiftKey,
  1558. lockX,
  1559. lockY,
  1560. point0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(that),
  1561. point = point0,
  1562. emit = emitter(that, arguments).beforestart();
  1563. if (type === "overlay") {
  1564. state.selection = selection = [
  1565. [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],
  1566. [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]
  1567. ];
  1568. } else {
  1569. w0 = selection[0][0];
  1570. n0 = selection[0][1];
  1571. e0 = selection[1][0];
  1572. s0 = selection[1][1];
  1573. }
  1574. w1 = w0;
  1575. n1 = n0;
  1576. e1 = e0;
  1577. s1 = s0;
  1578. var group = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(that)
  1579. .attr("pointer-events", "none");
  1580. var overlay = group.selectAll(".overlay")
  1581. .attr("cursor", cursors[type]);
  1582. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) {
  1583. group
  1584. .on("touchmove.brush", moved, true)
  1585. .on("touchend.brush touchcancel.brush", ended, true);
  1586. } else {
  1587. var view = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view)
  1588. .on("keydown.brush", keydowned, true)
  1589. .on("keyup.brush", keyupped, true)
  1590. .on("mousemove.brush", moved, true)
  1591. .on("mouseup.brush", ended, true);
  1592. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragDisable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view);
  1593. }
  1594. Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["nopropagation"])();
  1595. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(that);
  1596. redraw.call(that);
  1597. emit.start();
  1598. function moved() {
  1599. var point1 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(that);
  1600. if (shifting && !lockX && !lockY) {
  1601. if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;
  1602. else lockX = true;
  1603. }
  1604. point = point1;
  1605. moving = true;
  1606. Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])();
  1607. move();
  1608. }
  1609. function move() {
  1610. var t;
  1611. dx = point[0] - point0[0];
  1612. dy = point[1] - point0[1];
  1613. switch (mode) {
  1614. case MODE_SPACE:
  1615. case MODE_DRAG: {
  1616. if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;
  1617. if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;
  1618. break;
  1619. }
  1620. case MODE_HANDLE: {
  1621. if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;
  1622. else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;
  1623. if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;
  1624. else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;
  1625. break;
  1626. }
  1627. case MODE_CENTER: {
  1628. if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));
  1629. if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));
  1630. break;
  1631. }
  1632. }
  1633. if (e1 < w1) {
  1634. signX *= -1;
  1635. t = w0, w0 = e0, e0 = t;
  1636. t = w1, w1 = e1, e1 = t;
  1637. if (type in flipX) overlay.attr("cursor", cursors[type = flipX[type]]);
  1638. }
  1639. if (s1 < n1) {
  1640. signY *= -1;
  1641. t = n0, n0 = s0, s0 = t;
  1642. t = n1, n1 = s1, s1 = t;
  1643. if (type in flipY) overlay.attr("cursor", cursors[type = flipY[type]]);
  1644. }
  1645. if (state.selection) selection = state.selection; // May be set by brush.move!
  1646. if (lockX) w1 = selection[0][0], e1 = selection[1][0];
  1647. if (lockY) n1 = selection[0][1], s1 = selection[1][1];
  1648. if (selection[0][0] !== w1
  1649. || selection[0][1] !== n1
  1650. || selection[1][0] !== e1
  1651. || selection[1][1] !== s1) {
  1652. state.selection = [[w1, n1], [e1, s1]];
  1653. redraw.call(that);
  1654. emit.brush();
  1655. }
  1656. }
  1657. function ended() {
  1658. Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["nopropagation"])();
  1659. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) {
  1660. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches.length) return;
  1661. if (touchending) clearTimeout(touchending);
  1662. touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!
  1663. group.on("touchmove.brush touchend.brush touchcancel.brush", null);
  1664. } else {
  1665. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragEnable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view, moving);
  1666. view.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
  1667. }
  1668. group.attr("pointer-events", "all");
  1669. overlay.attr("cursor", cursors.overlay);
  1670. if (state.selection) selection = state.selection; // May be set by brush.move (on start)!
  1671. if (empty(selection)) state.selection = null, redraw.call(that);
  1672. emit.end();
  1673. }
  1674. function keydowned() {
  1675. switch (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].keyCode) {
  1676. case 16: { // SHIFT
  1677. shifting = signX && signY;
  1678. break;
  1679. }
  1680. case 18: { // ALT
  1681. if (mode === MODE_HANDLE) {
  1682. if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
  1683. if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
  1684. mode = MODE_CENTER;
  1685. move();
  1686. }
  1687. break;
  1688. }
  1689. case 32: { // SPACE; takes priority over ALT
  1690. if (mode === MODE_HANDLE || mode === MODE_CENTER) {
  1691. if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;
  1692. if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;
  1693. mode = MODE_SPACE;
  1694. overlay.attr("cursor", cursors.selection);
  1695. move();
  1696. }
  1697. break;
  1698. }
  1699. default: return;
  1700. }
  1701. Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])();
  1702. }
  1703. function keyupped() {
  1704. switch (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].keyCode) {
  1705. case 16: { // SHIFT
  1706. if (shifting) {
  1707. lockX = lockY = shifting = false;
  1708. move();
  1709. }
  1710. break;
  1711. }
  1712. case 18: { // ALT
  1713. if (mode === MODE_CENTER) {
  1714. if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;
  1715. if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;
  1716. mode = MODE_HANDLE;
  1717. move();
  1718. }
  1719. break;
  1720. }
  1721. case 32: { // SPACE
  1722. if (mode === MODE_SPACE) {
  1723. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].altKey) {
  1724. if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
  1725. if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
  1726. mode = MODE_CENTER;
  1727. } else {
  1728. if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;
  1729. if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;
  1730. mode = MODE_HANDLE;
  1731. }
  1732. overlay.attr("cursor", cursors[type]);
  1733. move();
  1734. }
  1735. break;
  1736. }
  1737. default: return;
  1738. }
  1739. Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])();
  1740. }
  1741. }
  1742. function initialize() {
  1743. var state = this.__brush || {selection: null};
  1744. state.extent = extent.apply(this, arguments);
  1745. state.dim = dim;
  1746. return state;
  1747. }
  1748. brush.extent = function(_) {
  1749. return arguments.length ? (extent = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), brush) : extent;
  1750. };
  1751. brush.filter = function(_) {
  1752. return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), brush) : filter;
  1753. };
  1754. brush.handleSize = function(_) {
  1755. return arguments.length ? (handleSize = +_, brush) : handleSize;
  1756. };
  1757. brush.on = function() {
  1758. var value = listeners.on.apply(listeners, arguments);
  1759. return value === listeners ? brush : value;
  1760. };
  1761. return brush;
  1762. }
  1763. /***/ }),
  1764. /***/ "./node_modules/d3-brush/src/constant.js":
  1765. /*!***********************************************!*\
  1766. !*** ./node_modules/d3-brush/src/constant.js ***!
  1767. \***********************************************/
  1768. /*! exports provided: default */
  1769. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1770. "use strict";
  1771. __webpack_require__.r(__webpack_exports__);
  1772. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  1773. return function() {
  1774. return x;
  1775. };
  1776. });
  1777. /***/ }),
  1778. /***/ "./node_modules/d3-brush/src/event.js":
  1779. /*!********************************************!*\
  1780. !*** ./node_modules/d3-brush/src/event.js ***!
  1781. \********************************************/
  1782. /*! exports provided: default */
  1783. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1784. "use strict";
  1785. __webpack_require__.r(__webpack_exports__);
  1786. /* harmony default export */ __webpack_exports__["default"] = (function(target, type, selection) {
  1787. this.target = target;
  1788. this.type = type;
  1789. this.selection = selection;
  1790. });
  1791. /***/ }),
  1792. /***/ "./node_modules/d3-brush/src/index.js":
  1793. /*!********************************************!*\
  1794. !*** ./node_modules/d3-brush/src/index.js ***!
  1795. \********************************************/
  1796. /*! exports provided: brush, brushX, brushY, brushSelection */
  1797. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1798. "use strict";
  1799. __webpack_require__.r(__webpack_exports__);
  1800. /* harmony import */ var _brush__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./brush */ "./node_modules/d3-brush/src/brush.js");
  1801. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brush", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  1802. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["brushX"]; });
  1803. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["brushY"]; });
  1804. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["brushSelection"]; });
  1805. /***/ }),
  1806. /***/ "./node_modules/d3-brush/src/noevent.js":
  1807. /*!**********************************************!*\
  1808. !*** ./node_modules/d3-brush/src/noevent.js ***!
  1809. \**********************************************/
  1810. /*! exports provided: nopropagation, default */
  1811. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1812. "use strict";
  1813. __webpack_require__.r(__webpack_exports__);
  1814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; });
  1815. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  1816. function nopropagation() {
  1817. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  1818. }
  1819. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1820. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault();
  1821. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  1822. });
  1823. /***/ }),
  1824. /***/ "./node_modules/d3-chord/src/array.js":
  1825. /*!********************************************!*\
  1826. !*** ./node_modules/d3-chord/src/array.js ***!
  1827. \********************************************/
  1828. /*! exports provided: slice */
  1829. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1830. "use strict";
  1831. __webpack_require__.r(__webpack_exports__);
  1832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  1833. var slice = Array.prototype.slice;
  1834. /***/ }),
  1835. /***/ "./node_modules/d3-chord/src/chord.js":
  1836. /*!********************************************!*\
  1837. !*** ./node_modules/d3-chord/src/chord.js ***!
  1838. \********************************************/
  1839. /*! exports provided: default */
  1840. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1841. "use strict";
  1842. __webpack_require__.r(__webpack_exports__);
  1843. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  1844. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math */ "./node_modules/d3-chord/src/math.js");
  1845. function compareValue(compare) {
  1846. return function(a, b) {
  1847. return compare(
  1848. a.source.value + a.target.value,
  1849. b.source.value + b.target.value
  1850. );
  1851. };
  1852. }
  1853. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1854. var padAngle = 0,
  1855. sortGroups = null,
  1856. sortSubgroups = null,
  1857. sortChords = null;
  1858. function chord(matrix) {
  1859. var n = matrix.length,
  1860. groupSums = [],
  1861. groupIndex = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n),
  1862. subgroupIndex = [],
  1863. chords = [],
  1864. groups = chords.groups = new Array(n),
  1865. subgroups = new Array(n * n),
  1866. k,
  1867. x,
  1868. x0,
  1869. dx,
  1870. i,
  1871. j;
  1872. // Compute the sum.
  1873. k = 0, i = -1; while (++i < n) {
  1874. x = 0, j = -1; while (++j < n) {
  1875. x += matrix[i][j];
  1876. }
  1877. groupSums.push(x);
  1878. subgroupIndex.push(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n));
  1879. k += x;
  1880. }
  1881. // Sort groups…
  1882. if (sortGroups) groupIndex.sort(function(a, b) {
  1883. return sortGroups(groupSums[a], groupSums[b]);
  1884. });
  1885. // Sort subgroups…
  1886. if (sortSubgroups) subgroupIndex.forEach(function(d, i) {
  1887. d.sort(function(a, b) {
  1888. return sortSubgroups(matrix[i][a], matrix[i][b]);
  1889. });
  1890. });
  1891. // Convert the sum to scaling factor for [0, 2pi].
  1892. // TODO Allow start and end angle to be specified?
  1893. // TODO Allow padding to be specified as percentage?
  1894. k = Object(_math__WEBPACK_IMPORTED_MODULE_1__["max"])(0, _math__WEBPACK_IMPORTED_MODULE_1__["tau"] - padAngle * n) / k;
  1895. dx = k ? padAngle : _math__WEBPACK_IMPORTED_MODULE_1__["tau"] / n;
  1896. // Compute the start and end angle for each group and subgroup.
  1897. // Note: Opera has a bug reordering object literal properties!
  1898. x = 0, i = -1; while (++i < n) {
  1899. x0 = x, j = -1; while (++j < n) {
  1900. var di = groupIndex[i],
  1901. dj = subgroupIndex[di][j],
  1902. v = matrix[di][dj],
  1903. a0 = x,
  1904. a1 = x += v * k;
  1905. subgroups[dj * n + di] = {
  1906. index: di,
  1907. subindex: dj,
  1908. startAngle: a0,
  1909. endAngle: a1,
  1910. value: v
  1911. };
  1912. }
  1913. groups[di] = {
  1914. index: di,
  1915. startAngle: x0,
  1916. endAngle: x,
  1917. value: groupSums[di]
  1918. };
  1919. x += dx;
  1920. }
  1921. // Generate chords for each (non-empty) subgroup-subgroup link.
  1922. i = -1; while (++i < n) {
  1923. j = i - 1; while (++j < n) {
  1924. var source = subgroups[j * n + i],
  1925. target = subgroups[i * n + j];
  1926. if (source.value || target.value) {
  1927. chords.push(source.value < target.value
  1928. ? {source: target, target: source}
  1929. : {source: source, target: target});
  1930. }
  1931. }
  1932. }
  1933. return sortChords ? chords.sort(sortChords) : chords;
  1934. }
  1935. chord.padAngle = function(_) {
  1936. return arguments.length ? (padAngle = Object(_math__WEBPACK_IMPORTED_MODULE_1__["max"])(0, _), chord) : padAngle;
  1937. };
  1938. chord.sortGroups = function(_) {
  1939. return arguments.length ? (sortGroups = _, chord) : sortGroups;
  1940. };
  1941. chord.sortSubgroups = function(_) {
  1942. return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;
  1943. };
  1944. chord.sortChords = function(_) {
  1945. return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;
  1946. };
  1947. return chord;
  1948. });
  1949. /***/ }),
  1950. /***/ "./node_modules/d3-chord/src/constant.js":
  1951. /*!***********************************************!*\
  1952. !*** ./node_modules/d3-chord/src/constant.js ***!
  1953. \***********************************************/
  1954. /*! exports provided: default */
  1955. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1956. "use strict";
  1957. __webpack_require__.r(__webpack_exports__);
  1958. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  1959. return function() {
  1960. return x;
  1961. };
  1962. });
  1963. /***/ }),
  1964. /***/ "./node_modules/d3-chord/src/index.js":
  1965. /*!********************************************!*\
  1966. !*** ./node_modules/d3-chord/src/index.js ***!
  1967. \********************************************/
  1968. /*! exports provided: chord, ribbon */
  1969. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1970. "use strict";
  1971. __webpack_require__.r(__webpack_exports__);
  1972. /* harmony import */ var _chord__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chord */ "./node_modules/d3-chord/src/chord.js");
  1973. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "chord", function() { return _chord__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  1974. /* harmony import */ var _ribbon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ribbon */ "./node_modules/d3-chord/src/ribbon.js");
  1975. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ribbon", function() { return _ribbon__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  1976. /***/ }),
  1977. /***/ "./node_modules/d3-chord/src/math.js":
  1978. /*!*******************************************!*\
  1979. !*** ./node_modules/d3-chord/src/math.js ***!
  1980. \*******************************************/
  1981. /*! exports provided: cos, sin, pi, halfPi, tau, max */
  1982. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1983. "use strict";
  1984. __webpack_require__.r(__webpack_exports__);
  1985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; });
  1986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; });
  1987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; });
  1988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; });
  1989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; });
  1990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; });
  1991. var cos = Math.cos;
  1992. var sin = Math.sin;
  1993. var pi = Math.PI;
  1994. var halfPi = pi / 2;
  1995. var tau = pi * 2;
  1996. var max = Math.max;
  1997. /***/ }),
  1998. /***/ "./node_modules/d3-chord/src/ribbon.js":
  1999. /*!*********************************************!*\
  2000. !*** ./node_modules/d3-chord/src/ribbon.js ***!
  2001. \*********************************************/
  2002. /*! exports provided: default */
  2003. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2004. "use strict";
  2005. __webpack_require__.r(__webpack_exports__);
  2006. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-chord/src/array.js");
  2007. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-chord/src/constant.js");
  2008. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-chord/src/math.js");
  2009. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  2010. function defaultSource(d) {
  2011. return d.source;
  2012. }
  2013. function defaultTarget(d) {
  2014. return d.target;
  2015. }
  2016. function defaultRadius(d) {
  2017. return d.radius;
  2018. }
  2019. function defaultStartAngle(d) {
  2020. return d.startAngle;
  2021. }
  2022. function defaultEndAngle(d) {
  2023. return d.endAngle;
  2024. }
  2025. /* harmony default export */ __webpack_exports__["default"] = (function() {
  2026. var source = defaultSource,
  2027. target = defaultTarget,
  2028. radius = defaultRadius,
  2029. startAngle = defaultStartAngle,
  2030. endAngle = defaultEndAngle,
  2031. context = null;
  2032. function ribbon() {
  2033. var buffer,
  2034. argv = _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(arguments),
  2035. s = source.apply(this, argv),
  2036. t = target.apply(this, argv),
  2037. sr = +radius.apply(this, (argv[0] = s, argv)),
  2038. sa0 = startAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  2039. sa1 = endAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  2040. sx0 = sr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(sa0),
  2041. sy0 = sr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(sa0),
  2042. tr = +radius.apply(this, (argv[0] = t, argv)),
  2043. ta0 = startAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  2044. ta1 = endAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"];
  2045. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_3__["path"])();
  2046. context.moveTo(sx0, sy0);
  2047. context.arc(0, 0, sr, sa0, sa1);
  2048. if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?
  2049. context.quadraticCurveTo(0, 0, tr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(ta0), tr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(ta0));
  2050. context.arc(0, 0, tr, ta0, ta1);
  2051. }
  2052. context.quadraticCurveTo(0, 0, sx0, sy0);
  2053. context.closePath();
  2054. if (buffer) return context = null, buffer + "" || null;
  2055. }
  2056. ribbon.radius = function(_) {
  2057. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), ribbon) : radius;
  2058. };
  2059. ribbon.startAngle = function(_) {
  2060. return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), ribbon) : startAngle;
  2061. };
  2062. ribbon.endAngle = function(_) {
  2063. return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), ribbon) : endAngle;
  2064. };
  2065. ribbon.source = function(_) {
  2066. return arguments.length ? (source = _, ribbon) : source;
  2067. };
  2068. ribbon.target = function(_) {
  2069. return arguments.length ? (target = _, ribbon) : target;
  2070. };
  2071. ribbon.context = function(_) {
  2072. return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;
  2073. };
  2074. return ribbon;
  2075. });
  2076. /***/ }),
  2077. /***/ "./node_modules/d3-collection/src/entries.js":
  2078. /*!***************************************************!*\
  2079. !*** ./node_modules/d3-collection/src/entries.js ***!
  2080. \***************************************************/
  2081. /*! exports provided: default */
  2082. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2083. "use strict";
  2084. __webpack_require__.r(__webpack_exports__);
  2085. /* harmony default export */ __webpack_exports__["default"] = (function(map) {
  2086. var entries = [];
  2087. for (var key in map) entries.push({key: key, value: map[key]});
  2088. return entries;
  2089. });
  2090. /***/ }),
  2091. /***/ "./node_modules/d3-collection/src/index.js":
  2092. /*!*************************************************!*\
  2093. !*** ./node_modules/d3-collection/src/index.js ***!
  2094. \*************************************************/
  2095. /*! exports provided: nest, set, map, keys, values, entries */
  2096. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2097. "use strict";
  2098. __webpack_require__.r(__webpack_exports__);
  2099. /* harmony import */ var _nest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nest */ "./node_modules/d3-collection/src/nest.js");
  2100. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return _nest__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  2101. /* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set */ "./node_modules/d3-collection/src/set.js");
  2102. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "set", function() { return _set__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  2103. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");
  2104. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return _map__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  2105. /* harmony import */ var _keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./keys */ "./node_modules/d3-collection/src/keys.js");
  2106. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return _keys__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  2107. /* harmony import */ var _values__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./values */ "./node_modules/d3-collection/src/values.js");
  2108. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "values", function() { return _values__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  2109. /* harmony import */ var _entries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entries */ "./node_modules/d3-collection/src/entries.js");
  2110. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "entries", function() { return _entries__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  2111. /***/ }),
  2112. /***/ "./node_modules/d3-collection/src/keys.js":
  2113. /*!************************************************!*\
  2114. !*** ./node_modules/d3-collection/src/keys.js ***!
  2115. \************************************************/
  2116. /*! exports provided: default */
  2117. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2118. "use strict";
  2119. __webpack_require__.r(__webpack_exports__);
  2120. /* harmony default export */ __webpack_exports__["default"] = (function(map) {
  2121. var keys = [];
  2122. for (var key in map) keys.push(key);
  2123. return keys;
  2124. });
  2125. /***/ }),
  2126. /***/ "./node_modules/d3-collection/src/map.js":
  2127. /*!***********************************************!*\
  2128. !*** ./node_modules/d3-collection/src/map.js ***!
  2129. \***********************************************/
  2130. /*! exports provided: prefix, default */
  2131. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2132. "use strict";
  2133. __webpack_require__.r(__webpack_exports__);
  2134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2135. var prefix = "$";
  2136. function Map() {}
  2137. Map.prototype = map.prototype = {
  2138. constructor: Map,
  2139. has: function(key) {
  2140. return (prefix + key) in this;
  2141. },
  2142. get: function(key) {
  2143. return this[prefix + key];
  2144. },
  2145. set: function(key, value) {
  2146. this[prefix + key] = value;
  2147. return this;
  2148. },
  2149. remove: function(key) {
  2150. var property = prefix + key;
  2151. return property in this && delete this[property];
  2152. },
  2153. clear: function() {
  2154. for (var property in this) if (property[0] === prefix) delete this[property];
  2155. },
  2156. keys: function() {
  2157. var keys = [];
  2158. for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));
  2159. return keys;
  2160. },
  2161. values: function() {
  2162. var values = [];
  2163. for (var property in this) if (property[0] === prefix) values.push(this[property]);
  2164. return values;
  2165. },
  2166. entries: function() {
  2167. var entries = [];
  2168. for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});
  2169. return entries;
  2170. },
  2171. size: function() {
  2172. var size = 0;
  2173. for (var property in this) if (property[0] === prefix) ++size;
  2174. return size;
  2175. },
  2176. empty: function() {
  2177. for (var property in this) if (property[0] === prefix) return false;
  2178. return true;
  2179. },
  2180. each: function(f) {
  2181. for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);
  2182. }
  2183. };
  2184. function map(object, f) {
  2185. var map = new Map;
  2186. // Copy constructor.
  2187. if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });
  2188. // Index array by numeric index or specified key function.
  2189. else if (Array.isArray(object)) {
  2190. var i = -1,
  2191. n = object.length,
  2192. o;
  2193. if (f == null) while (++i < n) map.set(i, object[i]);
  2194. else while (++i < n) map.set(f(o = object[i], i, object), o);
  2195. }
  2196. // Convert object to map.
  2197. else if (object) for (var key in object) map.set(key, object[key]);
  2198. return map;
  2199. }
  2200. /* harmony default export */ __webpack_exports__["default"] = (map);
  2201. /***/ }),
  2202. /***/ "./node_modules/d3-collection/src/nest.js":
  2203. /*!************************************************!*\
  2204. !*** ./node_modules/d3-collection/src/nest.js ***!
  2205. \************************************************/
  2206. /*! exports provided: default */
  2207. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2208. "use strict";
  2209. __webpack_require__.r(__webpack_exports__);
  2210. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");
  2211. /* harmony default export */ __webpack_exports__["default"] = (function() {
  2212. var keys = [],
  2213. sortKeys = [],
  2214. sortValues,
  2215. rollup,
  2216. nest;
  2217. function apply(array, depth, createResult, setResult) {
  2218. if (depth >= keys.length) {
  2219. if (sortValues != null) array.sort(sortValues);
  2220. return rollup != null ? rollup(array) : array;
  2221. }
  2222. var i = -1,
  2223. n = array.length,
  2224. key = keys[depth++],
  2225. keyValue,
  2226. value,
  2227. valuesByKey = Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  2228. values,
  2229. result = createResult();
  2230. while (++i < n) {
  2231. if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) {
  2232. values.push(value);
  2233. } else {
  2234. valuesByKey.set(keyValue, [value]);
  2235. }
  2236. }
  2237. valuesByKey.each(function(values, key) {
  2238. setResult(result, key, apply(values, depth, createResult, setResult));
  2239. });
  2240. return result;
  2241. }
  2242. function entries(map, depth) {
  2243. if (++depth > keys.length) return map;
  2244. var array, sortKey = sortKeys[depth - 1];
  2245. if (rollup != null && depth >= keys.length) array = map.entries();
  2246. else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });
  2247. return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;
  2248. }
  2249. return nest = {
  2250. object: function(array) { return apply(array, 0, createObject, setObject); },
  2251. map: function(array) { return apply(array, 0, createMap, setMap); },
  2252. entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },
  2253. key: function(d) { keys.push(d); return nest; },
  2254. sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },
  2255. sortValues: function(order) { sortValues = order; return nest; },
  2256. rollup: function(f) { rollup = f; return nest; }
  2257. };
  2258. });
  2259. function createObject() {
  2260. return {};
  2261. }
  2262. function setObject(object, key, value) {
  2263. object[key] = value;
  2264. }
  2265. function createMap() {
  2266. return Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])();
  2267. }
  2268. function setMap(map, key, value) {
  2269. map.set(key, value);
  2270. }
  2271. /***/ }),
  2272. /***/ "./node_modules/d3-collection/src/set.js":
  2273. /*!***********************************************!*\
  2274. !*** ./node_modules/d3-collection/src/set.js ***!
  2275. \***********************************************/
  2276. /*! exports provided: default */
  2277. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2278. "use strict";
  2279. __webpack_require__.r(__webpack_exports__);
  2280. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");
  2281. function Set() {}
  2282. var proto = _map__WEBPACK_IMPORTED_MODULE_0__["default"].prototype;
  2283. Set.prototype = set.prototype = {
  2284. constructor: Set,
  2285. has: proto.has,
  2286. add: function(value) {
  2287. value += "";
  2288. this[_map__WEBPACK_IMPORTED_MODULE_0__["prefix"] + value] = value;
  2289. return this;
  2290. },
  2291. remove: proto.remove,
  2292. clear: proto.clear,
  2293. values: proto.keys,
  2294. size: proto.size,
  2295. empty: proto.empty,
  2296. each: proto.each
  2297. };
  2298. function set(object, f) {
  2299. var set = new Set;
  2300. // Copy constructor.
  2301. if (object instanceof Set) object.each(function(value) { set.add(value); });
  2302. // Otherwise, assume it’s an array.
  2303. else if (object) {
  2304. var i = -1, n = object.length;
  2305. if (f == null) while (++i < n) set.add(object[i]);
  2306. else while (++i < n) set.add(f(object[i], i, object));
  2307. }
  2308. return set;
  2309. }
  2310. /* harmony default export */ __webpack_exports__["default"] = (set);
  2311. /***/ }),
  2312. /***/ "./node_modules/d3-collection/src/values.js":
  2313. /*!**************************************************!*\
  2314. !*** ./node_modules/d3-collection/src/values.js ***!
  2315. \**************************************************/
  2316. /*! exports provided: default */
  2317. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2318. "use strict";
  2319. __webpack_require__.r(__webpack_exports__);
  2320. /* harmony default export */ __webpack_exports__["default"] = (function(map) {
  2321. var values = [];
  2322. for (var key in map) values.push(map[key]);
  2323. return values;
  2324. });
  2325. /***/ }),
  2326. /***/ "./node_modules/d3-color/src/color.js":
  2327. /*!********************************************!*\
  2328. !*** ./node_modules/d3-color/src/color.js ***!
  2329. \********************************************/
  2330. /*! exports provided: Color, darker, brighter, default, rgbConvert, rgb, Rgb, hslConvert, hsl */
  2331. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2332. "use strict";
  2333. __webpack_require__.r(__webpack_exports__);
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color", function() { return Color; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darker", function() { return darker; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brighter", function() { return brighter; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return color; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbConvert", function() { return rgbConvert; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return rgb; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rgb", function() { return Rgb; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslConvert", function() { return hslConvert; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return hsl; });
  2343. /* harmony import */ var _define__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define */ "./node_modules/d3-color/src/define.js");
  2344. function Color() {}
  2345. var darker = 0.7;
  2346. var brighter = 1 / darker;
  2347. var reI = "\\s*([+-]?\\d+)\\s*",
  2348. reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
  2349. reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
  2350. reHex3 = /^#([0-9a-f]{3})$/,
  2351. reHex6 = /^#([0-9a-f]{6})$/,
  2352. reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
  2353. reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
  2354. reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
  2355. reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
  2356. reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
  2357. reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
  2358. var named = {
  2359. aliceblue: 0xf0f8ff,
  2360. antiquewhite: 0xfaebd7,
  2361. aqua: 0x00ffff,
  2362. aquamarine: 0x7fffd4,
  2363. azure: 0xf0ffff,
  2364. beige: 0xf5f5dc,
  2365. bisque: 0xffe4c4,
  2366. black: 0x000000,
  2367. blanchedalmond: 0xffebcd,
  2368. blue: 0x0000ff,
  2369. blueviolet: 0x8a2be2,
  2370. brown: 0xa52a2a,
  2371. burlywood: 0xdeb887,
  2372. cadetblue: 0x5f9ea0,
  2373. chartreuse: 0x7fff00,
  2374. chocolate: 0xd2691e,
  2375. coral: 0xff7f50,
  2376. cornflowerblue: 0x6495ed,
  2377. cornsilk: 0xfff8dc,
  2378. crimson: 0xdc143c,
  2379. cyan: 0x00ffff,
  2380. darkblue: 0x00008b,
  2381. darkcyan: 0x008b8b,
  2382. darkgoldenrod: 0xb8860b,
  2383. darkgray: 0xa9a9a9,
  2384. darkgreen: 0x006400,
  2385. darkgrey: 0xa9a9a9,
  2386. darkkhaki: 0xbdb76b,
  2387. darkmagenta: 0x8b008b,
  2388. darkolivegreen: 0x556b2f,
  2389. darkorange: 0xff8c00,
  2390. darkorchid: 0x9932cc,
  2391. darkred: 0x8b0000,
  2392. darksalmon: 0xe9967a,
  2393. darkseagreen: 0x8fbc8f,
  2394. darkslateblue: 0x483d8b,
  2395. darkslategray: 0x2f4f4f,
  2396. darkslategrey: 0x2f4f4f,
  2397. darkturquoise: 0x00ced1,
  2398. darkviolet: 0x9400d3,
  2399. deeppink: 0xff1493,
  2400. deepskyblue: 0x00bfff,
  2401. dimgray: 0x696969,
  2402. dimgrey: 0x696969,
  2403. dodgerblue: 0x1e90ff,
  2404. firebrick: 0xb22222,
  2405. floralwhite: 0xfffaf0,
  2406. forestgreen: 0x228b22,
  2407. fuchsia: 0xff00ff,
  2408. gainsboro: 0xdcdcdc,
  2409. ghostwhite: 0xf8f8ff,
  2410. gold: 0xffd700,
  2411. goldenrod: 0xdaa520,
  2412. gray: 0x808080,
  2413. green: 0x008000,
  2414. greenyellow: 0xadff2f,
  2415. grey: 0x808080,
  2416. honeydew: 0xf0fff0,
  2417. hotpink: 0xff69b4,
  2418. indianred: 0xcd5c5c,
  2419. indigo: 0x4b0082,
  2420. ivory: 0xfffff0,
  2421. khaki: 0xf0e68c,
  2422. lavender: 0xe6e6fa,
  2423. lavenderblush: 0xfff0f5,
  2424. lawngreen: 0x7cfc00,
  2425. lemonchiffon: 0xfffacd,
  2426. lightblue: 0xadd8e6,
  2427. lightcoral: 0xf08080,
  2428. lightcyan: 0xe0ffff,
  2429. lightgoldenrodyellow: 0xfafad2,
  2430. lightgray: 0xd3d3d3,
  2431. lightgreen: 0x90ee90,
  2432. lightgrey: 0xd3d3d3,
  2433. lightpink: 0xffb6c1,
  2434. lightsalmon: 0xffa07a,
  2435. lightseagreen: 0x20b2aa,
  2436. lightskyblue: 0x87cefa,
  2437. lightslategray: 0x778899,
  2438. lightslategrey: 0x778899,
  2439. lightsteelblue: 0xb0c4de,
  2440. lightyellow: 0xffffe0,
  2441. lime: 0x00ff00,
  2442. limegreen: 0x32cd32,
  2443. linen: 0xfaf0e6,
  2444. magenta: 0xff00ff,
  2445. maroon: 0x800000,
  2446. mediumaquamarine: 0x66cdaa,
  2447. mediumblue: 0x0000cd,
  2448. mediumorchid: 0xba55d3,
  2449. mediumpurple: 0x9370db,
  2450. mediumseagreen: 0x3cb371,
  2451. mediumslateblue: 0x7b68ee,
  2452. mediumspringgreen: 0x00fa9a,
  2453. mediumturquoise: 0x48d1cc,
  2454. mediumvioletred: 0xc71585,
  2455. midnightblue: 0x191970,
  2456. mintcream: 0xf5fffa,
  2457. mistyrose: 0xffe4e1,
  2458. moccasin: 0xffe4b5,
  2459. navajowhite: 0xffdead,
  2460. navy: 0x000080,
  2461. oldlace: 0xfdf5e6,
  2462. olive: 0x808000,
  2463. olivedrab: 0x6b8e23,
  2464. orange: 0xffa500,
  2465. orangered: 0xff4500,
  2466. orchid: 0xda70d6,
  2467. palegoldenrod: 0xeee8aa,
  2468. palegreen: 0x98fb98,
  2469. paleturquoise: 0xafeeee,
  2470. palevioletred: 0xdb7093,
  2471. papayawhip: 0xffefd5,
  2472. peachpuff: 0xffdab9,
  2473. peru: 0xcd853f,
  2474. pink: 0xffc0cb,
  2475. plum: 0xdda0dd,
  2476. powderblue: 0xb0e0e6,
  2477. purple: 0x800080,
  2478. rebeccapurple: 0x663399,
  2479. red: 0xff0000,
  2480. rosybrown: 0xbc8f8f,
  2481. royalblue: 0x4169e1,
  2482. saddlebrown: 0x8b4513,
  2483. salmon: 0xfa8072,
  2484. sandybrown: 0xf4a460,
  2485. seagreen: 0x2e8b57,
  2486. seashell: 0xfff5ee,
  2487. sienna: 0xa0522d,
  2488. silver: 0xc0c0c0,
  2489. skyblue: 0x87ceeb,
  2490. slateblue: 0x6a5acd,
  2491. slategray: 0x708090,
  2492. slategrey: 0x708090,
  2493. snow: 0xfffafa,
  2494. springgreen: 0x00ff7f,
  2495. steelblue: 0x4682b4,
  2496. tan: 0xd2b48c,
  2497. teal: 0x008080,
  2498. thistle: 0xd8bfd8,
  2499. tomato: 0xff6347,
  2500. turquoise: 0x40e0d0,
  2501. violet: 0xee82ee,
  2502. wheat: 0xf5deb3,
  2503. white: 0xffffff,
  2504. whitesmoke: 0xf5f5f5,
  2505. yellow: 0xffff00,
  2506. yellowgreen: 0x9acd32
  2507. };
  2508. Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Color, color, {
  2509. displayable: function() {
  2510. return this.rgb().displayable();
  2511. },
  2512. hex: function() {
  2513. return this.rgb().hex();
  2514. },
  2515. toString: function() {
  2516. return this.rgb() + "";
  2517. }
  2518. });
  2519. function color(format) {
  2520. var m;
  2521. format = (format + "").trim().toLowerCase();
  2522. return (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), new Rgb((m >> 8 & 0xf) | (m >> 4 & 0x0f0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1)) // #f00
  2523. : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) // #ff0000
  2524. : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
  2525. : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
  2526. : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
  2527. : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
  2528. : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
  2529. : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
  2530. : named.hasOwnProperty(format) ? rgbn(named[format])
  2531. : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
  2532. : null;
  2533. }
  2534. function rgbn(n) {
  2535. return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
  2536. }
  2537. function rgba(r, g, b, a) {
  2538. if (a <= 0) r = g = b = NaN;
  2539. return new Rgb(r, g, b, a);
  2540. }
  2541. function rgbConvert(o) {
  2542. if (!(o instanceof Color)) o = color(o);
  2543. if (!o) return new Rgb;
  2544. o = o.rgb();
  2545. return new Rgb(o.r, o.g, o.b, o.opacity);
  2546. }
  2547. function rgb(r, g, b, opacity) {
  2548. return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
  2549. }
  2550. function Rgb(r, g, b, opacity) {
  2551. this.r = +r;
  2552. this.g = +g;
  2553. this.b = +b;
  2554. this.opacity = +opacity;
  2555. }
  2556. Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Rgb, rgb, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, {
  2557. brighter: function(k) {
  2558. k = k == null ? brighter : Math.pow(brighter, k);
  2559. return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  2560. },
  2561. darker: function(k) {
  2562. k = k == null ? darker : Math.pow(darker, k);
  2563. return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  2564. },
  2565. rgb: function() {
  2566. return this;
  2567. },
  2568. displayable: function() {
  2569. return (0 <= this.r && this.r <= 255)
  2570. && (0 <= this.g && this.g <= 255)
  2571. && (0 <= this.b && this.b <= 255)
  2572. && (0 <= this.opacity && this.opacity <= 1);
  2573. },
  2574. hex: function() {
  2575. return "#" + hex(this.r) + hex(this.g) + hex(this.b);
  2576. },
  2577. toString: function() {
  2578. var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
  2579. return (a === 1 ? "rgb(" : "rgba(")
  2580. + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", "
  2581. + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", "
  2582. + Math.max(0, Math.min(255, Math.round(this.b) || 0))
  2583. + (a === 1 ? ")" : ", " + a + ")");
  2584. }
  2585. }));
  2586. function hex(value) {
  2587. value = Math.max(0, Math.min(255, Math.round(value) || 0));
  2588. return (value < 16 ? "0" : "") + value.toString(16);
  2589. }
  2590. function hsla(h, s, l, a) {
  2591. if (a <= 0) h = s = l = NaN;
  2592. else if (l <= 0 || l >= 1) h = s = NaN;
  2593. else if (s <= 0) h = NaN;
  2594. return new Hsl(h, s, l, a);
  2595. }
  2596. function hslConvert(o) {
  2597. if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
  2598. if (!(o instanceof Color)) o = color(o);
  2599. if (!o) return new Hsl;
  2600. if (o instanceof Hsl) return o;
  2601. o = o.rgb();
  2602. var r = o.r / 255,
  2603. g = o.g / 255,
  2604. b = o.b / 255,
  2605. min = Math.min(r, g, b),
  2606. max = Math.max(r, g, b),
  2607. h = NaN,
  2608. s = max - min,
  2609. l = (max + min) / 2;
  2610. if (s) {
  2611. if (r === max) h = (g - b) / s + (g < b) * 6;
  2612. else if (g === max) h = (b - r) / s + 2;
  2613. else h = (r - g) / s + 4;
  2614. s /= l < 0.5 ? max + min : 2 - max - min;
  2615. h *= 60;
  2616. } else {
  2617. s = l > 0 && l < 1 ? 0 : h;
  2618. }
  2619. return new Hsl(h, s, l, o.opacity);
  2620. }
  2621. function hsl(h, s, l, opacity) {
  2622. return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
  2623. }
  2624. function Hsl(h, s, l, opacity) {
  2625. this.h = +h;
  2626. this.s = +s;
  2627. this.l = +l;
  2628. this.opacity = +opacity;
  2629. }
  2630. Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Hsl, hsl, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, {
  2631. brighter: function(k) {
  2632. k = k == null ? brighter : Math.pow(brighter, k);
  2633. return new Hsl(this.h, this.s, this.l * k, this.opacity);
  2634. },
  2635. darker: function(k) {
  2636. k = k == null ? darker : Math.pow(darker, k);
  2637. return new Hsl(this.h, this.s, this.l * k, this.opacity);
  2638. },
  2639. rgb: function() {
  2640. var h = this.h % 360 + (this.h < 0) * 360,
  2641. s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
  2642. l = this.l,
  2643. m2 = l + (l < 0.5 ? l : 1 - l) * s,
  2644. m1 = 2 * l - m2;
  2645. return new Rgb(
  2646. hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
  2647. hsl2rgb(h, m1, m2),
  2648. hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
  2649. this.opacity
  2650. );
  2651. },
  2652. displayable: function() {
  2653. return (0 <= this.s && this.s <= 1 || isNaN(this.s))
  2654. && (0 <= this.l && this.l <= 1)
  2655. && (0 <= this.opacity && this.opacity <= 1);
  2656. }
  2657. }));
  2658. /* From FvD 13.37, CSS Color Module Level 3 */
  2659. function hsl2rgb(h, m1, m2) {
  2660. return (h < 60 ? m1 + (m2 - m1) * h / 60
  2661. : h < 180 ? m2
  2662. : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
  2663. : m1) * 255;
  2664. }
  2665. /***/ }),
  2666. /***/ "./node_modules/d3-color/src/cubehelix.js":
  2667. /*!************************************************!*\
  2668. !*** ./node_modules/d3-color/src/cubehelix.js ***!
  2669. \************************************************/
  2670. /*! exports provided: default, Cubehelix */
  2671. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2672. "use strict";
  2673. __webpack_require__.r(__webpack_exports__);
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return cubehelix; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cubehelix", function() { return Cubehelix; });
  2676. /* harmony import */ var _define__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define */ "./node_modules/d3-color/src/define.js");
  2677. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-color/src/color.js");
  2678. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-color/src/math.js");
  2679. var A = -0.14861,
  2680. B = +1.78277,
  2681. C = -0.29227,
  2682. D = -0.90649,
  2683. E = +1.97294,
  2684. ED = E * D,
  2685. EB = E * B,
  2686. BC_DA = B * C - D * A;
  2687. function cubehelixConvert(o) {
  2688. if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
  2689. if (!(o instanceof _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o);
  2690. var r = o.r / 255,
  2691. g = o.g / 255,
  2692. b = o.b / 255,
  2693. l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
  2694. bl = b - l,
  2695. k = (E * (g - l) - C * bl) / D,
  2696. s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
  2697. h = s ? Math.atan2(k, bl) * _math__WEBPACK_IMPORTED_MODULE_2__["rad2deg"] - 120 : NaN;
  2698. return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
  2699. }
  2700. function cubehelix(h, s, l, opacity) {
  2701. return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
  2702. }
  2703. function Cubehelix(h, s, l, opacity) {
  2704. this.h = +h;
  2705. this.s = +s;
  2706. this.l = +l;
  2707. this.opacity = +opacity;
  2708. }
  2709. Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Cubehelix, cubehelix, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color__WEBPACK_IMPORTED_MODULE_1__["Color"], {
  2710. brighter: function(k) {
  2711. k = k == null ? _color__WEBPACK_IMPORTED_MODULE_1__["brighter"] : Math.pow(_color__WEBPACK_IMPORTED_MODULE_1__["brighter"], k);
  2712. return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  2713. },
  2714. darker: function(k) {
  2715. k = k == null ? _color__WEBPACK_IMPORTED_MODULE_1__["darker"] : Math.pow(_color__WEBPACK_IMPORTED_MODULE_1__["darker"], k);
  2716. return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  2717. },
  2718. rgb: function() {
  2719. var h = isNaN(this.h) ? 0 : (this.h + 120) * _math__WEBPACK_IMPORTED_MODULE_2__["deg2rad"],
  2720. l = +this.l,
  2721. a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
  2722. cosh = Math.cos(h),
  2723. sinh = Math.sin(h);
  2724. return new _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"](
  2725. 255 * (l + a * (A * cosh + B * sinh)),
  2726. 255 * (l + a * (C * cosh + D * sinh)),
  2727. 255 * (l + a * (E * cosh)),
  2728. this.opacity
  2729. );
  2730. }
  2731. }));
  2732. /***/ }),
  2733. /***/ "./node_modules/d3-color/src/define.js":
  2734. /*!*********************************************!*\
  2735. !*** ./node_modules/d3-color/src/define.js ***!
  2736. \*********************************************/
  2737. /*! exports provided: default, extend */
  2738. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2739. "use strict";
  2740. __webpack_require__.r(__webpack_exports__);
  2741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; });
  2742. /* harmony default export */ __webpack_exports__["default"] = (function(constructor, factory, prototype) {
  2743. constructor.prototype = factory.prototype = prototype;
  2744. prototype.constructor = constructor;
  2745. });
  2746. function extend(parent, definition) {
  2747. var prototype = Object.create(parent.prototype);
  2748. for (var key in definition) prototype[key] = definition[key];
  2749. return prototype;
  2750. }
  2751. /***/ }),
  2752. /***/ "./node_modules/d3-color/src/index.js":
  2753. /*!********************************************!*\
  2754. !*** ./node_modules/d3-color/src/index.js ***!
  2755. \********************************************/
  2756. /*! exports provided: color, rgb, hsl, lab, hcl, lch, gray, cubehelix */
  2757. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2758. "use strict";
  2759. __webpack_require__.r(__webpack_exports__);
  2760. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color */ "./node_modules/d3-color/src/color.js");
  2761. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return _color__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  2762. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return _color__WEBPACK_IMPORTED_MODULE_0__["rgb"]; });
  2763. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return _color__WEBPACK_IMPORTED_MODULE_0__["hsl"]; });
  2764. /* harmony import */ var _lab__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lab */ "./node_modules/d3-color/src/lab.js");
  2765. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lab", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  2766. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["hcl"]; });
  2767. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["lch"]; });
  2768. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["gray"]; });
  2769. /* harmony import */ var _cubehelix__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubehelix */ "./node_modules/d3-color/src/cubehelix.js");
  2770. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cubehelix", function() { return _cubehelix__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  2771. /***/ }),
  2772. /***/ "./node_modules/d3-color/src/lab.js":
  2773. /*!******************************************!*\
  2774. !*** ./node_modules/d3-color/src/lab.js ***!
  2775. \******************************************/
  2776. /*! exports provided: gray, default, Lab, lch, hcl, Hcl */
  2777. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2778. "use strict";
  2779. __webpack_require__.r(__webpack_exports__);
  2780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return gray; });
  2781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; });
  2782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lab", function() { return Lab; });
  2783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return lch; });
  2784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return hcl; });
  2785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hcl", function() { return Hcl; });
  2786. /* harmony import */ var _define__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define */ "./node_modules/d3-color/src/define.js");
  2787. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-color/src/color.js");
  2788. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-color/src/math.js");
  2789. // https://beta.observablehq.com/@mbostock/lab-and-rgb
  2790. var K = 18,
  2791. Xn = 0.96422,
  2792. Yn = 1,
  2793. Zn = 0.82521,
  2794. t0 = 4 / 29,
  2795. t1 = 6 / 29,
  2796. t2 = 3 * t1 * t1,
  2797. t3 = t1 * t1 * t1;
  2798. function labConvert(o) {
  2799. if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
  2800. if (o instanceof Hcl) {
  2801. if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
  2802. var h = o.h * _math__WEBPACK_IMPORTED_MODULE_2__["deg2rad"];
  2803. return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
  2804. }
  2805. if (!(o instanceof _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o);
  2806. var r = rgb2lrgb(o.r),
  2807. g = rgb2lrgb(o.g),
  2808. b = rgb2lrgb(o.b),
  2809. y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
  2810. if (r === g && g === b) x = z = y; else {
  2811. x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
  2812. z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
  2813. }
  2814. return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
  2815. }
  2816. function gray(l, opacity) {
  2817. return new Lab(l, 0, 0, opacity == null ? 1 : opacity);
  2818. }
  2819. function lab(l, a, b, opacity) {
  2820. return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
  2821. }
  2822. function Lab(l, a, b, opacity) {
  2823. this.l = +l;
  2824. this.a = +a;
  2825. this.b = +b;
  2826. this.opacity = +opacity;
  2827. }
  2828. Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Lab, lab, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color__WEBPACK_IMPORTED_MODULE_1__["Color"], {
  2829. brighter: function(k) {
  2830. return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
  2831. },
  2832. darker: function(k) {
  2833. return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
  2834. },
  2835. rgb: function() {
  2836. var y = (this.l + 16) / 116,
  2837. x = isNaN(this.a) ? y : y + this.a / 500,
  2838. z = isNaN(this.b) ? y : y - this.b / 200;
  2839. x = Xn * lab2xyz(x);
  2840. y = Yn * lab2xyz(y);
  2841. z = Zn * lab2xyz(z);
  2842. return new _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"](
  2843. lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
  2844. lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
  2845. lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
  2846. this.opacity
  2847. );
  2848. }
  2849. }));
  2850. function xyz2lab(t) {
  2851. return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;
  2852. }
  2853. function lab2xyz(t) {
  2854. return t > t1 ? t * t * t : t2 * (t - t0);
  2855. }
  2856. function lrgb2rgb(x) {
  2857. return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
  2858. }
  2859. function rgb2lrgb(x) {
  2860. return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
  2861. }
  2862. function hclConvert(o) {
  2863. if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
  2864. if (!(o instanceof Lab)) o = labConvert(o);
  2865. if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0, o.l, o.opacity);
  2866. var h = Math.atan2(o.b, o.a) * _math__WEBPACK_IMPORTED_MODULE_2__["rad2deg"];
  2867. return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
  2868. }
  2869. function lch(l, c, h, opacity) {
  2870. return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
  2871. }
  2872. function hcl(h, c, l, opacity) {
  2873. return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
  2874. }
  2875. function Hcl(h, c, l, opacity) {
  2876. this.h = +h;
  2877. this.c = +c;
  2878. this.l = +l;
  2879. this.opacity = +opacity;
  2880. }
  2881. Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Hcl, hcl, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color__WEBPACK_IMPORTED_MODULE_1__["Color"], {
  2882. brighter: function(k) {
  2883. return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
  2884. },
  2885. darker: function(k) {
  2886. return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
  2887. },
  2888. rgb: function() {
  2889. return labConvert(this).rgb();
  2890. }
  2891. }));
  2892. /***/ }),
  2893. /***/ "./node_modules/d3-color/src/math.js":
  2894. /*!*******************************************!*\
  2895. !*** ./node_modules/d3-color/src/math.js ***!
  2896. \*******************************************/
  2897. /*! exports provided: deg2rad, rad2deg */
  2898. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2899. "use strict";
  2900. __webpack_require__.r(__webpack_exports__);
  2901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deg2rad", function() { return deg2rad; });
  2902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rad2deg", function() { return rad2deg; });
  2903. var deg2rad = Math.PI / 180;
  2904. var rad2deg = 180 / Math.PI;
  2905. /***/ }),
  2906. /***/ "./node_modules/d3-contour/src/area.js":
  2907. /*!*********************************************!*\
  2908. !*** ./node_modules/d3-contour/src/area.js ***!
  2909. \*********************************************/
  2910. /*! exports provided: default */
  2911. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2912. "use strict";
  2913. __webpack_require__.r(__webpack_exports__);
  2914. /* harmony default export */ __webpack_exports__["default"] = (function(ring) {
  2915. var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
  2916. while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
  2917. return area;
  2918. });
  2919. /***/ }),
  2920. /***/ "./node_modules/d3-contour/src/array.js":
  2921. /*!**********************************************!*\
  2922. !*** ./node_modules/d3-contour/src/array.js ***!
  2923. \**********************************************/
  2924. /*! exports provided: slice */
  2925. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2926. "use strict";
  2927. __webpack_require__.r(__webpack_exports__);
  2928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  2929. var array = Array.prototype;
  2930. var slice = array.slice;
  2931. /***/ }),
  2932. /***/ "./node_modules/d3-contour/src/ascending.js":
  2933. /*!**************************************************!*\
  2934. !*** ./node_modules/d3-contour/src/ascending.js ***!
  2935. \**************************************************/
  2936. /*! exports provided: default */
  2937. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2938. "use strict";
  2939. __webpack_require__.r(__webpack_exports__);
  2940. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  2941. return a - b;
  2942. });
  2943. /***/ }),
  2944. /***/ "./node_modules/d3-contour/src/blur.js":
  2945. /*!*********************************************!*\
  2946. !*** ./node_modules/d3-contour/src/blur.js ***!
  2947. \*********************************************/
  2948. /*! exports provided: blurX, blurY */
  2949. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2950. "use strict";
  2951. __webpack_require__.r(__webpack_exports__);
  2952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blurX", function() { return blurX; });
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blurY", function() { return blurY; });
  2954. // TODO Optimize edge cases.
  2955. // TODO Optimize index calculation.
  2956. // TODO Optimize arguments.
  2957. function blurX(source, target, r) {
  2958. var n = source.width,
  2959. m = source.height,
  2960. w = (r << 1) + 1;
  2961. for (var j = 0; j < m; ++j) {
  2962. for (var i = 0, sr = 0; i < n + r; ++i) {
  2963. if (i < n) {
  2964. sr += source.data[i + j * n];
  2965. }
  2966. if (i >= r) {
  2967. if (i >= w) {
  2968. sr -= source.data[i - w + j * n];
  2969. }
  2970. target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);
  2971. }
  2972. }
  2973. }
  2974. }
  2975. // TODO Optimize edge cases.
  2976. // TODO Optimize index calculation.
  2977. // TODO Optimize arguments.
  2978. function blurY(source, target, r) {
  2979. var n = source.width,
  2980. m = source.height,
  2981. w = (r << 1) + 1;
  2982. for (var i = 0; i < n; ++i) {
  2983. for (var j = 0, sr = 0; j < m + r; ++j) {
  2984. if (j < m) {
  2985. sr += source.data[i + j * n];
  2986. }
  2987. if (j >= r) {
  2988. if (j >= w) {
  2989. sr -= source.data[i + (j - w) * n];
  2990. }
  2991. target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);
  2992. }
  2993. }
  2994. }
  2995. }
  2996. /***/ }),
  2997. /***/ "./node_modules/d3-contour/src/constant.js":
  2998. /*!*************************************************!*\
  2999. !*** ./node_modules/d3-contour/src/constant.js ***!
  3000. \*************************************************/
  3001. /*! exports provided: default */
  3002. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3003. "use strict";
  3004. __webpack_require__.r(__webpack_exports__);
  3005. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  3006. return function() {
  3007. return x;
  3008. };
  3009. });
  3010. /***/ }),
  3011. /***/ "./node_modules/d3-contour/src/contains.js":
  3012. /*!*************************************************!*\
  3013. !*** ./node_modules/d3-contour/src/contains.js ***!
  3014. \*************************************************/
  3015. /*! exports provided: default */
  3016. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3017. "use strict";
  3018. __webpack_require__.r(__webpack_exports__);
  3019. /* harmony default export */ __webpack_exports__["default"] = (function(ring, hole) {
  3020. var i = -1, n = hole.length, c;
  3021. while (++i < n) if (c = ringContains(ring, hole[i])) return c;
  3022. return 0;
  3023. });
  3024. function ringContains(ring, point) {
  3025. var x = point[0], y = point[1], contains = -1;
  3026. for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
  3027. var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];
  3028. if (segmentContains(pi, pj, point)) return 0;
  3029. if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;
  3030. }
  3031. return contains;
  3032. }
  3033. function segmentContains(a, b, c) {
  3034. var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);
  3035. }
  3036. function collinear(a, b, c) {
  3037. return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);
  3038. }
  3039. function within(p, q, r) {
  3040. return p <= q && q <= r || r <= q && q <= p;
  3041. }
  3042. /***/ }),
  3043. /***/ "./node_modules/d3-contour/src/contours.js":
  3044. /*!*************************************************!*\
  3045. !*** ./node_modules/d3-contour/src/contours.js ***!
  3046. \*************************************************/
  3047. /*! exports provided: default */
  3048. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3049. "use strict";
  3050. __webpack_require__.r(__webpack_exports__);
  3051. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  3052. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-contour/src/array.js");
  3053. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-contour/src/ascending.js");
  3054. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./area */ "./node_modules/d3-contour/src/area.js");
  3055. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-contour/src/constant.js");
  3056. /* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./contains */ "./node_modules/d3-contour/src/contains.js");
  3057. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./noop */ "./node_modules/d3-contour/src/noop.js");
  3058. var cases = [
  3059. [],
  3060. [[[1.0, 1.5], [0.5, 1.0]]],
  3061. [[[1.5, 1.0], [1.0, 1.5]]],
  3062. [[[1.5, 1.0], [0.5, 1.0]]],
  3063. [[[1.0, 0.5], [1.5, 1.0]]],
  3064. [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],
  3065. [[[1.0, 0.5], [1.0, 1.5]]],
  3066. [[[1.0, 0.5], [0.5, 1.0]]],
  3067. [[[0.5, 1.0], [1.0, 0.5]]],
  3068. [[[1.0, 1.5], [1.0, 0.5]]],
  3069. [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],
  3070. [[[1.5, 1.0], [1.0, 0.5]]],
  3071. [[[0.5, 1.0], [1.5, 1.0]]],
  3072. [[[1.0, 1.5], [1.5, 1.0]]],
  3073. [[[0.5, 1.0], [1.0, 1.5]]],
  3074. []
  3075. ];
  3076. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3077. var dx = 1,
  3078. dy = 1,
  3079. threshold = d3_array__WEBPACK_IMPORTED_MODULE_0__["thresholdSturges"],
  3080. smooth = smoothLinear;
  3081. function contours(values) {
  3082. var tz = threshold(values);
  3083. // Convert number of thresholds into uniform thresholds.
  3084. if (!Array.isArray(tz)) {
  3085. var domain = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["extent"])(values), start = domain[0], stop = domain[1];
  3086. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, tz);
  3087. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);
  3088. } else {
  3089. tz = tz.slice().sort(_ascending__WEBPACK_IMPORTED_MODULE_2__["default"]);
  3090. }
  3091. return tz.map(function(value) {
  3092. return contour(values, value);
  3093. });
  3094. }
  3095. // Accumulate, smooth contour rings, assign holes to exterior rings.
  3096. // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js
  3097. function contour(values, value) {
  3098. var polygons = [],
  3099. holes = [];
  3100. isorings(values, value, function(ring) {
  3101. smooth(ring, values, value);
  3102. if (Object(_area__WEBPACK_IMPORTED_MODULE_3__["default"])(ring) > 0) polygons.push([ring]);
  3103. else holes.push(ring);
  3104. });
  3105. holes.forEach(function(hole) {
  3106. for (var i = 0, n = polygons.length, polygon; i < n; ++i) {
  3107. if (Object(_contains__WEBPACK_IMPORTED_MODULE_5__["default"])((polygon = polygons[i])[0], hole) !== -1) {
  3108. polygon.push(hole);
  3109. return;
  3110. }
  3111. }
  3112. });
  3113. return {
  3114. type: "MultiPolygon",
  3115. value: value,
  3116. coordinates: polygons
  3117. };
  3118. }
  3119. // Marching squares with isolines stitched into rings.
  3120. // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js
  3121. function isorings(values, value, callback) {
  3122. var fragmentByStart = new Array,
  3123. fragmentByEnd = new Array,
  3124. x, y, t0, t1, t2, t3;
  3125. // Special case for the first row (y = -1, t2 = t3 = 0).
  3126. x = y = -1;
  3127. t1 = values[0] >= value;
  3128. cases[t1 << 1].forEach(stitch);
  3129. while (++x < dx - 1) {
  3130. t0 = t1, t1 = values[x + 1] >= value;
  3131. cases[t0 | t1 << 1].forEach(stitch);
  3132. }
  3133. cases[t1 << 0].forEach(stitch);
  3134. // General case for the intermediate rows.
  3135. while (++y < dy - 1) {
  3136. x = -1;
  3137. t1 = values[y * dx + dx] >= value;
  3138. t2 = values[y * dx] >= value;
  3139. cases[t1 << 1 | t2 << 2].forEach(stitch);
  3140. while (++x < dx - 1) {
  3141. t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;
  3142. t3 = t2, t2 = values[y * dx + x + 1] >= value;
  3143. cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);
  3144. }
  3145. cases[t1 | t2 << 3].forEach(stitch);
  3146. }
  3147. // Special case for the last row (y = dy - 1, t0 = t1 = 0).
  3148. x = -1;
  3149. t2 = values[y * dx] >= value;
  3150. cases[t2 << 2].forEach(stitch);
  3151. while (++x < dx - 1) {
  3152. t3 = t2, t2 = values[y * dx + x + 1] >= value;
  3153. cases[t2 << 2 | t3 << 3].forEach(stitch);
  3154. }
  3155. cases[t2 << 3].forEach(stitch);
  3156. function stitch(line) {
  3157. var start = [line[0][0] + x, line[0][1] + y],
  3158. end = [line[1][0] + x, line[1][1] + y],
  3159. startIndex = index(start),
  3160. endIndex = index(end),
  3161. f, g;
  3162. if (f = fragmentByEnd[startIndex]) {
  3163. if (g = fragmentByStart[endIndex]) {
  3164. delete fragmentByEnd[f.end];
  3165. delete fragmentByStart[g.start];
  3166. if (f === g) {
  3167. f.ring.push(end);
  3168. callback(f.ring);
  3169. } else {
  3170. fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};
  3171. }
  3172. } else {
  3173. delete fragmentByEnd[f.end];
  3174. f.ring.push(end);
  3175. fragmentByEnd[f.end = endIndex] = f;
  3176. }
  3177. } else if (f = fragmentByStart[endIndex]) {
  3178. if (g = fragmentByEnd[startIndex]) {
  3179. delete fragmentByStart[f.start];
  3180. delete fragmentByEnd[g.end];
  3181. if (f === g) {
  3182. f.ring.push(end);
  3183. callback(f.ring);
  3184. } else {
  3185. fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};
  3186. }
  3187. } else {
  3188. delete fragmentByStart[f.start];
  3189. f.ring.unshift(start);
  3190. fragmentByStart[f.start = startIndex] = f;
  3191. }
  3192. } else {
  3193. fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};
  3194. }
  3195. }
  3196. }
  3197. function index(point) {
  3198. return point[0] * 2 + point[1] * (dx + 1) * 4;
  3199. }
  3200. function smoothLinear(ring, values, value) {
  3201. ring.forEach(function(point) {
  3202. var x = point[0],
  3203. y = point[1],
  3204. xt = x | 0,
  3205. yt = y | 0,
  3206. v0,
  3207. v1 = values[yt * dx + xt];
  3208. if (x > 0 && x < dx && xt === x) {
  3209. v0 = values[yt * dx + xt - 1];
  3210. point[0] = x + (value - v0) / (v1 - v0) - 0.5;
  3211. }
  3212. if (y > 0 && y < dy && yt === y) {
  3213. v0 = values[(yt - 1) * dx + xt];
  3214. point[1] = y + (value - v0) / (v1 - v0) - 0.5;
  3215. }
  3216. });
  3217. }
  3218. contours.contour = contour;
  3219. contours.size = function(_) {
  3220. if (!arguments.length) return [dx, dy];
  3221. var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);
  3222. if (!(_0 > 0) || !(_1 > 0)) throw new Error("invalid size");
  3223. return dx = _0, dy = _1, contours;
  3224. };
  3225. contours.thresholds = function(_) {
  3226. return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(_array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_)) : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(_), contours) : threshold;
  3227. };
  3228. contours.smooth = function(_) {
  3229. return arguments.length ? (smooth = _ ? smoothLinear : _noop__WEBPACK_IMPORTED_MODULE_6__["default"], contours) : smooth === smoothLinear;
  3230. };
  3231. return contours;
  3232. });
  3233. /***/ }),
  3234. /***/ "./node_modules/d3-contour/src/density.js":
  3235. /*!************************************************!*\
  3236. !*** ./node_modules/d3-contour/src/density.js ***!
  3237. \************************************************/
  3238. /*! exports provided: default */
  3239. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3240. "use strict";
  3241. __webpack_require__.r(__webpack_exports__);
  3242. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  3243. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-contour/src/array.js");
  3244. /* harmony import */ var _blur__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./blur */ "./node_modules/d3-contour/src/blur.js");
  3245. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-contour/src/constant.js");
  3246. /* harmony import */ var _contours__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./contours */ "./node_modules/d3-contour/src/contours.js");
  3247. function defaultX(d) {
  3248. return d[0];
  3249. }
  3250. function defaultY(d) {
  3251. return d[1];
  3252. }
  3253. function defaultWeight() {
  3254. return 1;
  3255. }
  3256. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3257. var x = defaultX,
  3258. y = defaultY,
  3259. weight = defaultWeight,
  3260. dx = 960,
  3261. dy = 500,
  3262. r = 20, // blur radius
  3263. k = 2, // log2(grid cell size)
  3264. o = r * 3, // grid offset, to pad for blur
  3265. n = (dx + o * 2) >> k, // grid width
  3266. m = (dy + o * 2) >> k, // grid height
  3267. threshold = Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(20);
  3268. function density(data) {
  3269. var values0 = new Float32Array(n * m),
  3270. values1 = new Float32Array(n * m);
  3271. data.forEach(function(d, i, data) {
  3272. var xi = (+x(d, i, data) + o) >> k,
  3273. yi = (+y(d, i, data) + o) >> k,
  3274. wi = +weight(d, i, data);
  3275. if (xi >= 0 && xi < n && yi >= 0 && yi < m) {
  3276. values0[xi + yi * n] += wi;
  3277. }
  3278. });
  3279. // TODO Optimize.
  3280. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurX"])({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
  3281. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurY"])({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
  3282. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurX"])({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
  3283. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurY"])({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
  3284. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurX"])({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
  3285. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurY"])({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
  3286. var tz = threshold(values0);
  3287. // Convert number of thresholds into uniform thresholds.
  3288. if (!Array.isArray(tz)) {
  3289. var stop = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["max"])(values0);
  3290. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(0, stop, tz);
  3291. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(0, Math.floor(stop / tz) * tz, tz);
  3292. tz.shift();
  3293. }
  3294. return Object(_contours__WEBPACK_IMPORTED_MODULE_4__["default"])()
  3295. .thresholds(tz)
  3296. .size([n, m])
  3297. (values0)
  3298. .map(transform);
  3299. }
  3300. function transform(geometry) {
  3301. geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.
  3302. geometry.coordinates.forEach(transformPolygon);
  3303. return geometry;
  3304. }
  3305. function transformPolygon(coordinates) {
  3306. coordinates.forEach(transformRing);
  3307. }
  3308. function transformRing(coordinates) {
  3309. coordinates.forEach(transformPoint);
  3310. }
  3311. // TODO Optimize.
  3312. function transformPoint(coordinates) {
  3313. coordinates[0] = coordinates[0] * Math.pow(2, k) - o;
  3314. coordinates[1] = coordinates[1] * Math.pow(2, k) - o;
  3315. }
  3316. function resize() {
  3317. o = r * 3;
  3318. n = (dx + o * 2) >> k;
  3319. m = (dy + o * 2) >> k;
  3320. return density;
  3321. }
  3322. density.x = function(_) {
  3323. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), density) : x;
  3324. };
  3325. density.y = function(_) {
  3326. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), density) : y;
  3327. };
  3328. density.weight = function(_) {
  3329. return arguments.length ? (weight = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), density) : weight;
  3330. };
  3331. density.size = function(_) {
  3332. if (!arguments.length) return [dx, dy];
  3333. var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);
  3334. if (!(_0 >= 0) && !(_0 >= 0)) throw new Error("invalid size");
  3335. return dx = _0, dy = _1, resize();
  3336. };
  3337. density.cellSize = function(_) {
  3338. if (!arguments.length) return 1 << k;
  3339. if (!((_ = +_) >= 1)) throw new Error("invalid cell size");
  3340. return k = Math.floor(Math.log(_) / Math.LN2), resize();
  3341. };
  3342. density.thresholds = function(_) {
  3343. return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(_array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_)) : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(_), density) : threshold;
  3344. };
  3345. density.bandwidth = function(_) {
  3346. if (!arguments.length) return Math.sqrt(r * (r + 1));
  3347. if (!((_ = +_) >= 0)) throw new Error("invalid bandwidth");
  3348. return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();
  3349. };
  3350. return density;
  3351. });
  3352. /***/ }),
  3353. /***/ "./node_modules/d3-contour/src/index.js":
  3354. /*!**********************************************!*\
  3355. !*** ./node_modules/d3-contour/src/index.js ***!
  3356. \**********************************************/
  3357. /*! exports provided: contours, contourDensity */
  3358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3359. "use strict";
  3360. __webpack_require__.r(__webpack_exports__);
  3361. /* harmony import */ var _contours__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./contours */ "./node_modules/d3-contour/src/contours.js");
  3362. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contours", function() { return _contours__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3363. /* harmony import */ var _density__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./density */ "./node_modules/d3-contour/src/density.js");
  3364. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contourDensity", function() { return _density__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  3365. /***/ }),
  3366. /***/ "./node_modules/d3-contour/src/noop.js":
  3367. /*!*********************************************!*\
  3368. !*** ./node_modules/d3-contour/src/noop.js ***!
  3369. \*********************************************/
  3370. /*! exports provided: default */
  3371. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3372. "use strict";
  3373. __webpack_require__.r(__webpack_exports__);
  3374. /* harmony default export */ __webpack_exports__["default"] = (function() {});
  3375. /***/ }),
  3376. /***/ "./node_modules/d3-dispatch/src/dispatch.js":
  3377. /*!**************************************************!*\
  3378. !*** ./node_modules/d3-dispatch/src/dispatch.js ***!
  3379. \**************************************************/
  3380. /*! exports provided: default */
  3381. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3382. "use strict";
  3383. __webpack_require__.r(__webpack_exports__);
  3384. var noop = {value: function() {}};
  3385. function dispatch() {
  3386. for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
  3387. if (!(t = arguments[i] + "") || (t in _)) throw new Error("illegal type: " + t);
  3388. _[t] = [];
  3389. }
  3390. return new Dispatch(_);
  3391. }
  3392. function Dispatch(_) {
  3393. this._ = _;
  3394. }
  3395. function parseTypenames(typenames, types) {
  3396. return typenames.trim().split(/^|\s+/).map(function(t) {
  3397. var name = "", i = t.indexOf(".");
  3398. if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
  3399. if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t);
  3400. return {type: t, name: name};
  3401. });
  3402. }
  3403. Dispatch.prototype = dispatch.prototype = {
  3404. constructor: Dispatch,
  3405. on: function(typename, callback) {
  3406. var _ = this._,
  3407. T = parseTypenames(typename + "", _),
  3408. t,
  3409. i = -1,
  3410. n = T.length;
  3411. // If no callback was specified, return the callback of the given type and name.
  3412. if (arguments.length < 2) {
  3413. while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;
  3414. return;
  3415. }
  3416. // If a type was specified, set the callback for the given type and name.
  3417. // Otherwise, if a null callback was specified, remove callbacks of the given name.
  3418. if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback);
  3419. while (++i < n) {
  3420. if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);
  3421. else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);
  3422. }
  3423. return this;
  3424. },
  3425. copy: function() {
  3426. var copy = {}, _ = this._;
  3427. for (var t in _) copy[t] = _[t].slice();
  3428. return new Dispatch(copy);
  3429. },
  3430. call: function(type, that) {
  3431. if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];
  3432. if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
  3433. for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
  3434. },
  3435. apply: function(type, that, args) {
  3436. if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
  3437. for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
  3438. }
  3439. };
  3440. function get(type, name) {
  3441. for (var i = 0, n = type.length, c; i < n; ++i) {
  3442. if ((c = type[i]).name === name) {
  3443. return c.value;
  3444. }
  3445. }
  3446. }
  3447. function set(type, name, callback) {
  3448. for (var i = 0, n = type.length; i < n; ++i) {
  3449. if (type[i].name === name) {
  3450. type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
  3451. break;
  3452. }
  3453. }
  3454. if (callback != null) type.push({name: name, value: callback});
  3455. return type;
  3456. }
  3457. /* harmony default export */ __webpack_exports__["default"] = (dispatch);
  3458. /***/ }),
  3459. /***/ "./node_modules/d3-dispatch/src/index.js":
  3460. /*!***********************************************!*\
  3461. !*** ./node_modules/d3-dispatch/src/index.js ***!
  3462. \***********************************************/
  3463. /*! exports provided: dispatch */
  3464. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3465. "use strict";
  3466. __webpack_require__.r(__webpack_exports__);
  3467. /* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dispatch */ "./node_modules/d3-dispatch/src/dispatch.js");
  3468. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return _dispatch__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3469. /***/ }),
  3470. /***/ "./node_modules/d3-drag/src/constant.js":
  3471. /*!**********************************************!*\
  3472. !*** ./node_modules/d3-drag/src/constant.js ***!
  3473. \**********************************************/
  3474. /*! exports provided: default */
  3475. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3476. "use strict";
  3477. __webpack_require__.r(__webpack_exports__);
  3478. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  3479. return function() {
  3480. return x;
  3481. };
  3482. });
  3483. /***/ }),
  3484. /***/ "./node_modules/d3-drag/src/drag.js":
  3485. /*!******************************************!*\
  3486. !*** ./node_modules/d3-drag/src/drag.js ***!
  3487. \******************************************/
  3488. /*! exports provided: default */
  3489. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3490. "use strict";
  3491. __webpack_require__.r(__webpack_exports__);
  3492. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  3493. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  3494. /* harmony import */ var _nodrag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nodrag */ "./node_modules/d3-drag/src/nodrag.js");
  3495. /* harmony import */ var _noevent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./noevent */ "./node_modules/d3-drag/src/noevent.js");
  3496. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-drag/src/constant.js");
  3497. /* harmony import */ var _event__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./event */ "./node_modules/d3-drag/src/event.js");
  3498. // Ignore right-click, since that should open the context menu.
  3499. function defaultFilter() {
  3500. return !d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].button;
  3501. }
  3502. function defaultContainer() {
  3503. return this.parentNode;
  3504. }
  3505. function defaultSubject(d) {
  3506. return d == null ? {x: d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].x, y: d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].y} : d;
  3507. }
  3508. function defaultTouchable() {
  3509. return "ontouchstart" in this;
  3510. }
  3511. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3512. var filter = defaultFilter,
  3513. container = defaultContainer,
  3514. subject = defaultSubject,
  3515. touchable = defaultTouchable,
  3516. gestures = {},
  3517. listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "drag", "end"),
  3518. active = 0,
  3519. mousedownx,
  3520. mousedowny,
  3521. mousemoving,
  3522. touchending,
  3523. clickDistance2 = 0;
  3524. function drag(selection) {
  3525. selection
  3526. .on("mousedown.drag", mousedowned)
  3527. .filter(touchable)
  3528. .on("touchstart.drag", touchstarted)
  3529. .on("touchmove.drag", touchmoved)
  3530. .on("touchend.drag touchcancel.drag", touchended)
  3531. .style("touch-action", "none")
  3532. .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
  3533. }
  3534. function mousedowned() {
  3535. if (touchending || !filter.apply(this, arguments)) return;
  3536. var gesture = beforestart("mouse", container.apply(this, arguments), d3_selection__WEBPACK_IMPORTED_MODULE_1__["mouse"], this, arguments);
  3537. if (!gesture) return;
  3538. Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view).on("mousemove.drag", mousemoved, true).on("mouseup.drag", mouseupped, true);
  3539. Object(_nodrag__WEBPACK_IMPORTED_MODULE_2__["default"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view);
  3540. Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])();
  3541. mousemoving = false;
  3542. mousedownx = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientX;
  3543. mousedowny = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientY;
  3544. gesture("start");
  3545. }
  3546. function mousemoved() {
  3547. Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["default"])();
  3548. if (!mousemoving) {
  3549. var dx = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientX - mousedownx, dy = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientY - mousedowny;
  3550. mousemoving = dx * dx + dy * dy > clickDistance2;
  3551. }
  3552. gestures.mouse("drag");
  3553. }
  3554. function mouseupped() {
  3555. Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view).on("mousemove.drag mouseup.drag", null);
  3556. Object(_nodrag__WEBPACK_IMPORTED_MODULE_2__["yesdrag"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view, mousemoving);
  3557. Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["default"])();
  3558. gestures.mouse("end");
  3559. }
  3560. function touchstarted() {
  3561. if (!filter.apply(this, arguments)) return;
  3562. var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches,
  3563. c = container.apply(this, arguments),
  3564. n = touches.length, i, gesture;
  3565. for (i = 0; i < n; ++i) {
  3566. if (gesture = beforestart(touches[i].identifier, c, d3_selection__WEBPACK_IMPORTED_MODULE_1__["touch"], this, arguments)) {
  3567. Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])();
  3568. gesture("start");
  3569. }
  3570. }
  3571. }
  3572. function touchmoved() {
  3573. var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches,
  3574. n = touches.length, i, gesture;
  3575. for (i = 0; i < n; ++i) {
  3576. if (gesture = gestures[touches[i].identifier]) {
  3577. Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["default"])();
  3578. gesture("drag");
  3579. }
  3580. }
  3581. }
  3582. function touchended() {
  3583. var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches,
  3584. n = touches.length, i, gesture;
  3585. if (touchending) clearTimeout(touchending);
  3586. touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!
  3587. for (i = 0; i < n; ++i) {
  3588. if (gesture = gestures[touches[i].identifier]) {
  3589. Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])();
  3590. gesture("end");
  3591. }
  3592. }
  3593. }
  3594. function beforestart(id, container, point, that, args) {
  3595. var p = point(container, id), s, dx, dy,
  3596. sublisteners = listeners.copy();
  3597. if (!Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["customEvent"])(new _event__WEBPACK_IMPORTED_MODULE_5__["default"](drag, "beforestart", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {
  3598. if ((d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].subject = s = subject.apply(that, args)) == null) return false;
  3599. dx = s.x - p[0] || 0;
  3600. dy = s.y - p[1] || 0;
  3601. return true;
  3602. })) return;
  3603. return function gesture(type) {
  3604. var p0 = p, n;
  3605. switch (type) {
  3606. case "start": gestures[id] = gesture, n = active++; break;
  3607. case "end": delete gestures[id], --active; // nobreak
  3608. case "drag": p = point(container, id), n = active; break;
  3609. }
  3610. Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["customEvent"])(new _event__WEBPACK_IMPORTED_MODULE_5__["default"](drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);
  3611. };
  3612. }
  3613. drag.filter = function(_) {
  3614. return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(!!_), drag) : filter;
  3615. };
  3616. drag.container = function(_) {
  3617. return arguments.length ? (container = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(_), drag) : container;
  3618. };
  3619. drag.subject = function(_) {
  3620. return arguments.length ? (subject = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(_), drag) : subject;
  3621. };
  3622. drag.touchable = function(_) {
  3623. return arguments.length ? (touchable = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(!!_), drag) : touchable;
  3624. };
  3625. drag.on = function() {
  3626. var value = listeners.on.apply(listeners, arguments);
  3627. return value === listeners ? drag : value;
  3628. };
  3629. drag.clickDistance = function(_) {
  3630. return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);
  3631. };
  3632. return drag;
  3633. });
  3634. /***/ }),
  3635. /***/ "./node_modules/d3-drag/src/event.js":
  3636. /*!*******************************************!*\
  3637. !*** ./node_modules/d3-drag/src/event.js ***!
  3638. \*******************************************/
  3639. /*! exports provided: default */
  3640. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3641. "use strict";
  3642. __webpack_require__.r(__webpack_exports__);
  3643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DragEvent; });
  3644. function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {
  3645. this.target = target;
  3646. this.type = type;
  3647. this.subject = subject;
  3648. this.identifier = id;
  3649. this.active = active;
  3650. this.x = x;
  3651. this.y = y;
  3652. this.dx = dx;
  3653. this.dy = dy;
  3654. this._ = dispatch;
  3655. }
  3656. DragEvent.prototype.on = function() {
  3657. var value = this._.on.apply(this._, arguments);
  3658. return value === this._ ? this : value;
  3659. };
  3660. /***/ }),
  3661. /***/ "./node_modules/d3-drag/src/index.js":
  3662. /*!*******************************************!*\
  3663. !*** ./node_modules/d3-drag/src/index.js ***!
  3664. \*******************************************/
  3665. /*! exports provided: drag, dragDisable, dragEnable */
  3666. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3667. "use strict";
  3668. __webpack_require__.r(__webpack_exports__);
  3669. /* harmony import */ var _drag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drag */ "./node_modules/d3-drag/src/drag.js");
  3670. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "drag", function() { return _drag__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3671. /* harmony import */ var _nodrag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nodrag */ "./node_modules/d3-drag/src/nodrag.js");
  3672. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragDisable", function() { return _nodrag__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  3673. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragEnable", function() { return _nodrag__WEBPACK_IMPORTED_MODULE_1__["yesdrag"]; });
  3674. /***/ }),
  3675. /***/ "./node_modules/d3-drag/src/nodrag.js":
  3676. /*!********************************************!*\
  3677. !*** ./node_modules/d3-drag/src/nodrag.js ***!
  3678. \********************************************/
  3679. /*! exports provided: default, yesdrag */
  3680. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3681. "use strict";
  3682. __webpack_require__.r(__webpack_exports__);
  3683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yesdrag", function() { return yesdrag; });
  3684. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  3685. /* harmony import */ var _noevent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noevent */ "./node_modules/d3-drag/src/noevent.js");
  3686. /* harmony default export */ __webpack_exports__["default"] = (function(view) {
  3687. var root = view.document.documentElement,
  3688. selection = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["select"])(view).on("dragstart.drag", _noevent__WEBPACK_IMPORTED_MODULE_1__["default"], true);
  3689. if ("onselectstart" in root) {
  3690. selection.on("selectstart.drag", _noevent__WEBPACK_IMPORTED_MODULE_1__["default"], true);
  3691. } else {
  3692. root.__noselect = root.style.MozUserSelect;
  3693. root.style.MozUserSelect = "none";
  3694. }
  3695. });
  3696. function yesdrag(view, noclick) {
  3697. var root = view.document.documentElement,
  3698. selection = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["select"])(view).on("dragstart.drag", null);
  3699. if (noclick) {
  3700. selection.on("click.drag", _noevent__WEBPACK_IMPORTED_MODULE_1__["default"], true);
  3701. setTimeout(function() { selection.on("click.drag", null); }, 0);
  3702. }
  3703. if ("onselectstart" in root) {
  3704. selection.on("selectstart.drag", null);
  3705. } else {
  3706. root.style.MozUserSelect = root.__noselect;
  3707. delete root.__noselect;
  3708. }
  3709. }
  3710. /***/ }),
  3711. /***/ "./node_modules/d3-drag/src/noevent.js":
  3712. /*!*********************************************!*\
  3713. !*** ./node_modules/d3-drag/src/noevent.js ***!
  3714. \*********************************************/
  3715. /*! exports provided: nopropagation, default */
  3716. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3717. "use strict";
  3718. __webpack_require__.r(__webpack_exports__);
  3719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; });
  3720. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  3721. function nopropagation() {
  3722. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  3723. }
  3724. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3725. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault();
  3726. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  3727. });
  3728. /***/ }),
  3729. /***/ "./node_modules/d3-dsv/src/csv.js":
  3730. /*!****************************************!*\
  3731. !*** ./node_modules/d3-dsv/src/csv.js ***!
  3732. \****************************************/
  3733. /*! exports provided: csvParse, csvParseRows, csvFormat, csvFormatRows */
  3734. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3735. "use strict";
  3736. __webpack_require__.r(__webpack_exports__);
  3737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvParse", function() { return csvParse; });
  3738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvParseRows", function() { return csvParseRows; });
  3739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvFormat", function() { return csvFormat; });
  3740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvFormatRows", function() { return csvFormatRows; });
  3741. /* harmony import */ var _dsv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dsv */ "./node_modules/d3-dsv/src/dsv.js");
  3742. var csv = Object(_dsv__WEBPACK_IMPORTED_MODULE_0__["default"])(",");
  3743. var csvParse = csv.parse;
  3744. var csvParseRows = csv.parseRows;
  3745. var csvFormat = csv.format;
  3746. var csvFormatRows = csv.formatRows;
  3747. /***/ }),
  3748. /***/ "./node_modules/d3-dsv/src/dsv.js":
  3749. /*!****************************************!*\
  3750. !*** ./node_modules/d3-dsv/src/dsv.js ***!
  3751. \****************************************/
  3752. /*! exports provided: default */
  3753. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3754. "use strict";
  3755. __webpack_require__.r(__webpack_exports__);
  3756. var EOL = {},
  3757. EOF = {},
  3758. QUOTE = 34,
  3759. NEWLINE = 10,
  3760. RETURN = 13;
  3761. function objectConverter(columns) {
  3762. return new Function("d", "return {" + columns.map(function(name, i) {
  3763. return JSON.stringify(name) + ": d[" + i + "]";
  3764. }).join(",") + "}");
  3765. }
  3766. function customConverter(columns, f) {
  3767. var object = objectConverter(columns);
  3768. return function(row, i) {
  3769. return f(object(row), i, columns);
  3770. };
  3771. }
  3772. // Compute unique columns in order of discovery.
  3773. function inferColumns(rows) {
  3774. var columnSet = Object.create(null),
  3775. columns = [];
  3776. rows.forEach(function(row) {
  3777. for (var column in row) {
  3778. if (!(column in columnSet)) {
  3779. columns.push(columnSet[column] = column);
  3780. }
  3781. }
  3782. });
  3783. return columns;
  3784. }
  3785. /* harmony default export */ __webpack_exports__["default"] = (function(delimiter) {
  3786. var reFormat = new RegExp("[\"" + delimiter + "\n\r]"),
  3787. DELIMITER = delimiter.charCodeAt(0);
  3788. function parse(text, f) {
  3789. var convert, columns, rows = parseRows(text, function(row, i) {
  3790. if (convert) return convert(row, i - 1);
  3791. columns = row, convert = f ? customConverter(row, f) : objectConverter(row);
  3792. });
  3793. rows.columns = columns || [];
  3794. return rows;
  3795. }
  3796. function parseRows(text, f) {
  3797. var rows = [], // output rows
  3798. N = text.length,
  3799. I = 0, // current character index
  3800. n = 0, // current line number
  3801. t, // current token
  3802. eof = N <= 0, // current token followed by EOF?
  3803. eol = false; // current token followed by EOL?
  3804. // Strip the trailing newline.
  3805. if (text.charCodeAt(N - 1) === NEWLINE) --N;
  3806. if (text.charCodeAt(N - 1) === RETURN) --N;
  3807. function token() {
  3808. if (eof) return EOF;
  3809. if (eol) return eol = false, EOL;
  3810. // Unescape quotes.
  3811. var i, j = I, c;
  3812. if (text.charCodeAt(j) === QUOTE) {
  3813. while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);
  3814. if ((i = I) >= N) eof = true;
  3815. else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;
  3816. else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }
  3817. return text.slice(j + 1, i - 1).replace(/""/g, "\"");
  3818. }
  3819. // Find next delimiter or newline.
  3820. while (I < N) {
  3821. if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;
  3822. else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }
  3823. else if (c !== DELIMITER) continue;
  3824. return text.slice(j, i);
  3825. }
  3826. // Return last token before EOF.
  3827. return eof = true, text.slice(j, N);
  3828. }
  3829. while ((t = token()) !== EOF) {
  3830. var row = [];
  3831. while (t !== EOL && t !== EOF) row.push(t), t = token();
  3832. if (f && (row = f(row, n++)) == null) continue;
  3833. rows.push(row);
  3834. }
  3835. return rows;
  3836. }
  3837. function format(rows, columns) {
  3838. if (columns == null) columns = inferColumns(rows);
  3839. return [columns.map(formatValue).join(delimiter)].concat(rows.map(function(row) {
  3840. return columns.map(function(column) {
  3841. return formatValue(row[column]);
  3842. }).join(delimiter);
  3843. })).join("\n");
  3844. }
  3845. function formatRows(rows) {
  3846. return rows.map(formatRow).join("\n");
  3847. }
  3848. function formatRow(row) {
  3849. return row.map(formatValue).join(delimiter);
  3850. }
  3851. function formatValue(text) {
  3852. return text == null ? ""
  3853. : reFormat.test(text += "") ? "\"" + text.replace(/"/g, "\"\"") + "\""
  3854. : text;
  3855. }
  3856. return {
  3857. parse: parse,
  3858. parseRows: parseRows,
  3859. format: format,
  3860. formatRows: formatRows
  3861. };
  3862. });
  3863. /***/ }),
  3864. /***/ "./node_modules/d3-dsv/src/index.js":
  3865. /*!******************************************!*\
  3866. !*** ./node_modules/d3-dsv/src/index.js ***!
  3867. \******************************************/
  3868. /*! exports provided: dsvFormat, csvParse, csvParseRows, csvFormat, csvFormatRows, tsvParse, tsvParseRows, tsvFormat, tsvFormatRows */
  3869. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3870. "use strict";
  3871. __webpack_require__.r(__webpack_exports__);
  3872. /* harmony import */ var _dsv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dsv */ "./node_modules/d3-dsv/src/dsv.js");
  3873. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsvFormat", function() { return _dsv__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3874. /* harmony import */ var _csv__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./csv */ "./node_modules/d3-dsv/src/csv.js");
  3875. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParse", function() { return _csv__WEBPACK_IMPORTED_MODULE_1__["csvParse"]; });
  3876. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParseRows", function() { return _csv__WEBPACK_IMPORTED_MODULE_1__["csvParseRows"]; });
  3877. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormat", function() { return _csv__WEBPACK_IMPORTED_MODULE_1__["csvFormat"]; });
  3878. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatRows", function() { return _csv__WEBPACK_IMPORTED_MODULE_1__["csvFormatRows"]; });
  3879. /* harmony import */ var _tsv__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tsv */ "./node_modules/d3-dsv/src/tsv.js");
  3880. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParse", function() { return _tsv__WEBPACK_IMPORTED_MODULE_2__["tsvParse"]; });
  3881. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParseRows", function() { return _tsv__WEBPACK_IMPORTED_MODULE_2__["tsvParseRows"]; });
  3882. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormat", function() { return _tsv__WEBPACK_IMPORTED_MODULE_2__["tsvFormat"]; });
  3883. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRows", function() { return _tsv__WEBPACK_IMPORTED_MODULE_2__["tsvFormatRows"]; });
  3884. /***/ }),
  3885. /***/ "./node_modules/d3-dsv/src/tsv.js":
  3886. /*!****************************************!*\
  3887. !*** ./node_modules/d3-dsv/src/tsv.js ***!
  3888. \****************************************/
  3889. /*! exports provided: tsvParse, tsvParseRows, tsvFormat, tsvFormatRows */
  3890. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3891. "use strict";
  3892. __webpack_require__.r(__webpack_exports__);
  3893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvParse", function() { return tsvParse; });
  3894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvParseRows", function() { return tsvParseRows; });
  3895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvFormat", function() { return tsvFormat; });
  3896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRows", function() { return tsvFormatRows; });
  3897. /* harmony import */ var _dsv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dsv */ "./node_modules/d3-dsv/src/dsv.js");
  3898. var tsv = Object(_dsv__WEBPACK_IMPORTED_MODULE_0__["default"])("\t");
  3899. var tsvParse = tsv.parse;
  3900. var tsvParseRows = tsv.parseRows;
  3901. var tsvFormat = tsv.format;
  3902. var tsvFormatRows = tsv.formatRows;
  3903. /***/ }),
  3904. /***/ "./node_modules/d3-ease/src/back.js":
  3905. /*!******************************************!*\
  3906. !*** ./node_modules/d3-ease/src/back.js ***!
  3907. \******************************************/
  3908. /*! exports provided: backIn, backOut, backInOut */
  3909. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3910. "use strict";
  3911. __webpack_require__.r(__webpack_exports__);
  3912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backIn", function() { return backIn; });
  3913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backOut", function() { return backOut; });
  3914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backInOut", function() { return backInOut; });
  3915. var overshoot = 1.70158;
  3916. var backIn = (function custom(s) {
  3917. s = +s;
  3918. function backIn(t) {
  3919. return t * t * ((s + 1) * t - s);
  3920. }
  3921. backIn.overshoot = custom;
  3922. return backIn;
  3923. })(overshoot);
  3924. var backOut = (function custom(s) {
  3925. s = +s;
  3926. function backOut(t) {
  3927. return --t * t * ((s + 1) * t + s) + 1;
  3928. }
  3929. backOut.overshoot = custom;
  3930. return backOut;
  3931. })(overshoot);
  3932. var backInOut = (function custom(s) {
  3933. s = +s;
  3934. function backInOut(t) {
  3935. return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;
  3936. }
  3937. backInOut.overshoot = custom;
  3938. return backInOut;
  3939. })(overshoot);
  3940. /***/ }),
  3941. /***/ "./node_modules/d3-ease/src/bounce.js":
  3942. /*!********************************************!*\
  3943. !*** ./node_modules/d3-ease/src/bounce.js ***!
  3944. \********************************************/
  3945. /*! exports provided: bounceIn, bounceOut, bounceInOut */
  3946. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3947. "use strict";
  3948. __webpack_require__.r(__webpack_exports__);
  3949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceIn", function() { return bounceIn; });
  3950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceOut", function() { return bounceOut; });
  3951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceInOut", function() { return bounceInOut; });
  3952. var b1 = 4 / 11,
  3953. b2 = 6 / 11,
  3954. b3 = 8 / 11,
  3955. b4 = 3 / 4,
  3956. b5 = 9 / 11,
  3957. b6 = 10 / 11,
  3958. b7 = 15 / 16,
  3959. b8 = 21 / 22,
  3960. b9 = 63 / 64,
  3961. b0 = 1 / b1 / b1;
  3962. function bounceIn(t) {
  3963. return 1 - bounceOut(1 - t);
  3964. }
  3965. function bounceOut(t) {
  3966. return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;
  3967. }
  3968. function bounceInOut(t) {
  3969. return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
  3970. }
  3971. /***/ }),
  3972. /***/ "./node_modules/d3-ease/src/circle.js":
  3973. /*!********************************************!*\
  3974. !*** ./node_modules/d3-ease/src/circle.js ***!
  3975. \********************************************/
  3976. /*! exports provided: circleIn, circleOut, circleInOut */
  3977. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3978. "use strict";
  3979. __webpack_require__.r(__webpack_exports__);
  3980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleIn", function() { return circleIn; });
  3981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleOut", function() { return circleOut; });
  3982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleInOut", function() { return circleInOut; });
  3983. function circleIn(t) {
  3984. return 1 - Math.sqrt(1 - t * t);
  3985. }
  3986. function circleOut(t) {
  3987. return Math.sqrt(1 - --t * t);
  3988. }
  3989. function circleInOut(t) {
  3990. return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
  3991. }
  3992. /***/ }),
  3993. /***/ "./node_modules/d3-ease/src/cubic.js":
  3994. /*!*******************************************!*\
  3995. !*** ./node_modules/d3-ease/src/cubic.js ***!
  3996. \*******************************************/
  3997. /*! exports provided: cubicIn, cubicOut, cubicInOut */
  3998. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3999. "use strict";
  4000. __webpack_require__.r(__webpack_exports__);
  4001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicIn", function() { return cubicIn; });
  4002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicOut", function() { return cubicOut; });
  4003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicInOut", function() { return cubicInOut; });
  4004. function cubicIn(t) {
  4005. return t * t * t;
  4006. }
  4007. function cubicOut(t) {
  4008. return --t * t * t + 1;
  4009. }
  4010. function cubicInOut(t) {
  4011. return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
  4012. }
  4013. /***/ }),
  4014. /***/ "./node_modules/d3-ease/src/elastic.js":
  4015. /*!*********************************************!*\
  4016. !*** ./node_modules/d3-ease/src/elastic.js ***!
  4017. \*********************************************/
  4018. /*! exports provided: elasticIn, elasticOut, elasticInOut */
  4019. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4020. "use strict";
  4021. __webpack_require__.r(__webpack_exports__);
  4022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticIn", function() { return elasticIn; });
  4023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticOut", function() { return elasticOut; });
  4024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticInOut", function() { return elasticInOut; });
  4025. var tau = 2 * Math.PI,
  4026. amplitude = 1,
  4027. period = 0.3;
  4028. var elasticIn = (function custom(a, p) {
  4029. var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
  4030. function elasticIn(t) {
  4031. return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);
  4032. }
  4033. elasticIn.amplitude = function(a) { return custom(a, p * tau); };
  4034. elasticIn.period = function(p) { return custom(a, p); };
  4035. return elasticIn;
  4036. })(amplitude, period);
  4037. var elasticOut = (function custom(a, p) {
  4038. var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
  4039. function elasticOut(t) {
  4040. return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);
  4041. }
  4042. elasticOut.amplitude = function(a) { return custom(a, p * tau); };
  4043. elasticOut.period = function(p) { return custom(a, p); };
  4044. return elasticOut;
  4045. })(amplitude, period);
  4046. var elasticInOut = (function custom(a, p) {
  4047. var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
  4048. function elasticInOut(t) {
  4049. return ((t = t * 2 - 1) < 0
  4050. ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)
  4051. : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;
  4052. }
  4053. elasticInOut.amplitude = function(a) { return custom(a, p * tau); };
  4054. elasticInOut.period = function(p) { return custom(a, p); };
  4055. return elasticInOut;
  4056. })(amplitude, period);
  4057. /***/ }),
  4058. /***/ "./node_modules/d3-ease/src/exp.js":
  4059. /*!*****************************************!*\
  4060. !*** ./node_modules/d3-ease/src/exp.js ***!
  4061. \*****************************************/
  4062. /*! exports provided: expIn, expOut, expInOut */
  4063. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4064. "use strict";
  4065. __webpack_require__.r(__webpack_exports__);
  4066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expIn", function() { return expIn; });
  4067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expOut", function() { return expOut; });
  4068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expInOut", function() { return expInOut; });
  4069. function expIn(t) {
  4070. return Math.pow(2, 10 * t - 10);
  4071. }
  4072. function expOut(t) {
  4073. return 1 - Math.pow(2, -10 * t);
  4074. }
  4075. function expInOut(t) {
  4076. return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;
  4077. }
  4078. /***/ }),
  4079. /***/ "./node_modules/d3-ease/src/index.js":
  4080. /*!*******************************************!*\
  4081. !*** ./node_modules/d3-ease/src/index.js ***!
  4082. \*******************************************/
  4083. /*! exports provided: easeLinear, easeQuad, easeQuadIn, easeQuadOut, easeQuadInOut, easeCubic, easeCubicIn, easeCubicOut, easeCubicInOut, easePoly, easePolyIn, easePolyOut, easePolyInOut, easeSin, easeSinIn, easeSinOut, easeSinInOut, easeExp, easeExpIn, easeExpOut, easeExpInOut, easeCircle, easeCircleIn, easeCircleOut, easeCircleInOut, easeBounce, easeBounceIn, easeBounceOut, easeBounceInOut, easeBack, easeBackIn, easeBackOut, easeBackInOut, easeElastic, easeElasticIn, easeElasticOut, easeElasticInOut */
  4084. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4085. "use strict";
  4086. __webpack_require__.r(__webpack_exports__);
  4087. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-ease/src/linear.js");
  4088. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeLinear", function() { return _linear__WEBPACK_IMPORTED_MODULE_0__["linear"]; });
  4089. /* harmony import */ var _quad__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad */ "./node_modules/d3-ease/src/quad.js");
  4090. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuad", function() { return _quad__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; });
  4091. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadIn", function() { return _quad__WEBPACK_IMPORTED_MODULE_1__["quadIn"]; });
  4092. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadOut", function() { return _quad__WEBPACK_IMPORTED_MODULE_1__["quadOut"]; });
  4093. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadInOut", function() { return _quad__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; });
  4094. /* harmony import */ var _cubic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubic */ "./node_modules/d3-ease/src/cubic.js");
  4095. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubic", function() { return _cubic__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; });
  4096. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicIn", function() { return _cubic__WEBPACK_IMPORTED_MODULE_2__["cubicIn"]; });
  4097. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicOut", function() { return _cubic__WEBPACK_IMPORTED_MODULE_2__["cubicOut"]; });
  4098. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicInOut", function() { return _cubic__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; });
  4099. /* harmony import */ var _poly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./poly */ "./node_modules/d3-ease/src/poly.js");
  4100. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePoly", function() { return _poly__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; });
  4101. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyIn", function() { return _poly__WEBPACK_IMPORTED_MODULE_3__["polyIn"]; });
  4102. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyOut", function() { return _poly__WEBPACK_IMPORTED_MODULE_3__["polyOut"]; });
  4103. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyInOut", function() { return _poly__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; });
  4104. /* harmony import */ var _sin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sin */ "./node_modules/d3-ease/src/sin.js");
  4105. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSin", function() { return _sin__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; });
  4106. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinIn", function() { return _sin__WEBPACK_IMPORTED_MODULE_4__["sinIn"]; });
  4107. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinOut", function() { return _sin__WEBPACK_IMPORTED_MODULE_4__["sinOut"]; });
  4108. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinInOut", function() { return _sin__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; });
  4109. /* harmony import */ var _exp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exp */ "./node_modules/d3-ease/src/exp.js");
  4110. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExp", function() { return _exp__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; });
  4111. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpIn", function() { return _exp__WEBPACK_IMPORTED_MODULE_5__["expIn"]; });
  4112. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpOut", function() { return _exp__WEBPACK_IMPORTED_MODULE_5__["expOut"]; });
  4113. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpInOut", function() { return _exp__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; });
  4114. /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./circle */ "./node_modules/d3-ease/src/circle.js");
  4115. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircle", function() { return _circle__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; });
  4116. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleIn", function() { return _circle__WEBPACK_IMPORTED_MODULE_6__["circleIn"]; });
  4117. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleOut", function() { return _circle__WEBPACK_IMPORTED_MODULE_6__["circleOut"]; });
  4118. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleInOut", function() { return _circle__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; });
  4119. /* harmony import */ var _bounce__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bounce */ "./node_modules/d3-ease/src/bounce.js");
  4120. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounce", function() { return _bounce__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; });
  4121. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceIn", function() { return _bounce__WEBPACK_IMPORTED_MODULE_7__["bounceIn"]; });
  4122. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceOut", function() { return _bounce__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; });
  4123. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceInOut", function() { return _bounce__WEBPACK_IMPORTED_MODULE_7__["bounceInOut"]; });
  4124. /* harmony import */ var _back__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./back */ "./node_modules/d3-ease/src/back.js");
  4125. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBack", function() { return _back__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; });
  4126. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackIn", function() { return _back__WEBPACK_IMPORTED_MODULE_8__["backIn"]; });
  4127. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackOut", function() { return _back__WEBPACK_IMPORTED_MODULE_8__["backOut"]; });
  4128. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackInOut", function() { return _back__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; });
  4129. /* harmony import */ var _elastic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./elastic */ "./node_modules/d3-ease/src/elastic.js");
  4130. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElastic", function() { return _elastic__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; });
  4131. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticIn", function() { return _elastic__WEBPACK_IMPORTED_MODULE_9__["elasticIn"]; });
  4132. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticOut", function() { return _elastic__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; });
  4133. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticInOut", function() { return _elastic__WEBPACK_IMPORTED_MODULE_9__["elasticInOut"]; });
  4134. /***/ }),
  4135. /***/ "./node_modules/d3-ease/src/linear.js":
  4136. /*!********************************************!*\
  4137. !*** ./node_modules/d3-ease/src/linear.js ***!
  4138. \********************************************/
  4139. /*! exports provided: linear */
  4140. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4141. "use strict";
  4142. __webpack_require__.r(__webpack_exports__);
  4143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linear", function() { return linear; });
  4144. function linear(t) {
  4145. return +t;
  4146. }
  4147. /***/ }),
  4148. /***/ "./node_modules/d3-ease/src/poly.js":
  4149. /*!******************************************!*\
  4150. !*** ./node_modules/d3-ease/src/poly.js ***!
  4151. \******************************************/
  4152. /*! exports provided: polyIn, polyOut, polyInOut */
  4153. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4154. "use strict";
  4155. __webpack_require__.r(__webpack_exports__);
  4156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyIn", function() { return polyIn; });
  4157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyOut", function() { return polyOut; });
  4158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyInOut", function() { return polyInOut; });
  4159. var exponent = 3;
  4160. var polyIn = (function custom(e) {
  4161. e = +e;
  4162. function polyIn(t) {
  4163. return Math.pow(t, e);
  4164. }
  4165. polyIn.exponent = custom;
  4166. return polyIn;
  4167. })(exponent);
  4168. var polyOut = (function custom(e) {
  4169. e = +e;
  4170. function polyOut(t) {
  4171. return 1 - Math.pow(1 - t, e);
  4172. }
  4173. polyOut.exponent = custom;
  4174. return polyOut;
  4175. })(exponent);
  4176. var polyInOut = (function custom(e) {
  4177. e = +e;
  4178. function polyInOut(t) {
  4179. return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
  4180. }
  4181. polyInOut.exponent = custom;
  4182. return polyInOut;
  4183. })(exponent);
  4184. /***/ }),
  4185. /***/ "./node_modules/d3-ease/src/quad.js":
  4186. /*!******************************************!*\
  4187. !*** ./node_modules/d3-ease/src/quad.js ***!
  4188. \******************************************/
  4189. /*! exports provided: quadIn, quadOut, quadInOut */
  4190. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4191. "use strict";
  4192. __webpack_require__.r(__webpack_exports__);
  4193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadIn", function() { return quadIn; });
  4194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadOut", function() { return quadOut; });
  4195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadInOut", function() { return quadInOut; });
  4196. function quadIn(t) {
  4197. return t * t;
  4198. }
  4199. function quadOut(t) {
  4200. return t * (2 - t);
  4201. }
  4202. function quadInOut(t) {
  4203. return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
  4204. }
  4205. /***/ }),
  4206. /***/ "./node_modules/d3-ease/src/sin.js":
  4207. /*!*****************************************!*\
  4208. !*** ./node_modules/d3-ease/src/sin.js ***!
  4209. \*****************************************/
  4210. /*! exports provided: sinIn, sinOut, sinInOut */
  4211. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4212. "use strict";
  4213. __webpack_require__.r(__webpack_exports__);
  4214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinIn", function() { return sinIn; });
  4215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinOut", function() { return sinOut; });
  4216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinInOut", function() { return sinInOut; });
  4217. var pi = Math.PI,
  4218. halfPi = pi / 2;
  4219. function sinIn(t) {
  4220. return 1 - Math.cos(t * halfPi);
  4221. }
  4222. function sinOut(t) {
  4223. return Math.sin(t * halfPi);
  4224. }
  4225. function sinInOut(t) {
  4226. return (1 - Math.cos(pi * t)) / 2;
  4227. }
  4228. /***/ }),
  4229. /***/ "./node_modules/d3-fetch/src/blob.js":
  4230. /*!*******************************************!*\
  4231. !*** ./node_modules/d3-fetch/src/blob.js ***!
  4232. \*******************************************/
  4233. /*! exports provided: default */
  4234. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4235. "use strict";
  4236. __webpack_require__.r(__webpack_exports__);
  4237. function responseBlob(response) {
  4238. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4239. return response.blob();
  4240. }
  4241. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4242. return fetch(input, init).then(responseBlob);
  4243. });
  4244. /***/ }),
  4245. /***/ "./node_modules/d3-fetch/src/buffer.js":
  4246. /*!*********************************************!*\
  4247. !*** ./node_modules/d3-fetch/src/buffer.js ***!
  4248. \*********************************************/
  4249. /*! exports provided: default */
  4250. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4251. "use strict";
  4252. __webpack_require__.r(__webpack_exports__);
  4253. function responseArrayBuffer(response) {
  4254. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4255. return response.arrayBuffer();
  4256. }
  4257. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4258. return fetch(input, init).then(responseArrayBuffer);
  4259. });
  4260. /***/ }),
  4261. /***/ "./node_modules/d3-fetch/src/dsv.js":
  4262. /*!******************************************!*\
  4263. !*** ./node_modules/d3-fetch/src/dsv.js ***!
  4264. \******************************************/
  4265. /*! exports provided: default, csv, tsv */
  4266. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4267. "use strict";
  4268. __webpack_require__.r(__webpack_exports__);
  4269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return dsv; });
  4270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csv", function() { return csv; });
  4271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsv", function() { return tsv; });
  4272. /* harmony import */ var d3_dsv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dsv */ "./node_modules/d3-dsv/src/index.js");
  4273. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./text */ "./node_modules/d3-fetch/src/text.js");
  4274. function dsvParse(parse) {
  4275. return function(input, init, row) {
  4276. if (arguments.length === 2 && typeof init === "function") row = init, init = undefined;
  4277. return Object(_text__WEBPACK_IMPORTED_MODULE_1__["default"])(input, init).then(function(response) {
  4278. return parse(response, row);
  4279. });
  4280. };
  4281. }
  4282. function dsv(delimiter, input, init, row) {
  4283. if (arguments.length === 3 && typeof init === "function") row = init, init = undefined;
  4284. var format = Object(d3_dsv__WEBPACK_IMPORTED_MODULE_0__["dsvFormat"])(delimiter);
  4285. return Object(_text__WEBPACK_IMPORTED_MODULE_1__["default"])(input, init).then(function(response) {
  4286. return format.parse(response, row);
  4287. });
  4288. }
  4289. var csv = dsvParse(d3_dsv__WEBPACK_IMPORTED_MODULE_0__["csvParse"]);
  4290. var tsv = dsvParse(d3_dsv__WEBPACK_IMPORTED_MODULE_0__["tsvParse"]);
  4291. /***/ }),
  4292. /***/ "./node_modules/d3-fetch/src/image.js":
  4293. /*!********************************************!*\
  4294. !*** ./node_modules/d3-fetch/src/image.js ***!
  4295. \********************************************/
  4296. /*! exports provided: default */
  4297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4298. "use strict";
  4299. __webpack_require__.r(__webpack_exports__);
  4300. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4301. return new Promise(function(resolve, reject) {
  4302. var image = new Image;
  4303. for (var key in init) image[key] = init[key];
  4304. image.onerror = reject;
  4305. image.onload = function() { resolve(image); };
  4306. image.src = input;
  4307. });
  4308. });
  4309. /***/ }),
  4310. /***/ "./node_modules/d3-fetch/src/index.js":
  4311. /*!********************************************!*\
  4312. !*** ./node_modules/d3-fetch/src/index.js ***!
  4313. \********************************************/
  4314. /*! exports provided: blob, buffer, dsv, csv, tsv, image, json, text, xml, html, svg */
  4315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4316. "use strict";
  4317. __webpack_require__.r(__webpack_exports__);
  4318. /* harmony import */ var _blob__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blob */ "./node_modules/d3-fetch/src/blob.js");
  4319. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "blob", function() { return _blob__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  4320. /* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./buffer */ "./node_modules/d3-fetch/src/buffer.js");
  4321. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return _buffer__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  4322. /* harmony import */ var _dsv__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dsv */ "./node_modules/d3-fetch/src/dsv.js");
  4323. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsv", function() { return _dsv__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  4324. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csv", function() { return _dsv__WEBPACK_IMPORTED_MODULE_2__["csv"]; });
  4325. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsv", function() { return _dsv__WEBPACK_IMPORTED_MODULE_2__["tsv"]; });
  4326. /* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./image */ "./node_modules/d3-fetch/src/image.js");
  4327. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "image", function() { return _image__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  4328. /* harmony import */ var _json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./json */ "./node_modules/d3-fetch/src/json.js");
  4329. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "json", function() { return _json__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  4330. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./text */ "./node_modules/d3-fetch/src/text.js");
  4331. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "text", function() { return _text__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  4332. /* harmony import */ var _xml__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./xml */ "./node_modules/d3-fetch/src/xml.js");
  4333. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "xml", function() { return _xml__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  4334. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "html", function() { return _xml__WEBPACK_IMPORTED_MODULE_6__["html"]; });
  4335. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svg", function() { return _xml__WEBPACK_IMPORTED_MODULE_6__["svg"]; });
  4336. /***/ }),
  4337. /***/ "./node_modules/d3-fetch/src/json.js":
  4338. /*!*******************************************!*\
  4339. !*** ./node_modules/d3-fetch/src/json.js ***!
  4340. \*******************************************/
  4341. /*! exports provided: default */
  4342. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4343. "use strict";
  4344. __webpack_require__.r(__webpack_exports__);
  4345. function responseJson(response) {
  4346. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4347. return response.json();
  4348. }
  4349. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4350. return fetch(input, init).then(responseJson);
  4351. });
  4352. /***/ }),
  4353. /***/ "./node_modules/d3-fetch/src/text.js":
  4354. /*!*******************************************!*\
  4355. !*** ./node_modules/d3-fetch/src/text.js ***!
  4356. \*******************************************/
  4357. /*! exports provided: default */
  4358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4359. "use strict";
  4360. __webpack_require__.r(__webpack_exports__);
  4361. function responseText(response) {
  4362. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4363. return response.text();
  4364. }
  4365. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4366. return fetch(input, init).then(responseText);
  4367. });
  4368. /***/ }),
  4369. /***/ "./node_modules/d3-fetch/src/xml.js":
  4370. /*!******************************************!*\
  4371. !*** ./node_modules/d3-fetch/src/xml.js ***!
  4372. \******************************************/
  4373. /*! exports provided: default, html, svg */
  4374. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4375. "use strict";
  4376. __webpack_require__.r(__webpack_exports__);
  4377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "html", function() { return html; });
  4378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svg", function() { return svg; });
  4379. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./text */ "./node_modules/d3-fetch/src/text.js");
  4380. function parser(type) {
  4381. return function(input, init) {
  4382. return Object(_text__WEBPACK_IMPORTED_MODULE_0__["default"])(input, init).then(function(text) {
  4383. return (new DOMParser).parseFromString(text, type);
  4384. });
  4385. };
  4386. }
  4387. /* harmony default export */ __webpack_exports__["default"] = (parser("application/xml"));
  4388. var html = parser("text/html");
  4389. var svg = parser("image/svg+xml");
  4390. /***/ }),
  4391. /***/ "./node_modules/d3-force/src/center.js":
  4392. /*!*********************************************!*\
  4393. !*** ./node_modules/d3-force/src/center.js ***!
  4394. \*********************************************/
  4395. /*! exports provided: default */
  4396. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4397. "use strict";
  4398. __webpack_require__.r(__webpack_exports__);
  4399. /* harmony default export */ __webpack_exports__["default"] = (function(x, y) {
  4400. var nodes;
  4401. if (x == null) x = 0;
  4402. if (y == null) y = 0;
  4403. function force() {
  4404. var i,
  4405. n = nodes.length,
  4406. node,
  4407. sx = 0,
  4408. sy = 0;
  4409. for (i = 0; i < n; ++i) {
  4410. node = nodes[i], sx += node.x, sy += node.y;
  4411. }
  4412. for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {
  4413. node = nodes[i], node.x -= sx, node.y -= sy;
  4414. }
  4415. }
  4416. force.initialize = function(_) {
  4417. nodes = _;
  4418. };
  4419. force.x = function(_) {
  4420. return arguments.length ? (x = +_, force) : x;
  4421. };
  4422. force.y = function(_) {
  4423. return arguments.length ? (y = +_, force) : y;
  4424. };
  4425. return force;
  4426. });
  4427. /***/ }),
  4428. /***/ "./node_modules/d3-force/src/collide.js":
  4429. /*!**********************************************!*\
  4430. !*** ./node_modules/d3-force/src/collide.js ***!
  4431. \**********************************************/
  4432. /*! exports provided: default */
  4433. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4434. "use strict";
  4435. __webpack_require__.r(__webpack_exports__);
  4436. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4437. /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js");
  4438. /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/src/index.js");
  4439. function x(d) {
  4440. return d.x + d.vx;
  4441. }
  4442. function y(d) {
  4443. return d.y + d.vy;
  4444. }
  4445. /* harmony default export */ __webpack_exports__["default"] = (function(radius) {
  4446. var nodes,
  4447. radii,
  4448. strength = 1,
  4449. iterations = 1;
  4450. if (typeof radius !== "function") radius = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(radius == null ? 1 : +radius);
  4451. function force() {
  4452. var i, n = nodes.length,
  4453. tree,
  4454. node,
  4455. xi,
  4456. yi,
  4457. ri,
  4458. ri2;
  4459. for (var k = 0; k < iterations; ++k) {
  4460. tree = Object(d3_quadtree__WEBPACK_IMPORTED_MODULE_2__["quadtree"])(nodes, x, y).visitAfter(prepare);
  4461. for (i = 0; i < n; ++i) {
  4462. node = nodes[i];
  4463. ri = radii[node.index], ri2 = ri * ri;
  4464. xi = node.x + node.vx;
  4465. yi = node.y + node.vy;
  4466. tree.visit(apply);
  4467. }
  4468. }
  4469. function apply(quad, x0, y0, x1, y1) {
  4470. var data = quad.data, rj = quad.r, r = ri + rj;
  4471. if (data) {
  4472. if (data.index > node.index) {
  4473. var x = xi - data.x - data.vx,
  4474. y = yi - data.y - data.vy,
  4475. l = x * x + y * y;
  4476. if (l < r * r) {
  4477. if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x;
  4478. if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y;
  4479. l = (r - (l = Math.sqrt(l))) / l * strength;
  4480. node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));
  4481. node.vy += (y *= l) * r;
  4482. data.vx -= x * (r = 1 - r);
  4483. data.vy -= y * r;
  4484. }
  4485. }
  4486. return;
  4487. }
  4488. return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;
  4489. }
  4490. }
  4491. function prepare(quad) {
  4492. if (quad.data) return quad.r = radii[quad.data.index];
  4493. for (var i = quad.r = 0; i < 4; ++i) {
  4494. if (quad[i] && quad[i].r > quad.r) {
  4495. quad.r = quad[i].r;
  4496. }
  4497. }
  4498. }
  4499. function initialize() {
  4500. if (!nodes) return;
  4501. var i, n = nodes.length, node;
  4502. radii = new Array(n);
  4503. for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);
  4504. }
  4505. force.initialize = function(_) {
  4506. nodes = _;
  4507. initialize();
  4508. };
  4509. force.iterations = function(_) {
  4510. return arguments.length ? (iterations = +_, force) : iterations;
  4511. };
  4512. force.strength = function(_) {
  4513. return arguments.length ? (strength = +_, force) : strength;
  4514. };
  4515. force.radius = function(_) {
  4516. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : radius;
  4517. };
  4518. return force;
  4519. });
  4520. /***/ }),
  4521. /***/ "./node_modules/d3-force/src/constant.js":
  4522. /*!***********************************************!*\
  4523. !*** ./node_modules/d3-force/src/constant.js ***!
  4524. \***********************************************/
  4525. /*! exports provided: default */
  4526. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4527. "use strict";
  4528. __webpack_require__.r(__webpack_exports__);
  4529. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  4530. return function() {
  4531. return x;
  4532. };
  4533. });
  4534. /***/ }),
  4535. /***/ "./node_modules/d3-force/src/index.js":
  4536. /*!********************************************!*\
  4537. !*** ./node_modules/d3-force/src/index.js ***!
  4538. \********************************************/
  4539. /*! exports provided: forceCenter, forceCollide, forceLink, forceManyBody, forceRadial, forceSimulation, forceX, forceY */
  4540. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4541. "use strict";
  4542. __webpack_require__.r(__webpack_exports__);
  4543. /* harmony import */ var _center__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./center */ "./node_modules/d3-force/src/center.js");
  4544. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCenter", function() { return _center__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  4545. /* harmony import */ var _collide__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collide */ "./node_modules/d3-force/src/collide.js");
  4546. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCollide", function() { return _collide__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  4547. /* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./link */ "./node_modules/d3-force/src/link.js");
  4548. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceLink", function() { return _link__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  4549. /* harmony import */ var _manyBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./manyBody */ "./node_modules/d3-force/src/manyBody.js");
  4550. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceManyBody", function() { return _manyBody__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  4551. /* harmony import */ var _radial__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./radial */ "./node_modules/d3-force/src/radial.js");
  4552. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceRadial", function() { return _radial__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  4553. /* harmony import */ var _simulation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./simulation */ "./node_modules/d3-force/src/simulation.js");
  4554. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceSimulation", function() { return _simulation__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  4555. /* harmony import */ var _x__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./x */ "./node_modules/d3-force/src/x.js");
  4556. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceX", function() { return _x__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  4557. /* harmony import */ var _y__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./y */ "./node_modules/d3-force/src/y.js");
  4558. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceY", function() { return _y__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  4559. /***/ }),
  4560. /***/ "./node_modules/d3-force/src/jiggle.js":
  4561. /*!*********************************************!*\
  4562. !*** ./node_modules/d3-force/src/jiggle.js ***!
  4563. \*********************************************/
  4564. /*! exports provided: default */
  4565. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4566. "use strict";
  4567. __webpack_require__.r(__webpack_exports__);
  4568. /* harmony default export */ __webpack_exports__["default"] = (function() {
  4569. return (Math.random() - 0.5) * 1e-6;
  4570. });
  4571. /***/ }),
  4572. /***/ "./node_modules/d3-force/src/link.js":
  4573. /*!*******************************************!*\
  4574. !*** ./node_modules/d3-force/src/link.js ***!
  4575. \*******************************************/
  4576. /*! exports provided: default */
  4577. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4578. "use strict";
  4579. __webpack_require__.r(__webpack_exports__);
  4580. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4581. /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js");
  4582. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  4583. function index(d) {
  4584. return d.index;
  4585. }
  4586. function find(nodeById, nodeId) {
  4587. var node = nodeById.get(nodeId);
  4588. if (!node) throw new Error("missing: " + nodeId);
  4589. return node;
  4590. }
  4591. /* harmony default export */ __webpack_exports__["default"] = (function(links) {
  4592. var id = index,
  4593. strength = defaultStrength,
  4594. strengths,
  4595. distance = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(30),
  4596. distances,
  4597. nodes,
  4598. count,
  4599. bias,
  4600. iterations = 1;
  4601. if (links == null) links = [];
  4602. function defaultStrength(link) {
  4603. return 1 / Math.min(count[link.source.index], count[link.target.index]);
  4604. }
  4605. function force(alpha) {
  4606. for (var k = 0, n = links.length; k < iterations; ++k) {
  4607. for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {
  4608. link = links[i], source = link.source, target = link.target;
  4609. x = target.x + target.vx - source.x - source.vx || Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])();
  4610. y = target.y + target.vy - source.y - source.vy || Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])();
  4611. l = Math.sqrt(x * x + y * y);
  4612. l = (l - distances[i]) / l * alpha * strengths[i];
  4613. x *= l, y *= l;
  4614. target.vx -= x * (b = bias[i]);
  4615. target.vy -= y * b;
  4616. source.vx += x * (b = 1 - b);
  4617. source.vy += y * b;
  4618. }
  4619. }
  4620. }
  4621. function initialize() {
  4622. if (!nodes) return;
  4623. var i,
  4624. n = nodes.length,
  4625. m = links.length,
  4626. nodeById = Object(d3_collection__WEBPACK_IMPORTED_MODULE_2__["map"])(nodes, id),
  4627. link;
  4628. for (i = 0, count = new Array(n); i < m; ++i) {
  4629. link = links[i], link.index = i;
  4630. if (typeof link.source !== "object") link.source = find(nodeById, link.source);
  4631. if (typeof link.target !== "object") link.target = find(nodeById, link.target);
  4632. count[link.source.index] = (count[link.source.index] || 0) + 1;
  4633. count[link.target.index] = (count[link.target.index] || 0) + 1;
  4634. }
  4635. for (i = 0, bias = new Array(m); i < m; ++i) {
  4636. link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);
  4637. }
  4638. strengths = new Array(m), initializeStrength();
  4639. distances = new Array(m), initializeDistance();
  4640. }
  4641. function initializeStrength() {
  4642. if (!nodes) return;
  4643. for (var i = 0, n = links.length; i < n; ++i) {
  4644. strengths[i] = +strength(links[i], i, links);
  4645. }
  4646. }
  4647. function initializeDistance() {
  4648. if (!nodes) return;
  4649. for (var i = 0, n = links.length; i < n; ++i) {
  4650. distances[i] = +distance(links[i], i, links);
  4651. }
  4652. }
  4653. force.initialize = function(_) {
  4654. nodes = _;
  4655. initialize();
  4656. };
  4657. force.links = function(_) {
  4658. return arguments.length ? (links = _, initialize(), force) : links;
  4659. };
  4660. force.id = function(_) {
  4661. return arguments.length ? (id = _, force) : id;
  4662. };
  4663. force.iterations = function(_) {
  4664. return arguments.length ? (iterations = +_, force) : iterations;
  4665. };
  4666. force.strength = function(_) {
  4667. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initializeStrength(), force) : strength;
  4668. };
  4669. force.distance = function(_) {
  4670. return arguments.length ? (distance = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initializeDistance(), force) : distance;
  4671. };
  4672. return force;
  4673. });
  4674. /***/ }),
  4675. /***/ "./node_modules/d3-force/src/manyBody.js":
  4676. /*!***********************************************!*\
  4677. !*** ./node_modules/d3-force/src/manyBody.js ***!
  4678. \***********************************************/
  4679. /*! exports provided: default */
  4680. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4681. "use strict";
  4682. __webpack_require__.r(__webpack_exports__);
  4683. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4684. /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js");
  4685. /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/src/index.js");
  4686. /* harmony import */ var _simulation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./simulation */ "./node_modules/d3-force/src/simulation.js");
  4687. /* harmony default export */ __webpack_exports__["default"] = (function() {
  4688. var nodes,
  4689. node,
  4690. alpha,
  4691. strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(-30),
  4692. strengths,
  4693. distanceMin2 = 1,
  4694. distanceMax2 = Infinity,
  4695. theta2 = 0.81;
  4696. function force(_) {
  4697. var i, n = nodes.length, tree = Object(d3_quadtree__WEBPACK_IMPORTED_MODULE_2__["quadtree"])(nodes, _simulation__WEBPACK_IMPORTED_MODULE_3__["x"], _simulation__WEBPACK_IMPORTED_MODULE_3__["y"]).visitAfter(accumulate);
  4698. for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);
  4699. }
  4700. function initialize() {
  4701. if (!nodes) return;
  4702. var i, n = nodes.length, node;
  4703. strengths = new Array(n);
  4704. for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);
  4705. }
  4706. function accumulate(quad) {
  4707. var strength = 0, q, c, weight = 0, x, y, i;
  4708. // For internal nodes, accumulate forces from child quadrants.
  4709. if (quad.length) {
  4710. for (x = y = i = 0; i < 4; ++i) {
  4711. if ((q = quad[i]) && (c = Math.abs(q.value))) {
  4712. strength += q.value, weight += c, x += c * q.x, y += c * q.y;
  4713. }
  4714. }
  4715. quad.x = x / weight;
  4716. quad.y = y / weight;
  4717. }
  4718. // For leaf nodes, accumulate forces from coincident quadrants.
  4719. else {
  4720. q = quad;
  4721. q.x = q.data.x;
  4722. q.y = q.data.y;
  4723. do strength += strengths[q.data.index];
  4724. while (q = q.next);
  4725. }
  4726. quad.value = strength;
  4727. }
  4728. function apply(quad, x1, _, x2) {
  4729. if (!quad.value) return true;
  4730. var x = quad.x - node.x,
  4731. y = quad.y - node.y,
  4732. w = x2 - x1,
  4733. l = x * x + y * y;
  4734. // Apply the Barnes-Hut approximation if possible.
  4735. // Limit forces for very close nodes; randomize direction if coincident.
  4736. if (w * w / theta2 < l) {
  4737. if (l < distanceMax2) {
  4738. if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x;
  4739. if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y;
  4740. if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);
  4741. node.vx += x * quad.value * alpha / l;
  4742. node.vy += y * quad.value * alpha / l;
  4743. }
  4744. return true;
  4745. }
  4746. // Otherwise, process points directly.
  4747. else if (quad.length || l >= distanceMax2) return;
  4748. // Limit forces for very close nodes; randomize direction if coincident.
  4749. if (quad.data !== node || quad.next) {
  4750. if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x;
  4751. if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y;
  4752. if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);
  4753. }
  4754. do if (quad.data !== node) {
  4755. w = strengths[quad.data.index] * alpha / l;
  4756. node.vx += x * w;
  4757. node.vy += y * w;
  4758. } while (quad = quad.next);
  4759. }
  4760. force.initialize = function(_) {
  4761. nodes = _;
  4762. initialize();
  4763. };
  4764. force.strength = function(_) {
  4765. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  4766. };
  4767. force.distanceMin = function(_) {
  4768. return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);
  4769. };
  4770. force.distanceMax = function(_) {
  4771. return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);
  4772. };
  4773. force.theta = function(_) {
  4774. return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);
  4775. };
  4776. return force;
  4777. });
  4778. /***/ }),
  4779. /***/ "./node_modules/d3-force/src/radial.js":
  4780. /*!*********************************************!*\
  4781. !*** ./node_modules/d3-force/src/radial.js ***!
  4782. \*********************************************/
  4783. /*! exports provided: default */
  4784. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4785. "use strict";
  4786. __webpack_require__.r(__webpack_exports__);
  4787. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4788. /* harmony default export */ __webpack_exports__["default"] = (function(radius, x, y) {
  4789. var nodes,
  4790. strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1),
  4791. strengths,
  4792. radiuses;
  4793. if (typeof radius !== "function") radius = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+radius);
  4794. if (x == null) x = 0;
  4795. if (y == null) y = 0;
  4796. function force(alpha) {
  4797. for (var i = 0, n = nodes.length; i < n; ++i) {
  4798. var node = nodes[i],
  4799. dx = node.x - x || 1e-6,
  4800. dy = node.y - y || 1e-6,
  4801. r = Math.sqrt(dx * dx + dy * dy),
  4802. k = (radiuses[i] - r) * strengths[i] * alpha / r;
  4803. node.vx += dx * k;
  4804. node.vy += dy * k;
  4805. }
  4806. }
  4807. function initialize() {
  4808. if (!nodes) return;
  4809. var i, n = nodes.length;
  4810. strengths = new Array(n);
  4811. radiuses = new Array(n);
  4812. for (i = 0; i < n; ++i) {
  4813. radiuses[i] = +radius(nodes[i], i, nodes);
  4814. strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);
  4815. }
  4816. }
  4817. force.initialize = function(_) {
  4818. nodes = _, initialize();
  4819. };
  4820. force.strength = function(_) {
  4821. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  4822. };
  4823. force.radius = function(_) {
  4824. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : radius;
  4825. };
  4826. force.x = function(_) {
  4827. return arguments.length ? (x = +_, force) : x;
  4828. };
  4829. force.y = function(_) {
  4830. return arguments.length ? (y = +_, force) : y;
  4831. };
  4832. return force;
  4833. });
  4834. /***/ }),
  4835. /***/ "./node_modules/d3-force/src/simulation.js":
  4836. /*!*************************************************!*\
  4837. !*** ./node_modules/d3-force/src/simulation.js ***!
  4838. \*************************************************/
  4839. /*! exports provided: x, y, default */
  4840. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4841. "use strict";
  4842. __webpack_require__.r(__webpack_exports__);
  4843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; });
  4844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; });
  4845. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  4846. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  4847. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  4848. function x(d) {
  4849. return d.x;
  4850. }
  4851. function y(d) {
  4852. return d.y;
  4853. }
  4854. var initialRadius = 10,
  4855. initialAngle = Math.PI * (3 - Math.sqrt(5));
  4856. /* harmony default export */ __webpack_exports__["default"] = (function(nodes) {
  4857. var simulation,
  4858. alpha = 1,
  4859. alphaMin = 0.001,
  4860. alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),
  4861. alphaTarget = 0,
  4862. velocityDecay = 0.6,
  4863. forces = Object(d3_collection__WEBPACK_IMPORTED_MODULE_1__["map"])(),
  4864. stepper = Object(d3_timer__WEBPACK_IMPORTED_MODULE_2__["timer"])(step),
  4865. event = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("tick", "end");
  4866. if (nodes == null) nodes = [];
  4867. function step() {
  4868. tick();
  4869. event.call("tick", simulation);
  4870. if (alpha < alphaMin) {
  4871. stepper.stop();
  4872. event.call("end", simulation);
  4873. }
  4874. }
  4875. function tick() {
  4876. var i, n = nodes.length, node;
  4877. alpha += (alphaTarget - alpha) * alphaDecay;
  4878. forces.each(function(force) {
  4879. force(alpha);
  4880. });
  4881. for (i = 0; i < n; ++i) {
  4882. node = nodes[i];
  4883. if (node.fx == null) node.x += node.vx *= velocityDecay;
  4884. else node.x = node.fx, node.vx = 0;
  4885. if (node.fy == null) node.y += node.vy *= velocityDecay;
  4886. else node.y = node.fy, node.vy = 0;
  4887. }
  4888. }
  4889. function initializeNodes() {
  4890. for (var i = 0, n = nodes.length, node; i < n; ++i) {
  4891. node = nodes[i], node.index = i;
  4892. if (isNaN(node.x) || isNaN(node.y)) {
  4893. var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;
  4894. node.x = radius * Math.cos(angle);
  4895. node.y = radius * Math.sin(angle);
  4896. }
  4897. if (isNaN(node.vx) || isNaN(node.vy)) {
  4898. node.vx = node.vy = 0;
  4899. }
  4900. }
  4901. }
  4902. function initializeForce(force) {
  4903. if (force.initialize) force.initialize(nodes);
  4904. return force;
  4905. }
  4906. initializeNodes();
  4907. return simulation = {
  4908. tick: tick,
  4909. restart: function() {
  4910. return stepper.restart(step), simulation;
  4911. },
  4912. stop: function() {
  4913. return stepper.stop(), simulation;
  4914. },
  4915. nodes: function(_) {
  4916. return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;
  4917. },
  4918. alpha: function(_) {
  4919. return arguments.length ? (alpha = +_, simulation) : alpha;
  4920. },
  4921. alphaMin: function(_) {
  4922. return arguments.length ? (alphaMin = +_, simulation) : alphaMin;
  4923. },
  4924. alphaDecay: function(_) {
  4925. return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;
  4926. },
  4927. alphaTarget: function(_) {
  4928. return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;
  4929. },
  4930. velocityDecay: function(_) {
  4931. return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;
  4932. },
  4933. force: function(name, _) {
  4934. return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);
  4935. },
  4936. find: function(x, y, radius) {
  4937. var i = 0,
  4938. n = nodes.length,
  4939. dx,
  4940. dy,
  4941. d2,
  4942. node,
  4943. closest;
  4944. if (radius == null) radius = Infinity;
  4945. else radius *= radius;
  4946. for (i = 0; i < n; ++i) {
  4947. node = nodes[i];
  4948. dx = x - node.x;
  4949. dy = y - node.y;
  4950. d2 = dx * dx + dy * dy;
  4951. if (d2 < radius) closest = node, radius = d2;
  4952. }
  4953. return closest;
  4954. },
  4955. on: function(name, _) {
  4956. return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);
  4957. }
  4958. };
  4959. });
  4960. /***/ }),
  4961. /***/ "./node_modules/d3-force/src/x.js":
  4962. /*!****************************************!*\
  4963. !*** ./node_modules/d3-force/src/x.js ***!
  4964. \****************************************/
  4965. /*! exports provided: default */
  4966. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4967. "use strict";
  4968. __webpack_require__.r(__webpack_exports__);
  4969. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4970. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  4971. var strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1),
  4972. nodes,
  4973. strengths,
  4974. xz;
  4975. if (typeof x !== "function") x = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(x == null ? 0 : +x);
  4976. function force(alpha) {
  4977. for (var i = 0, n = nodes.length, node; i < n; ++i) {
  4978. node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;
  4979. }
  4980. }
  4981. function initialize() {
  4982. if (!nodes) return;
  4983. var i, n = nodes.length;
  4984. strengths = new Array(n);
  4985. xz = new Array(n);
  4986. for (i = 0; i < n; ++i) {
  4987. strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
  4988. }
  4989. }
  4990. force.initialize = function(_) {
  4991. nodes = _;
  4992. initialize();
  4993. };
  4994. force.strength = function(_) {
  4995. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  4996. };
  4997. force.x = function(_) {
  4998. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : x;
  4999. };
  5000. return force;
  5001. });
  5002. /***/ }),
  5003. /***/ "./node_modules/d3-force/src/y.js":
  5004. /*!****************************************!*\
  5005. !*** ./node_modules/d3-force/src/y.js ***!
  5006. \****************************************/
  5007. /*! exports provided: default */
  5008. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5009. "use strict";
  5010. __webpack_require__.r(__webpack_exports__);
  5011. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  5012. /* harmony default export */ __webpack_exports__["default"] = (function(y) {
  5013. var strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1),
  5014. nodes,
  5015. strengths,
  5016. yz;
  5017. if (typeof y !== "function") y = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(y == null ? 0 : +y);
  5018. function force(alpha) {
  5019. for (var i = 0, n = nodes.length, node; i < n; ++i) {
  5020. node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;
  5021. }
  5022. }
  5023. function initialize() {
  5024. if (!nodes) return;
  5025. var i, n = nodes.length;
  5026. strengths = new Array(n);
  5027. yz = new Array(n);
  5028. for (i = 0; i < n; ++i) {
  5029. strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
  5030. }
  5031. }
  5032. force.initialize = function(_) {
  5033. nodes = _;
  5034. initialize();
  5035. };
  5036. force.strength = function(_) {
  5037. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  5038. };
  5039. force.y = function(_) {
  5040. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : y;
  5041. };
  5042. return force;
  5043. });
  5044. /***/ }),
  5045. /***/ "./node_modules/d3-format/src/defaultLocale.js":
  5046. /*!*****************************************************!*\
  5047. !*** ./node_modules/d3-format/src/defaultLocale.js ***!
  5048. \*****************************************************/
  5049. /*! exports provided: format, formatPrefix, default */
  5050. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5051. "use strict";
  5052. __webpack_require__.r(__webpack_exports__);
  5053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; });
  5054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return formatPrefix; });
  5055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; });
  5056. /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-format/src/locale.js");
  5057. var locale;
  5058. var format;
  5059. var formatPrefix;
  5060. defaultLocale({
  5061. decimal: ".",
  5062. thousands: ",",
  5063. grouping: [3],
  5064. currency: ["$", ""]
  5065. });
  5066. function defaultLocale(definition) {
  5067. locale = Object(_locale__WEBPACK_IMPORTED_MODULE_0__["default"])(definition);
  5068. format = locale.format;
  5069. formatPrefix = locale.formatPrefix;
  5070. return locale;
  5071. }
  5072. /***/ }),
  5073. /***/ "./node_modules/d3-format/src/exponent.js":
  5074. /*!************************************************!*\
  5075. !*** ./node_modules/d3-format/src/exponent.js ***!
  5076. \************************************************/
  5077. /*! exports provided: default */
  5078. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5079. "use strict";
  5080. __webpack_require__.r(__webpack_exports__);
  5081. /* harmony import */ var _formatDecimal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal */ "./node_modules/d3-format/src/formatDecimal.js");
  5082. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  5083. return x = Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(x)), x ? x[1] : NaN;
  5084. });
  5085. /***/ }),
  5086. /***/ "./node_modules/d3-format/src/formatDecimal.js":
  5087. /*!*****************************************************!*\
  5088. !*** ./node_modules/d3-format/src/formatDecimal.js ***!
  5089. \*****************************************************/
  5090. /*! exports provided: default */
  5091. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5092. "use strict";
  5093. __webpack_require__.r(__webpack_exports__);
  5094. // Computes the decimal coefficient and exponent of the specified number x with
  5095. // significant digits p, where x is positive and p is in [1, 21] or undefined.
  5096. // For example, formatDecimal(1.23) returns ["123", 0].
  5097. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) {
  5098. if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
  5099. var i, coefficient = x.slice(0, i);
  5100. // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
  5101. // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
  5102. return [
  5103. coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
  5104. +x.slice(i + 1)
  5105. ];
  5106. });
  5107. /***/ }),
  5108. /***/ "./node_modules/d3-format/src/formatGroup.js":
  5109. /*!***************************************************!*\
  5110. !*** ./node_modules/d3-format/src/formatGroup.js ***!
  5111. \***************************************************/
  5112. /*! exports provided: default */
  5113. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5114. "use strict";
  5115. __webpack_require__.r(__webpack_exports__);
  5116. /* harmony default export */ __webpack_exports__["default"] = (function(grouping, thousands) {
  5117. return function(value, width) {
  5118. var i = value.length,
  5119. t = [],
  5120. j = 0,
  5121. g = grouping[0],
  5122. length = 0;
  5123. while (i > 0 && g > 0) {
  5124. if (length + g + 1 > width) g = Math.max(1, width - length);
  5125. t.push(value.substring(i -= g, i + g));
  5126. if ((length += g + 1) > width) break;
  5127. g = grouping[j = (j + 1) % grouping.length];
  5128. }
  5129. return t.reverse().join(thousands);
  5130. };
  5131. });
  5132. /***/ }),
  5133. /***/ "./node_modules/d3-format/src/formatNumerals.js":
  5134. /*!******************************************************!*\
  5135. !*** ./node_modules/d3-format/src/formatNumerals.js ***!
  5136. \******************************************************/
  5137. /*! exports provided: default */
  5138. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5139. "use strict";
  5140. __webpack_require__.r(__webpack_exports__);
  5141. /* harmony default export */ __webpack_exports__["default"] = (function(numerals) {
  5142. return function(value) {
  5143. return value.replace(/[0-9]/g, function(i) {
  5144. return numerals[+i];
  5145. });
  5146. };
  5147. });
  5148. /***/ }),
  5149. /***/ "./node_modules/d3-format/src/formatPrefixAuto.js":
  5150. /*!********************************************************!*\
  5151. !*** ./node_modules/d3-format/src/formatPrefixAuto.js ***!
  5152. \********************************************************/
  5153. /*! exports provided: prefixExponent, default */
  5154. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5155. "use strict";
  5156. __webpack_require__.r(__webpack_exports__);
  5157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefixExponent", function() { return prefixExponent; });
  5158. /* harmony import */ var _formatDecimal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal */ "./node_modules/d3-format/src/formatDecimal.js");
  5159. var prefixExponent;
  5160. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) {
  5161. var d = Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p);
  5162. if (!d) return x + "";
  5163. var coefficient = d[0],
  5164. exponent = d[1],
  5165. i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
  5166. n = coefficient.length;
  5167. return i === n ? coefficient
  5168. : i > n ? coefficient + new Array(i - n + 1).join("0")
  5169. : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i)
  5170. : "0." + new Array(1 - i).join("0") + Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(x, Math.max(0, p + i - 1))[0]; // less than 1y!
  5171. });
  5172. /***/ }),
  5173. /***/ "./node_modules/d3-format/src/formatRounded.js":
  5174. /*!*****************************************************!*\
  5175. !*** ./node_modules/d3-format/src/formatRounded.js ***!
  5176. \*****************************************************/
  5177. /*! exports provided: default */
  5178. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5179. "use strict";
  5180. __webpack_require__.r(__webpack_exports__);
  5181. /* harmony import */ var _formatDecimal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal */ "./node_modules/d3-format/src/formatDecimal.js");
  5182. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) {
  5183. var d = Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p);
  5184. if (!d) return x + "";
  5185. var coefficient = d[0],
  5186. exponent = d[1];
  5187. return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient
  5188. : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1)
  5189. : coefficient + new Array(exponent - coefficient.length + 2).join("0");
  5190. });
  5191. /***/ }),
  5192. /***/ "./node_modules/d3-format/src/formatSpecifier.js":
  5193. /*!*******************************************************!*\
  5194. !*** ./node_modules/d3-format/src/formatSpecifier.js ***!
  5195. \*******************************************************/
  5196. /*! exports provided: default */
  5197. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5198. "use strict";
  5199. __webpack_require__.r(__webpack_exports__);
  5200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatSpecifier; });
  5201. // [[fill]align][sign][symbol][0][width][,][.precision][~][type]
  5202. var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
  5203. function formatSpecifier(specifier) {
  5204. return new FormatSpecifier(specifier);
  5205. }
  5206. formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
  5207. function FormatSpecifier(specifier) {
  5208. if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
  5209. var match;
  5210. this.fill = match[1] || " ";
  5211. this.align = match[2] || ">";
  5212. this.sign = match[3] || "-";
  5213. this.symbol = match[4] || "";
  5214. this.zero = !!match[5];
  5215. this.width = match[6] && +match[6];
  5216. this.comma = !!match[7];
  5217. this.precision = match[8] && +match[8].slice(1);
  5218. this.trim = !!match[9];
  5219. this.type = match[10] || "";
  5220. }
  5221. FormatSpecifier.prototype.toString = function() {
  5222. return this.fill
  5223. + this.align
  5224. + this.sign
  5225. + this.symbol
  5226. + (this.zero ? "0" : "")
  5227. + (this.width == null ? "" : Math.max(1, this.width | 0))
  5228. + (this.comma ? "," : "")
  5229. + (this.precision == null ? "" : "." + Math.max(0, this.precision | 0))
  5230. + (this.trim ? "~" : "")
  5231. + this.type;
  5232. };
  5233. /***/ }),
  5234. /***/ "./node_modules/d3-format/src/formatTrim.js":
  5235. /*!**************************************************!*\
  5236. !*** ./node_modules/d3-format/src/formatTrim.js ***!
  5237. \**************************************************/
  5238. /*! exports provided: default */
  5239. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5240. "use strict";
  5241. __webpack_require__.r(__webpack_exports__);
  5242. // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
  5243. /* harmony default export */ __webpack_exports__["default"] = (function(s) {
  5244. out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
  5245. switch (s[i]) {
  5246. case ".": i0 = i1 = i; break;
  5247. case "0": if (i0 === 0) i0 = i; i1 = i; break;
  5248. default: if (i0 > 0) { if (!+s[i]) break out; i0 = 0; } break;
  5249. }
  5250. }
  5251. return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
  5252. });
  5253. /***/ }),
  5254. /***/ "./node_modules/d3-format/src/formatTypes.js":
  5255. /*!***************************************************!*\
  5256. !*** ./node_modules/d3-format/src/formatTypes.js ***!
  5257. \***************************************************/
  5258. /*! exports provided: default */
  5259. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5260. "use strict";
  5261. __webpack_require__.r(__webpack_exports__);
  5262. /* harmony import */ var _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatPrefixAuto */ "./node_modules/d3-format/src/formatPrefixAuto.js");
  5263. /* harmony import */ var _formatRounded__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatRounded */ "./node_modules/d3-format/src/formatRounded.js");
  5264. /* harmony default export */ __webpack_exports__["default"] = ({
  5265. "%": function(x, p) { return (x * 100).toFixed(p); },
  5266. "b": function(x) { return Math.round(x).toString(2); },
  5267. "c": function(x) { return x + ""; },
  5268. "d": function(x) { return Math.round(x).toString(10); },
  5269. "e": function(x, p) { return x.toExponential(p); },
  5270. "f": function(x, p) { return x.toFixed(p); },
  5271. "g": function(x, p) { return x.toPrecision(p); },
  5272. "o": function(x) { return Math.round(x).toString(8); },
  5273. "p": function(x, p) { return Object(_formatRounded__WEBPACK_IMPORTED_MODULE_1__["default"])(x * 100, p); },
  5274. "r": _formatRounded__WEBPACK_IMPORTED_MODULE_1__["default"],
  5275. "s": _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_0__["default"],
  5276. "X": function(x) { return Math.round(x).toString(16).toUpperCase(); },
  5277. "x": function(x) { return Math.round(x).toString(16); }
  5278. });
  5279. /***/ }),
  5280. /***/ "./node_modules/d3-format/src/identity.js":
  5281. /*!************************************************!*\
  5282. !*** ./node_modules/d3-format/src/identity.js ***!
  5283. \************************************************/
  5284. /*! exports provided: default */
  5285. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5286. "use strict";
  5287. __webpack_require__.r(__webpack_exports__);
  5288. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  5289. return x;
  5290. });
  5291. /***/ }),
  5292. /***/ "./node_modules/d3-format/src/index.js":
  5293. /*!*********************************************!*\
  5294. !*** ./node_modules/d3-format/src/index.js ***!
  5295. \*********************************************/
  5296. /*! exports provided: formatDefaultLocale, format, formatPrefix, formatLocale, formatSpecifier, precisionFixed, precisionPrefix, precisionRound */
  5297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5298. "use strict";
  5299. __webpack_require__.r(__webpack_exports__);
  5300. /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-format/src/defaultLocale.js");
  5301. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDefaultLocale", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  5302. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["format"]; });
  5303. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["formatPrefix"]; });
  5304. /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-format/src/locale.js");
  5305. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatLocale", function() { return _locale__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  5306. /* harmony import */ var _formatSpecifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatSpecifier */ "./node_modules/d3-format/src/formatSpecifier.js");
  5307. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatSpecifier", function() { return _formatSpecifier__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  5308. /* harmony import */ var _precisionFixed__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./precisionFixed */ "./node_modules/d3-format/src/precisionFixed.js");
  5309. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionFixed", function() { return _precisionFixed__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  5310. /* harmony import */ var _precisionPrefix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./precisionPrefix */ "./node_modules/d3-format/src/precisionPrefix.js");
  5311. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionPrefix", function() { return _precisionPrefix__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  5312. /* harmony import */ var _precisionRound__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./precisionRound */ "./node_modules/d3-format/src/precisionRound.js");
  5313. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return _precisionRound__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  5314. /***/ }),
  5315. /***/ "./node_modules/d3-format/src/locale.js":
  5316. /*!**********************************************!*\
  5317. !*** ./node_modules/d3-format/src/locale.js ***!
  5318. \**********************************************/
  5319. /*! exports provided: default */
  5320. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5321. "use strict";
  5322. __webpack_require__.r(__webpack_exports__);
  5323. /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js");
  5324. /* harmony import */ var _formatGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatGroup */ "./node_modules/d3-format/src/formatGroup.js");
  5325. /* harmony import */ var _formatNumerals__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatNumerals */ "./node_modules/d3-format/src/formatNumerals.js");
  5326. /* harmony import */ var _formatSpecifier__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formatSpecifier */ "./node_modules/d3-format/src/formatSpecifier.js");
  5327. /* harmony import */ var _formatTrim__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formatTrim */ "./node_modules/d3-format/src/formatTrim.js");
  5328. /* harmony import */ var _formatTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formatTypes */ "./node_modules/d3-format/src/formatTypes.js");
  5329. /* harmony import */ var _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./formatPrefixAuto */ "./node_modules/d3-format/src/formatPrefixAuto.js");
  5330. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-format/src/identity.js");
  5331. var prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
  5332. /* harmony default export */ __webpack_exports__["default"] = (function(locale) {
  5333. var group = locale.grouping && locale.thousands ? Object(_formatGroup__WEBPACK_IMPORTED_MODULE_1__["default"])(locale.grouping, locale.thousands) : _identity__WEBPACK_IMPORTED_MODULE_7__["default"],
  5334. currency = locale.currency,
  5335. decimal = locale.decimal,
  5336. numerals = locale.numerals ? Object(_formatNumerals__WEBPACK_IMPORTED_MODULE_2__["default"])(locale.numerals) : _identity__WEBPACK_IMPORTED_MODULE_7__["default"],
  5337. percent = locale.percent || "%";
  5338. function newFormat(specifier) {
  5339. specifier = Object(_formatSpecifier__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier);
  5340. var fill = specifier.fill,
  5341. align = specifier.align,
  5342. sign = specifier.sign,
  5343. symbol = specifier.symbol,
  5344. zero = specifier.zero,
  5345. width = specifier.width,
  5346. comma = specifier.comma,
  5347. precision = specifier.precision,
  5348. trim = specifier.trim,
  5349. type = specifier.type;
  5350. // The "n" type is an alias for ",g".
  5351. if (type === "n") comma = true, type = "g";
  5352. // The "" type, and any invalid type, is an alias for ".12~g".
  5353. else if (!_formatTypes__WEBPACK_IMPORTED_MODULE_5__["default"][type]) precision == null && (precision = 12), trim = true, type = "g";
  5354. // If zero fill is specified, padding goes after sign and before digits.
  5355. if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "=";
  5356. // Compute the prefix and suffix.
  5357. // For SI-prefix, the suffix is lazily computed.
  5358. var prefix = symbol === "$" ? currency[0] : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
  5359. suffix = symbol === "$" ? currency[1] : /[%p]/.test(type) ? percent : "";
  5360. // What format function should we use?
  5361. // Is this an integer type?
  5362. // Can this type generate exponential notation?
  5363. var formatType = _formatTypes__WEBPACK_IMPORTED_MODULE_5__["default"][type],
  5364. maybeSuffix = /[defgprs%]/.test(type);
  5365. // Set the default precision if not specified,
  5366. // or clamp the specified precision to the supported range.
  5367. // For significant precision, it must be in [1, 21].
  5368. // For fixed precision, it must be in [0, 20].
  5369. precision = precision == null ? 6
  5370. : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))
  5371. : Math.max(0, Math.min(20, precision));
  5372. function format(value) {
  5373. var valuePrefix = prefix,
  5374. valueSuffix = suffix,
  5375. i, n, c;
  5376. if (type === "c") {
  5377. valueSuffix = formatType(value) + valueSuffix;
  5378. value = "";
  5379. } else {
  5380. value = +value;
  5381. // Perform the initial formatting.
  5382. var valueNegative = value < 0;
  5383. value = formatType(Math.abs(value), precision);
  5384. // Trim insignificant zeros.
  5385. if (trim) value = Object(_formatTrim__WEBPACK_IMPORTED_MODULE_4__["default"])(value);
  5386. // If a negative value rounds to zero during formatting, treat as positive.
  5387. if (valueNegative && +value === 0) valueNegative = false;
  5388. // Compute the prefix and suffix.
  5389. valuePrefix = (valueNegative ? (sign === "(" ? sign : "-") : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
  5390. valueSuffix = (type === "s" ? prefixes[8 + _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_6__["prefixExponent"] / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
  5391. // Break the formatted value into the integer “value” part that can be
  5392. // grouped, and fractional or exponential “suffix” part that is not.
  5393. if (maybeSuffix) {
  5394. i = -1, n = value.length;
  5395. while (++i < n) {
  5396. if (c = value.charCodeAt(i), 48 > c || c > 57) {
  5397. valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
  5398. value = value.slice(0, i);
  5399. break;
  5400. }
  5401. }
  5402. }
  5403. }
  5404. // If the fill character is not "0", grouping is applied before padding.
  5405. if (comma && !zero) value = group(value, Infinity);
  5406. // Compute the padding.
  5407. var length = valuePrefix.length + value.length + valueSuffix.length,
  5408. padding = length < width ? new Array(width - length + 1).join(fill) : "";
  5409. // If the fill character is "0", grouping is applied after padding.
  5410. if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
  5411. // Reconstruct the final output based on the desired alignment.
  5412. switch (align) {
  5413. case "<": value = valuePrefix + value + valueSuffix + padding; break;
  5414. case "=": value = valuePrefix + padding + value + valueSuffix; break;
  5415. case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;
  5416. default: value = padding + valuePrefix + value + valueSuffix; break;
  5417. }
  5418. return numerals(value);
  5419. }
  5420. format.toString = function() {
  5421. return specifier + "";
  5422. };
  5423. return format;
  5424. }
  5425. function formatPrefix(specifier, value) {
  5426. var f = newFormat((specifier = Object(_formatSpecifier__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier), specifier.type = "f", specifier)),
  5427. e = Math.max(-8, Math.min(8, Math.floor(Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3,
  5428. k = Math.pow(10, -e),
  5429. prefix = prefixes[8 + e / 3];
  5430. return function(value) {
  5431. return f(k * value) + prefix;
  5432. };
  5433. }
  5434. return {
  5435. format: newFormat,
  5436. formatPrefix: formatPrefix
  5437. };
  5438. });
  5439. /***/ }),
  5440. /***/ "./node_modules/d3-format/src/precisionFixed.js":
  5441. /*!******************************************************!*\
  5442. !*** ./node_modules/d3-format/src/precisionFixed.js ***!
  5443. \******************************************************/
  5444. /*! exports provided: default */
  5445. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5446. "use strict";
  5447. __webpack_require__.r(__webpack_exports__);
  5448. /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js");
  5449. /* harmony default export */ __webpack_exports__["default"] = (function(step) {
  5450. return Math.max(0, -Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step)));
  5451. });
  5452. /***/ }),
  5453. /***/ "./node_modules/d3-format/src/precisionPrefix.js":
  5454. /*!*******************************************************!*\
  5455. !*** ./node_modules/d3-format/src/precisionPrefix.js ***!
  5456. \*******************************************************/
  5457. /*! exports provided: default */
  5458. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5459. "use strict";
  5460. __webpack_require__.r(__webpack_exports__);
  5461. /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js");
  5462. /* harmony default export */ __webpack_exports__["default"] = (function(step, value) {
  5463. return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3 - Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step)));
  5464. });
  5465. /***/ }),
  5466. /***/ "./node_modules/d3-format/src/precisionRound.js":
  5467. /*!******************************************************!*\
  5468. !*** ./node_modules/d3-format/src/precisionRound.js ***!
  5469. \******************************************************/
  5470. /*! exports provided: default */
  5471. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5472. "use strict";
  5473. __webpack_require__.r(__webpack_exports__);
  5474. /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js");
  5475. /* harmony default export */ __webpack_exports__["default"] = (function(step, max) {
  5476. step = Math.abs(step), max = Math.abs(max) - step;
  5477. return Math.max(0, Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(max) - Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(step)) + 1;
  5478. });
  5479. /***/ }),
  5480. /***/ "./node_modules/d3-geo/src/adder.js":
  5481. /*!******************************************!*\
  5482. !*** ./node_modules/d3-geo/src/adder.js ***!
  5483. \******************************************/
  5484. /*! exports provided: default */
  5485. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5486. "use strict";
  5487. __webpack_require__.r(__webpack_exports__);
  5488. // Adds floating point numbers with twice the normal precision.
  5489. // Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and
  5490. // Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)
  5491. // 305–363 (1997).
  5492. // Code adapted from GeographicLib by Charles F. F. Karney,
  5493. // http://geographiclib.sourceforge.net/
  5494. /* harmony default export */ __webpack_exports__["default"] = (function() {
  5495. return new Adder;
  5496. });
  5497. function Adder() {
  5498. this.reset();
  5499. }
  5500. Adder.prototype = {
  5501. constructor: Adder,
  5502. reset: function() {
  5503. this.s = // rounded value
  5504. this.t = 0; // exact error
  5505. },
  5506. add: function(y) {
  5507. add(temp, y, this.t);
  5508. add(this, temp.s, this.s);
  5509. if (this.s) this.t += temp.t;
  5510. else this.s = temp.t;
  5511. },
  5512. valueOf: function() {
  5513. return this.s;
  5514. }
  5515. };
  5516. var temp = new Adder;
  5517. function add(adder, a, b) {
  5518. var x = adder.s = a + b,
  5519. bv = x - a,
  5520. av = x - bv;
  5521. adder.t = (a - av) + (b - bv);
  5522. }
  5523. /***/ }),
  5524. /***/ "./node_modules/d3-geo/src/area.js":
  5525. /*!*****************************************!*\
  5526. !*** ./node_modules/d3-geo/src/area.js ***!
  5527. \*****************************************/
  5528. /*! exports provided: areaRingSum, areaStream, default */
  5529. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5530. "use strict";
  5531. __webpack_require__.r(__webpack_exports__);
  5532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "areaRingSum", function() { return areaRingSum; });
  5533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "areaStream", function() { return areaStream; });
  5534. /* harmony import */ var _adder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder */ "./node_modules/d3-geo/src/adder.js");
  5535. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  5536. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./noop */ "./node_modules/d3-geo/src/noop.js");
  5537. /* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stream */ "./node_modules/d3-geo/src/stream.js");
  5538. var areaRingSum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])();
  5539. var areaSum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  5540. lambda00,
  5541. phi00,
  5542. lambda0,
  5543. cosPhi0,
  5544. sinPhi0;
  5545. var areaStream = {
  5546. point: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  5547. lineStart: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  5548. lineEnd: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  5549. polygonStart: function() {
  5550. areaRingSum.reset();
  5551. areaStream.lineStart = areaRingStart;
  5552. areaStream.lineEnd = areaRingEnd;
  5553. },
  5554. polygonEnd: function() {
  5555. var areaRing = +areaRingSum;
  5556. areaSum.add(areaRing < 0 ? _math__WEBPACK_IMPORTED_MODULE_1__["tau"] + areaRing : areaRing);
  5557. this.lineStart = this.lineEnd = this.point = _noop__WEBPACK_IMPORTED_MODULE_2__["default"];
  5558. },
  5559. sphere: function() {
  5560. areaSum.add(_math__WEBPACK_IMPORTED_MODULE_1__["tau"]);
  5561. }
  5562. };
  5563. function areaRingStart() {
  5564. areaStream.point = areaPointFirst;
  5565. }
  5566. function areaRingEnd() {
  5567. areaPoint(lambda00, phi00);
  5568. }
  5569. function areaPointFirst(lambda, phi) {
  5570. areaStream.point = areaPoint;
  5571. lambda00 = lambda, phi00 = phi;
  5572. lambda *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"];
  5573. lambda0 = lambda, cosPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi = phi / 2 + _math__WEBPACK_IMPORTED_MODULE_1__["quarterPi"]), sinPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi);
  5574. }
  5575. function areaPoint(lambda, phi) {
  5576. lambda *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"];
  5577. phi = phi / 2 + _math__WEBPACK_IMPORTED_MODULE_1__["quarterPi"]; // half the angular distance from south pole
  5578. // Spherical excess E for a spherical triangle with vertices: south pole,
  5579. // previous point, current point. Uses a formula derived from Cagnoli’s
  5580. // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).
  5581. var dLambda = lambda - lambda0,
  5582. sdLambda = dLambda >= 0 ? 1 : -1,
  5583. adLambda = sdLambda * dLambda,
  5584. cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  5585. sinPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  5586. k = sinPhi0 * sinPhi,
  5587. u = cosPhi0 * cosPhi + k * Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(adLambda),
  5588. v = k * sdLambda * Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(adLambda);
  5589. areaRingSum.add(Object(_math__WEBPACK_IMPORTED_MODULE_1__["atan2"])(v, u));
  5590. // Advance the previous points.
  5591. lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;
  5592. }
  5593. /* harmony default export */ __webpack_exports__["default"] = (function(object) {
  5594. areaSum.reset();
  5595. Object(_stream__WEBPACK_IMPORTED_MODULE_3__["default"])(object, areaStream);
  5596. return areaSum * 2;
  5597. });
  5598. /***/ }),
  5599. /***/ "./node_modules/d3-geo/src/bounds.js":
  5600. /*!*******************************************!*\
  5601. !*** ./node_modules/d3-geo/src/bounds.js ***!
  5602. \*******************************************/
  5603. /*! exports provided: default */
  5604. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5605. "use strict";
  5606. __webpack_require__.r(__webpack_exports__);
  5607. /* harmony import */ var _adder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder */ "./node_modules/d3-geo/src/adder.js");
  5608. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "./node_modules/d3-geo/src/area.js");
  5609. /* harmony import */ var _cartesian__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cartesian */ "./node_modules/d3-geo/src/cartesian.js");
  5610. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  5611. /* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./stream */ "./node_modules/d3-geo/src/stream.js");
  5612. var lambda0, phi0, lambda1, phi1, // bounds
  5613. lambda2, // previous lambda-coordinate
  5614. lambda00, phi00, // first point
  5615. p0, // previous 3D point
  5616. deltaSum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  5617. ranges,
  5618. range;
  5619. var boundsStream = {
  5620. point: boundsPoint,
  5621. lineStart: boundsLineStart,
  5622. lineEnd: boundsLineEnd,
  5623. polygonStart: function() {
  5624. boundsStream.point = boundsRingPoint;
  5625. boundsStream.lineStart = boundsRingStart;
  5626. boundsStream.lineEnd = boundsRingEnd;
  5627. deltaSum.reset();
  5628. _area__WEBPACK_IMPORTED_MODULE_1__["areaStream"].polygonStart();
  5629. },
  5630. polygonEnd: function() {
  5631. _area__WEBPACK_IMPORTED_MODULE_1__["areaStream"].polygonEnd();
  5632. boundsStream.point = boundsPoint;
  5633. boundsStream.lineStart = boundsLineStart;
  5634. boundsStream.lineEnd = boundsLineEnd;
  5635. if (_area__WEBPACK_IMPORTED_MODULE_1__["areaRingSum"] < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
  5636. else if (deltaSum > _math__WEBPACK_IMPORTED_MODULE_3__["epsilon"]) phi1 = 90;
  5637. else if (deltaSum < -_math__WEBPACK_IMPORTED_MODULE_3__["epsilon"]) phi0 = -90;
  5638. range[0] = lambda0, range[1] = lambda1;
  5639. }
  5640. };
  5641. function boundsPoint(lambda, phi) {
  5642. ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
  5643. if (phi < phi0) phi0 = phi;
  5644. if (phi > phi1) phi1 = phi;
  5645. }
  5646. function linePoint(lambda, phi) {
  5647. var p = Object(_cartesian__WEBPACK_IMPORTED_MODULE_2__["cartesian"])([lambda * _math__WEBPACK_IMPORTED_MODULE_3__["radians"], phi * _math__WEBPACK_IMPORTED_MODULE_3__["radians"]]);
  5648. if (p0) {
  5649. var normal = Object(_cartesian__WEBPACK_IMPORTED_MODULE_2__["cartesianCross"])(p0, p),
  5650. equatorial = [normal[1], -normal[0], 0],
  5651. inflection = Object(_cartesian__WEBPACK_IMPORTED_MODULE_2__["cartesianCross"])(equatorial, normal);
  5652. Object(_cartesian__WEBPACK_IMPORTED_MODULE_2__["cartesianNormalizeInPlace"])(inflection);
  5653. inflection = Object(_cartesian__WEBPACK_IMPORTED_MODULE_2__["spherical"])(inflection);
  5654. var delta = lambda - lambda2,
  5655. sign = delta > 0 ? 1 : -1,
  5656. lambdai = inflection[0] * _math__WEBPACK_IMPORTED_MODULE_3__["degrees"] * sign,
  5657. phii,
  5658. antimeridian = Object(_math__WEBPACK_IMPORTED_MODULE_3__["abs"])(delta) > 180;
  5659. if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
  5660. phii = inflection[1] * _math__WEBPACK_IMPORTED_MODULE_3__["degrees"];
  5661. if (phii > phi1) phi1 = phii;
  5662. } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
  5663. phii = -inflection[1] * _math__WEBPACK_IMPORTED_MODULE_3__["degrees"];
  5664. if (phii < phi0) phi0 = phii;
  5665. } else {
  5666. if (phi < phi0) phi0 = phi;
  5667. if (phi > phi1) phi1 = phi;
  5668. }
  5669. if (antimeridian) {
  5670. if (lambda < lambda2) {
  5671. if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
  5672. } else {
  5673. if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
  5674. }
  5675. } else {
  5676. if (lambda1 >= lambda0) {
  5677. if (lambda < lambda0) lambda0 = lambda;
  5678. if (lambda > lambda1) lambda1 = lambda;
  5679. } else {
  5680. if (lambda > lambda2) {
  5681. if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
  5682. } else {
  5683. if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
  5684. }
  5685. }
  5686. }
  5687. } else {
  5688. ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
  5689. }
  5690. if (phi < phi0) phi0 = phi;
  5691. if (phi > phi1) phi1 = phi;
  5692. p0 = p, lambda2 = lambda;
  5693. }
  5694. function boundsLineStart() {
  5695. boundsStream.point = linePoint;
  5696. }
  5697. function boundsLineEnd() {
  5698. range[0] = lambda0, range[1] = lambda1;
  5699. boundsStream.point = boundsPoint;
  5700. p0 = null;
  5701. }
  5702. function boundsRingPoint(lambda, phi) {
  5703. if (p0) {
  5704. var delta = lambda - lambda2;
  5705. deltaSum.add(Object(_math__WEBPACK_IMPORTED_MODULE_3__["abs"])(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);
  5706. } else {
  5707. lambda00 = lambda, phi00 = phi;
  5708. }
  5709. _area__WEBPACK_IMPORTED_MODULE_1__["areaStream"].point(lambda, phi);
  5710. linePoint(lambda, phi);
  5711. }
  5712. function boundsRingStart() {
  5713. _area__WEBPACK_IMPORTED_MODULE_1__["areaStream"].lineStart();
  5714. }
  5715. function boundsRingEnd() {
  5716. boundsRingPoint(lambda00, phi00);
  5717. _area__WEBPACK_IMPORTED_MODULE_1__["areaStream"].lineEnd();
  5718. if (Object(_math__WEBPACK_IMPORTED_MODULE_3__["abs"])(deltaSum) > _math__WEBPACK_IMPORTED_MODULE_3__["epsilon"]) lambda0 = -(lambda1 = 180);
  5719. range[0] = lambda0, range[1] = lambda1;
  5720. p0 = null;
  5721. }
  5722. // Finds the left-right distance between two longitudes.
  5723. // This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want
  5724. // the distance between ±180° to be 360°.
  5725. function angle(lambda0, lambda1) {
  5726. return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;
  5727. }
  5728. function rangeCompare(a, b) {
  5729. return a[0] - b[0];
  5730. }
  5731. function rangeContains(range, x) {
  5732. return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;
  5733. }
  5734. /* harmony default export */ __webpack_exports__["default"] = (function(feature) {
  5735. var i, n, a, b, merged, deltaMax, delta;
  5736. phi1 = lambda1 = -(lambda0 = phi0 = Infinity);
  5737. ranges = [];
  5738. Object(_stream__WEBPACK_IMPORTED_MODULE_4__["default"])(feature, boundsStream);
  5739. // First, sort ranges by their minimum longitudes.
  5740. if (n = ranges.length) {
  5741. ranges.sort(rangeCompare);
  5742. // Then, merge any ranges that overlap.
  5743. for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {
  5744. b = ranges[i];
  5745. if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {
  5746. if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
  5747. if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
  5748. } else {
  5749. merged.push(a = b);
  5750. }
  5751. }
  5752. // Finally, find the largest gap between the merged ranges.
  5753. // The final bounding box will be the inverse of this gap.
  5754. for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {
  5755. b = merged[i];
  5756. if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];
  5757. }
  5758. }
  5759. ranges = range = null;
  5760. return lambda0 === Infinity || phi0 === Infinity
  5761. ? [[NaN, NaN], [NaN, NaN]]
  5762. : [[lambda0, phi0], [lambda1, phi1]];
  5763. });
  5764. /***/ }),
  5765. /***/ "./node_modules/d3-geo/src/cartesian.js":
  5766. /*!**********************************************!*\
  5767. !*** ./node_modules/d3-geo/src/cartesian.js ***!
  5768. \**********************************************/
  5769. /*! exports provided: spherical, cartesian, cartesianDot, cartesianCross, cartesianAddInPlace, cartesianScale, cartesianNormalizeInPlace */
  5770. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5771. "use strict";
  5772. __webpack_require__.r(__webpack_exports__);
  5773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spherical", function() { return spherical; });
  5774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesian", function() { return cartesian; });
  5775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianDot", function() { return cartesianDot; });
  5776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianCross", function() { return cartesianCross; });
  5777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianAddInPlace", function() { return cartesianAddInPlace; });
  5778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianScale", function() { return cartesianScale; });
  5779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianNormalizeInPlace", function() { return cartesianNormalizeInPlace; });
  5780. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  5781. function spherical(cartesian) {
  5782. return [Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(cartesian[1], cartesian[0]), Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])(cartesian[2])];
  5783. }
  5784. function cartesian(spherical) {
  5785. var lambda = spherical[0], phi = spherical[1], cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5786. return [cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda), cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda), Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi)];
  5787. }
  5788. function cartesianDot(a, b) {
  5789. return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
  5790. }
  5791. function cartesianCross(a, b) {
  5792. return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];
  5793. }
  5794. // TODO return a
  5795. function cartesianAddInPlace(a, b) {
  5796. a[0] += b[0], a[1] += b[1], a[2] += b[2];
  5797. }
  5798. function cartesianScale(vector, k) {
  5799. return [vector[0] * k, vector[1] * k, vector[2] * k];
  5800. }
  5801. // TODO return d
  5802. function cartesianNormalizeInPlace(d) {
  5803. var l = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
  5804. d[0] /= l, d[1] /= l, d[2] /= l;
  5805. }
  5806. /***/ }),
  5807. /***/ "./node_modules/d3-geo/src/centroid.js":
  5808. /*!*********************************************!*\
  5809. !*** ./node_modules/d3-geo/src/centroid.js ***!
  5810. \*********************************************/
  5811. /*! exports provided: default */
  5812. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5813. "use strict";
  5814. __webpack_require__.r(__webpack_exports__);
  5815. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  5816. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noop */ "./node_modules/d3-geo/src/noop.js");
  5817. /* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stream */ "./node_modules/d3-geo/src/stream.js");
  5818. var W0, W1,
  5819. X0, Y0, Z0,
  5820. X1, Y1, Z1,
  5821. X2, Y2, Z2,
  5822. lambda00, phi00, // first point
  5823. x0, y0, z0; // previous point
  5824. var centroidStream = {
  5825. sphere: _noop__WEBPACK_IMPORTED_MODULE_1__["default"],
  5826. point: centroidPoint,
  5827. lineStart: centroidLineStart,
  5828. lineEnd: centroidLineEnd,
  5829. polygonStart: function() {
  5830. centroidStream.lineStart = centroidRingStart;
  5831. centroidStream.lineEnd = centroidRingEnd;
  5832. },
  5833. polygonEnd: function() {
  5834. centroidStream.lineStart = centroidLineStart;
  5835. centroidStream.lineEnd = centroidLineEnd;
  5836. }
  5837. };
  5838. // Arithmetic mean of Cartesian vectors.
  5839. function centroidPoint(lambda, phi) {
  5840. lambda *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5841. var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5842. centroidPointCartesian(cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda), cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda), Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi));
  5843. }
  5844. function centroidPointCartesian(x, y, z) {
  5845. ++W0;
  5846. X0 += (x - X0) / W0;
  5847. Y0 += (y - Y0) / W0;
  5848. Z0 += (z - Z0) / W0;
  5849. }
  5850. function centroidLineStart() {
  5851. centroidStream.point = centroidLinePointFirst;
  5852. }
  5853. function centroidLinePointFirst(lambda, phi) {
  5854. lambda *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5855. var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5856. x0 = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda);
  5857. y0 = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda);
  5858. z0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi);
  5859. centroidStream.point = centroidLinePoint;
  5860. centroidPointCartesian(x0, y0, z0);
  5861. }
  5862. function centroidLinePoint(lambda, phi) {
  5863. lambda *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5864. var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi),
  5865. x = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda),
  5866. y = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda),
  5867. z = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi),
  5868. w = Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);
  5869. W1 += w;
  5870. X1 += w * (x0 + (x0 = x));
  5871. Y1 += w * (y0 + (y0 = y));
  5872. Z1 += w * (z0 + (z0 = z));
  5873. centroidPointCartesian(x0, y0, z0);
  5874. }
  5875. function centroidLineEnd() {
  5876. centroidStream.point = centroidPoint;
  5877. }
  5878. // See J. E. Brock, The Inertia Tensor for a Spherical Triangle,
  5879. // J. Applied Mechanics 42, 239 (1975).
  5880. function centroidRingStart() {
  5881. centroidStream.point = centroidRingPointFirst;
  5882. }
  5883. function centroidRingEnd() {
  5884. centroidRingPoint(lambda00, phi00);
  5885. centroidStream.point = centroidPoint;
  5886. }
  5887. function centroidRingPointFirst(lambda, phi) {
  5888. lambda00 = lambda, phi00 = phi;
  5889. lambda *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5890. centroidStream.point = centroidRingPoint;
  5891. var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5892. x0 = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda);
  5893. y0 = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda);
  5894. z0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi);
  5895. centroidPointCartesian(x0, y0, z0);
  5896. }
  5897. function centroidRingPoint(lambda, phi) {
  5898. lambda *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5899. var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi),
  5900. x = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda),
  5901. y = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda),
  5902. z = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi),
  5903. cx = y0 * z - z0 * y,
  5904. cy = z0 * x - x0 * z,
  5905. cz = x0 * y - y0 * x,
  5906. m = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(cx * cx + cy * cy + cz * cz),
  5907. w = Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])(m), // line weight = angle
  5908. v = m && -w / m; // area weight multiplier
  5909. X2 += v * cx;
  5910. Y2 += v * cy;
  5911. Z2 += v * cz;
  5912. W1 += w;
  5913. X1 += w * (x0 + (x0 = x));
  5914. Y1 += w * (y0 + (y0 = y));
  5915. Z1 += w * (z0 + (z0 = z));
  5916. centroidPointCartesian(x0, y0, z0);
  5917. }
  5918. /* harmony default export */ __webpack_exports__["default"] = (function(object) {
  5919. W0 = W1 =
  5920. X0 = Y0 = Z0 =
  5921. X1 = Y1 = Z1 =
  5922. X2 = Y2 = Z2 = 0;
  5923. Object(_stream__WEBPACK_IMPORTED_MODULE_2__["default"])(object, centroidStream);
  5924. var x = X2,
  5925. y = Y2,
  5926. z = Z2,
  5927. m = x * x + y * y + z * z;
  5928. // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.
  5929. if (m < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon2"]) {
  5930. x = X1, y = Y1, z = Z1;
  5931. // If the feature has zero length, fall back to arithmetic mean of point vectors.
  5932. if (W1 < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) x = X0, y = Y0, z = Z0;
  5933. m = x * x + y * y + z * z;
  5934. // If the feature still has an undefined ccentroid, then return.
  5935. if (m < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon2"]) return [NaN, NaN];
  5936. }
  5937. return [Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(y, x) * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"], Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])(z / Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(m)) * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"]];
  5938. });
  5939. /***/ }),
  5940. /***/ "./node_modules/d3-geo/src/circle.js":
  5941. /*!*******************************************!*\
  5942. !*** ./node_modules/d3-geo/src/circle.js ***!
  5943. \*******************************************/
  5944. /*! exports provided: circleStream, default */
  5945. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5946. "use strict";
  5947. __webpack_require__.r(__webpack_exports__);
  5948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleStream", function() { return circleStream; });
  5949. /* harmony import */ var _cartesian__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cartesian */ "./node_modules/d3-geo/src/cartesian.js");
  5950. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-geo/src/constant.js");
  5951. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  5952. /* harmony import */ var _rotation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rotation */ "./node_modules/d3-geo/src/rotation.js");
  5953. // Generates a circle centered at [0°, 0°], with a given radius and precision.
  5954. function circleStream(stream, radius, delta, direction, t0, t1) {
  5955. if (!delta) return;
  5956. var cosRadius = Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(radius),
  5957. sinRadius = Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(radius),
  5958. step = direction * delta;
  5959. if (t0 == null) {
  5960. t0 = radius + direction * _math__WEBPACK_IMPORTED_MODULE_2__["tau"];
  5961. t1 = radius - step / 2;
  5962. } else {
  5963. t0 = circleRadius(cosRadius, t0);
  5964. t1 = circleRadius(cosRadius, t1);
  5965. if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * _math__WEBPACK_IMPORTED_MODULE_2__["tau"];
  5966. }
  5967. for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {
  5968. point = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["spherical"])([cosRadius, -sinRadius * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(t), -sinRadius * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(t)]);
  5969. stream.point(point[0], point[1]);
  5970. }
  5971. }
  5972. // Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].
  5973. function circleRadius(cosRadius, point) {
  5974. point = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesian"])(point), point[0] -= cosRadius;
  5975. Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianNormalizeInPlace"])(point);
  5976. var radius = Object(_math__WEBPACK_IMPORTED_MODULE_2__["acos"])(-point[1]);
  5977. return ((-point[2] < 0 ? -radius : radius) + _math__WEBPACK_IMPORTED_MODULE_2__["tau"] - _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) % _math__WEBPACK_IMPORTED_MODULE_2__["tau"];
  5978. }
  5979. /* harmony default export */ __webpack_exports__["default"] = (function() {
  5980. var center = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])([0, 0]),
  5981. radius = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(90),
  5982. precision = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(6),
  5983. ring,
  5984. rotate,
  5985. stream = {point: point};
  5986. function point(x, y) {
  5987. ring.push(x = rotate(x, y));
  5988. x[0] *= _math__WEBPACK_IMPORTED_MODULE_2__["degrees"], x[1] *= _math__WEBPACK_IMPORTED_MODULE_2__["degrees"];
  5989. }
  5990. function circle() {
  5991. var c = center.apply(this, arguments),
  5992. r = radius.apply(this, arguments) * _math__WEBPACK_IMPORTED_MODULE_2__["radians"],
  5993. p = precision.apply(this, arguments) * _math__WEBPACK_IMPORTED_MODULE_2__["radians"];
  5994. ring = [];
  5995. rotate = Object(_rotation__WEBPACK_IMPORTED_MODULE_3__["rotateRadians"])(-c[0] * _math__WEBPACK_IMPORTED_MODULE_2__["radians"], -c[1] * _math__WEBPACK_IMPORTED_MODULE_2__["radians"], 0).invert;
  5996. circleStream(stream, r, p, 1);
  5997. c = {type: "Polygon", coordinates: [ring]};
  5998. ring = rotate = null;
  5999. return c;
  6000. }
  6001. circle.center = function(_) {
  6002. return arguments.length ? (center = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])([+_[0], +_[1]]), circle) : center;
  6003. };
  6004. circle.radius = function(_) {
  6005. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), circle) : radius;
  6006. };
  6007. circle.precision = function(_) {
  6008. return arguments.length ? (precision = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), circle) : precision;
  6009. };
  6010. return circle;
  6011. });
  6012. /***/ }),
  6013. /***/ "./node_modules/d3-geo/src/clip/antimeridian.js":
  6014. /*!******************************************************!*\
  6015. !*** ./node_modules/d3-geo/src/clip/antimeridian.js ***!
  6016. \******************************************************/
  6017. /*! exports provided: default */
  6018. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6019. "use strict";
  6020. __webpack_require__.r(__webpack_exports__);
  6021. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/clip/index.js");
  6022. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  6023. /* harmony default export */ __webpack_exports__["default"] = (Object(_index__WEBPACK_IMPORTED_MODULE_0__["default"])(
  6024. function() { return true; },
  6025. clipAntimeridianLine,
  6026. clipAntimeridianInterpolate,
  6027. [-_math__WEBPACK_IMPORTED_MODULE_1__["pi"], -_math__WEBPACK_IMPORTED_MODULE_1__["halfPi"]]
  6028. ));
  6029. // Takes a line and cuts into visible segments. Return values: 0 - there were
  6030. // intersections or the line was empty; 1 - no intersections; 2 - there were
  6031. // intersections, and the first and last segments should be rejoined.
  6032. function clipAntimeridianLine(stream) {
  6033. var lambda0 = NaN,
  6034. phi0 = NaN,
  6035. sign0 = NaN,
  6036. clean; // no intersections
  6037. return {
  6038. lineStart: function() {
  6039. stream.lineStart();
  6040. clean = 1;
  6041. },
  6042. point: function(lambda1, phi1) {
  6043. var sign1 = lambda1 > 0 ? _math__WEBPACK_IMPORTED_MODULE_1__["pi"] : -_math__WEBPACK_IMPORTED_MODULE_1__["pi"],
  6044. delta = Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda1 - lambda0);
  6045. if (Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(delta - _math__WEBPACK_IMPORTED_MODULE_1__["pi"]) < _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) { // line crosses a pole
  6046. stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? _math__WEBPACK_IMPORTED_MODULE_1__["halfPi"] : -_math__WEBPACK_IMPORTED_MODULE_1__["halfPi"]);
  6047. stream.point(sign0, phi0);
  6048. stream.lineEnd();
  6049. stream.lineStart();
  6050. stream.point(sign1, phi0);
  6051. stream.point(lambda1, phi0);
  6052. clean = 0;
  6053. } else if (sign0 !== sign1 && delta >= _math__WEBPACK_IMPORTED_MODULE_1__["pi"]) { // line crosses antimeridian
  6054. if (Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda0 - sign0) < _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) lambda0 -= sign0 * _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]; // handle degeneracies
  6055. if (Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda1 - sign1) < _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) lambda1 -= sign1 * _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"];
  6056. phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);
  6057. stream.point(sign0, phi0);
  6058. stream.lineEnd();
  6059. stream.lineStart();
  6060. stream.point(sign1, phi0);
  6061. clean = 0;
  6062. }
  6063. stream.point(lambda0 = lambda1, phi0 = phi1);
  6064. sign0 = sign1;
  6065. },
  6066. lineEnd: function() {
  6067. stream.lineEnd();
  6068. lambda0 = phi0 = NaN;
  6069. },
  6070. clean: function() {
  6071. return 2 - clean; // if intersections, rejoin first and last segments
  6072. }
  6073. };
  6074. }
  6075. function clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {
  6076. var cosPhi0,
  6077. cosPhi1,
  6078. sinLambda0Lambda1 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda0 - lambda1);
  6079. return Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(sinLambda0Lambda1) > _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]
  6080. ? Object(_math__WEBPACK_IMPORTED_MODULE_1__["atan"])((Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi0) * (cosPhi1 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi1)) * Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda1)
  6081. - Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi1) * (cosPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi0)) * Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda0))
  6082. / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))
  6083. : (phi0 + phi1) / 2;
  6084. }
  6085. function clipAntimeridianInterpolate(from, to, direction, stream) {
  6086. var phi;
  6087. if (from == null) {
  6088. phi = direction * _math__WEBPACK_IMPORTED_MODULE_1__["halfPi"];
  6089. stream.point(-_math__WEBPACK_IMPORTED_MODULE_1__["pi"], phi);
  6090. stream.point(0, phi);
  6091. stream.point(_math__WEBPACK_IMPORTED_MODULE_1__["pi"], phi);
  6092. stream.point(_math__WEBPACK_IMPORTED_MODULE_1__["pi"], 0);
  6093. stream.point(_math__WEBPACK_IMPORTED_MODULE_1__["pi"], -phi);
  6094. stream.point(0, -phi);
  6095. stream.point(-_math__WEBPACK_IMPORTED_MODULE_1__["pi"], -phi);
  6096. stream.point(-_math__WEBPACK_IMPORTED_MODULE_1__["pi"], 0);
  6097. stream.point(-_math__WEBPACK_IMPORTED_MODULE_1__["pi"], phi);
  6098. } else if (Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(from[0] - to[0]) > _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) {
  6099. var lambda = from[0] < to[0] ? _math__WEBPACK_IMPORTED_MODULE_1__["pi"] : -_math__WEBPACK_IMPORTED_MODULE_1__["pi"];
  6100. phi = direction * lambda / 2;
  6101. stream.point(-lambda, phi);
  6102. stream.point(0, phi);
  6103. stream.point(lambda, phi);
  6104. } else {
  6105. stream.point(to[0], to[1]);
  6106. }
  6107. }
  6108. /***/ }),
  6109. /***/ "./node_modules/d3-geo/src/clip/buffer.js":
  6110. /*!************************************************!*\
  6111. !*** ./node_modules/d3-geo/src/clip/buffer.js ***!
  6112. \************************************************/
  6113. /*! exports provided: default */
  6114. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6115. "use strict";
  6116. __webpack_require__.r(__webpack_exports__);
  6117. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-geo/src/noop.js");
  6118. /* harmony default export */ __webpack_exports__["default"] = (function() {
  6119. var lines = [],
  6120. line;
  6121. return {
  6122. point: function(x, y) {
  6123. line.push([x, y]);
  6124. },
  6125. lineStart: function() {
  6126. lines.push(line = []);
  6127. },
  6128. lineEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  6129. rejoin: function() {
  6130. if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
  6131. },
  6132. result: function() {
  6133. var result = lines;
  6134. lines = [];
  6135. line = null;
  6136. return result;
  6137. }
  6138. };
  6139. });
  6140. /***/ }),
  6141. /***/ "./node_modules/d3-geo/src/clip/circle.js":
  6142. /*!************************************************!*\
  6143. !*** ./node_modules/d3-geo/src/clip/circle.js ***!
  6144. \************************************************/
  6145. /*! exports provided: default */
  6146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6147. "use strict";
  6148. __webpack_require__.r(__webpack_exports__);
  6149. /* harmony import */ var _cartesian__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cartesian */ "./node_modules/d3-geo/src/cartesian.js");
  6150. /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../circle */ "./node_modules/d3-geo/src/circle.js");
  6151. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  6152. /* harmony import */ var _pointEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../pointEqual */ "./node_modules/d3-geo/src/pointEqual.js");
  6153. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/clip/index.js");
  6154. /* harmony default export */ __webpack_exports__["default"] = (function(radius) {
  6155. var cr = Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(radius),
  6156. delta = 6 * _math__WEBPACK_IMPORTED_MODULE_2__["radians"],
  6157. smallRadius = cr > 0,
  6158. notHemisphere = Object(_math__WEBPACK_IMPORTED_MODULE_2__["abs"])(cr) > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]; // TODO optimise for this common case
  6159. function interpolate(from, to, direction, stream) {
  6160. Object(_circle__WEBPACK_IMPORTED_MODULE_1__["circleStream"])(stream, radius, delta, direction, from, to);
  6161. }
  6162. function visible(lambda, phi) {
  6163. return Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(lambda) * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(phi) > cr;
  6164. }
  6165. // Takes a line and cuts into visible segments. Return values used for polygon
  6166. // clipping: 0 - there were intersections or the line was empty; 1 - no
  6167. // intersections 2 - there were intersections, and the first and last segments
  6168. // should be rejoined.
  6169. function clipLine(stream) {
  6170. var point0, // previous point
  6171. c0, // code for previous point
  6172. v0, // visibility of previous point
  6173. v00, // visibility of first point
  6174. clean; // no intersections
  6175. return {
  6176. lineStart: function() {
  6177. v00 = v0 = false;
  6178. clean = 1;
  6179. },
  6180. point: function(lambda, phi) {
  6181. var point1 = [lambda, phi],
  6182. point2,
  6183. v = visible(lambda, phi),
  6184. c = smallRadius
  6185. ? v ? 0 : code(lambda, phi)
  6186. : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__["pi"] : -_math__WEBPACK_IMPORTED_MODULE_2__["pi"]), phi) : 0;
  6187. if (!point0 && (v00 = v0 = v)) stream.lineStart();
  6188. // Handle degeneracies.
  6189. // TODO ignore if not clipping polygons.
  6190. if (v !== v0) {
  6191. point2 = intersect(point0, point1);
  6192. if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__["default"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__["default"])(point1, point2)) {
  6193. point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  6194. point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  6195. v = visible(point1[0], point1[1]);
  6196. }
  6197. }
  6198. if (v !== v0) {
  6199. clean = 0;
  6200. if (v) {
  6201. // outside going in
  6202. stream.lineStart();
  6203. point2 = intersect(point1, point0);
  6204. stream.point(point2[0], point2[1]);
  6205. } else {
  6206. // inside going out
  6207. point2 = intersect(point0, point1);
  6208. stream.point(point2[0], point2[1]);
  6209. stream.lineEnd();
  6210. }
  6211. point0 = point2;
  6212. } else if (notHemisphere && point0 && smallRadius ^ v) {
  6213. var t;
  6214. // If the codes for two points are different, or are both zero,
  6215. // and there this segment intersects with the small circle.
  6216. if (!(c & c0) && (t = intersect(point1, point0, true))) {
  6217. clean = 0;
  6218. if (smallRadius) {
  6219. stream.lineStart();
  6220. stream.point(t[0][0], t[0][1]);
  6221. stream.point(t[1][0], t[1][1]);
  6222. stream.lineEnd();
  6223. } else {
  6224. stream.point(t[1][0], t[1][1]);
  6225. stream.lineEnd();
  6226. stream.lineStart();
  6227. stream.point(t[0][0], t[0][1]);
  6228. }
  6229. }
  6230. }
  6231. if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__["default"])(point0, point1))) {
  6232. stream.point(point1[0], point1[1]);
  6233. }
  6234. point0 = point1, v0 = v, c0 = c;
  6235. },
  6236. lineEnd: function() {
  6237. if (v0) stream.lineEnd();
  6238. point0 = null;
  6239. },
  6240. // Rejoin first and last segments if there were intersections and the first
  6241. // and last points were visible.
  6242. clean: function() {
  6243. return clean | ((v00 && v0) << 1);
  6244. }
  6245. };
  6246. }
  6247. // Intersects the great circle between a and b with the clip circle.
  6248. function intersect(a, b, two) {
  6249. var pa = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesian"])(a),
  6250. pb = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesian"])(b);
  6251. // We have two planes, n1.p = d1 and n2.p = d2.
  6252. // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).
  6253. var n1 = [1, 0, 0], // normal
  6254. n2 = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianCross"])(pa, pb),
  6255. n2n2 = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(n2, n2),
  6256. n1n2 = n2[0], // cartesianDot(n1, n2),
  6257. determinant = n2n2 - n1n2 * n1n2;
  6258. // Two polar points.
  6259. if (!determinant) return !two && a;
  6260. var c1 = cr * n2n2 / determinant,
  6261. c2 = -cr * n1n2 / determinant,
  6262. n1xn2 = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianCross"])(n1, n2),
  6263. A = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(n1, c1),
  6264. B = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(n2, c2);
  6265. Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianAddInPlace"])(A, B);
  6266. // Solve |p(t)|^2 = 1.
  6267. var u = n1xn2,
  6268. w = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(A, u),
  6269. uu = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(u, u),
  6270. t2 = w * w - uu * (Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(A, A) - 1);
  6271. if (t2 < 0) return;
  6272. var t = Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(t2),
  6273. q = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(u, (-w - t) / uu);
  6274. Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianAddInPlace"])(q, A);
  6275. q = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["spherical"])(q);
  6276. if (!two) return q;
  6277. // Two intersection points.
  6278. var lambda0 = a[0],
  6279. lambda1 = b[0],
  6280. phi0 = a[1],
  6281. phi1 = b[1],
  6282. z;
  6283. if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;
  6284. var delta = lambda1 - lambda0,
  6285. polar = Object(_math__WEBPACK_IMPORTED_MODULE_2__["abs"])(delta - _math__WEBPACK_IMPORTED_MODULE_2__["pi"]) < _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"],
  6286. meridian = polar || delta < _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  6287. if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;
  6288. // Check that the first point is between a and b.
  6289. if (meridian
  6290. ? polar
  6291. ? phi0 + phi1 > 0 ^ q[1] < (Object(_math__WEBPACK_IMPORTED_MODULE_2__["abs"])(q[0] - lambda0) < _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"] ? phi0 : phi1)
  6292. : phi0 <= q[1] && q[1] <= phi1
  6293. : delta > _math__WEBPACK_IMPORTED_MODULE_2__["pi"] ^ (lambda0 <= q[0] && q[0] <= lambda1)) {
  6294. var q1 = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(u, (-w + t) / uu);
  6295. Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesianAddInPlace"])(q1, A);
  6296. return [q, Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["spherical"])(q1)];
  6297. }
  6298. }
  6299. // Generates a 4-bit vector representing the location of a point relative to
  6300. // the small circle's bounding box.
  6301. function code(lambda, phi) {
  6302. var r = smallRadius ? radius : _math__WEBPACK_IMPORTED_MODULE_2__["pi"] - radius,
  6303. code = 0;
  6304. if (lambda < -r) code |= 1; // left
  6305. else if (lambda > r) code |= 2; // right
  6306. if (phi < -r) code |= 4; // below
  6307. else if (phi > r) code |= 8; // above
  6308. return code;
  6309. }
  6310. return Object(_index__WEBPACK_IMPORTED_MODULE_4__["default"])(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-_math__WEBPACK_IMPORTED_MODULE_2__["pi"], radius - _math__WEBPACK_IMPORTED_MODULE_2__["pi"]]);
  6311. });
  6312. /***/ }),
  6313. /***/ "./node_modules/d3-geo/src/clip/extent.js":
  6314. /*!************************************************!*\
  6315. !*** ./node_modules/d3-geo/src/clip/extent.js ***!
  6316. \************************************************/
  6317. /*! exports provided: default */
  6318. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6319. "use strict";
  6320. __webpack_require__.r(__webpack_exports__);
  6321. /* harmony import */ var _rectangle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rectangle */ "./node_modules/d3-geo/src/clip/rectangle.js");
  6322. /* harmony default export */ __webpack_exports__["default"] = (function() {
  6323. var x0 = 0,
  6324. y0 = 0,
  6325. x1 = 960,
  6326. y1 = 500,
  6327. cache,
  6328. cacheStream,
  6329. clip;
  6330. return clip = {
  6331. stream: function(stream) {
  6332. return cache && cacheStream === stream ? cache : cache = Object(_rectangle__WEBPACK_IMPORTED_MODULE_0__["default"])(x0, y0, x1, y1)(cacheStream = stream);
  6333. },
  6334. extent: function(_) {
  6335. return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];
  6336. }
  6337. };
  6338. });
  6339. /***/ }),
  6340. /***/ "./node_modules/d3-geo/src/clip/index.js":
  6341. /*!***********************************************!*\
  6342. !*** ./node_modules/d3-geo/src/clip/index.js ***!
  6343. \***********************************************/
  6344. /*! exports provided: default */
  6345. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6346. "use strict";
  6347. __webpack_require__.r(__webpack_exports__);
  6348. /* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./buffer */ "./node_modules/d3-geo/src/clip/buffer.js");
  6349. /* harmony import */ var _rejoin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rejoin */ "./node_modules/d3-geo/src/clip/rejoin.js");
  6350. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  6351. /* harmony import */ var _polygonContains__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../polygonContains */ "./node_modules/d3-geo/src/polygonContains.js");
  6352. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  6353. /* harmony default export */ __webpack_exports__["default"] = (function(pointVisible, clipLine, interpolate, start) {
  6354. return function(sink) {
  6355. var line = clipLine(sink),
  6356. ringBuffer = Object(_buffer__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  6357. ringSink = clipLine(ringBuffer),
  6358. polygonStarted = false,
  6359. polygon,
  6360. segments,
  6361. ring;
  6362. var clip = {
  6363. point: point,
  6364. lineStart: lineStart,
  6365. lineEnd: lineEnd,
  6366. polygonStart: function() {
  6367. clip.point = pointRing;
  6368. clip.lineStart = ringStart;
  6369. clip.lineEnd = ringEnd;
  6370. segments = [];
  6371. polygon = [];
  6372. },
  6373. polygonEnd: function() {
  6374. clip.point = point;
  6375. clip.lineStart = lineStart;
  6376. clip.lineEnd = lineEnd;
  6377. segments = Object(d3_array__WEBPACK_IMPORTED_MODULE_4__["merge"])(segments);
  6378. var startInside = Object(_polygonContains__WEBPACK_IMPORTED_MODULE_3__["default"])(polygon, start);
  6379. if (segments.length) {
  6380. if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
  6381. Object(_rejoin__WEBPACK_IMPORTED_MODULE_1__["default"])(segments, compareIntersection, startInside, interpolate, sink);
  6382. } else if (startInside) {
  6383. if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
  6384. sink.lineStart();
  6385. interpolate(null, null, 1, sink);
  6386. sink.lineEnd();
  6387. }
  6388. if (polygonStarted) sink.polygonEnd(), polygonStarted = false;
  6389. segments = polygon = null;
  6390. },
  6391. sphere: function() {
  6392. sink.polygonStart();
  6393. sink.lineStart();
  6394. interpolate(null, null, 1, sink);
  6395. sink.lineEnd();
  6396. sink.polygonEnd();
  6397. }
  6398. };
  6399. function point(lambda, phi) {
  6400. if (pointVisible(lambda, phi)) sink.point(lambda, phi);
  6401. }
  6402. function pointLine(lambda, phi) {
  6403. line.point(lambda, phi);
  6404. }
  6405. function lineStart() {
  6406. clip.point = pointLine;
  6407. line.lineStart();
  6408. }
  6409. function lineEnd() {
  6410. clip.point = point;
  6411. line.lineEnd();
  6412. }
  6413. function pointRing(lambda, phi) {
  6414. ring.push([lambda, phi]);
  6415. ringSink.point(lambda, phi);
  6416. }
  6417. function ringStart() {
  6418. ringSink.lineStart();
  6419. ring = [];
  6420. }
  6421. function ringEnd() {
  6422. pointRing(ring[0][0], ring[0][1]);
  6423. ringSink.lineEnd();
  6424. var clean = ringSink.clean(),
  6425. ringSegments = ringBuffer.result(),
  6426. i, n = ringSegments.length, m,
  6427. segment,
  6428. point;
  6429. ring.pop();
  6430. polygon.push(ring);
  6431. ring = null;
  6432. if (!n) return;
  6433. // No intersections.
  6434. if (clean & 1) {
  6435. segment = ringSegments[0];
  6436. if ((m = segment.length - 1) > 0) {
  6437. if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
  6438. sink.lineStart();
  6439. for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);
  6440. sink.lineEnd();
  6441. }
  6442. return;
  6443. }
  6444. // Rejoin connected segments.
  6445. // TODO reuse ringBuffer.rejoin()?
  6446. if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
  6447. segments.push(ringSegments.filter(validSegment));
  6448. }
  6449. return clip;
  6450. };
  6451. });
  6452. function validSegment(segment) {
  6453. return segment.length > 1;
  6454. }
  6455. // Intersections are sorted along the clip edge. For both antimeridian cutting
  6456. // and circle clipping, the same comparison is used.
  6457. function compareIntersection(a, b) {
  6458. return ((a = a.x)[0] < 0 ? a[1] - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"] : _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - a[1])
  6459. - ((b = b.x)[0] < 0 ? b[1] - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"] : _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - b[1]);
  6460. }
  6461. /***/ }),
  6462. /***/ "./node_modules/d3-geo/src/clip/line.js":
  6463. /*!**********************************************!*\
  6464. !*** ./node_modules/d3-geo/src/clip/line.js ***!
  6465. \**********************************************/
  6466. /*! exports provided: default */
  6467. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6468. "use strict";
  6469. __webpack_require__.r(__webpack_exports__);
  6470. /* harmony default export */ __webpack_exports__["default"] = (function(a, b, x0, y0, x1, y1) {
  6471. var ax = a[0],
  6472. ay = a[1],
  6473. bx = b[0],
  6474. by = b[1],
  6475. t0 = 0,
  6476. t1 = 1,
  6477. dx = bx - ax,
  6478. dy = by - ay,
  6479. r;
  6480. r = x0 - ax;
  6481. if (!dx && r > 0) return;
  6482. r /= dx;
  6483. if (dx < 0) {
  6484. if (r < t0) return;
  6485. if (r < t1) t1 = r;
  6486. } else if (dx > 0) {
  6487. if (r > t1) return;
  6488. if (r > t0) t0 = r;
  6489. }
  6490. r = x1 - ax;
  6491. if (!dx && r < 0) return;
  6492. r /= dx;
  6493. if (dx < 0) {
  6494. if (r > t1) return;
  6495. if (r > t0) t0 = r;
  6496. } else if (dx > 0) {
  6497. if (r < t0) return;
  6498. if (r < t1) t1 = r;
  6499. }
  6500. r = y0 - ay;
  6501. if (!dy && r > 0) return;
  6502. r /= dy;
  6503. if (dy < 0) {
  6504. if (r < t0) return;
  6505. if (r < t1) t1 = r;
  6506. } else if (dy > 0) {
  6507. if (r > t1) return;
  6508. if (r > t0) t0 = r;
  6509. }
  6510. r = y1 - ay;
  6511. if (!dy && r < 0) return;
  6512. r /= dy;
  6513. if (dy < 0) {
  6514. if (r > t1) return;
  6515. if (r > t0) t0 = r;
  6516. } else if (dy > 0) {
  6517. if (r < t0) return;
  6518. if (r < t1) t1 = r;
  6519. }
  6520. if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;
  6521. if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;
  6522. return true;
  6523. });
  6524. /***/ }),
  6525. /***/ "./node_modules/d3-geo/src/clip/rectangle.js":
  6526. /*!***************************************************!*\
  6527. !*** ./node_modules/d3-geo/src/clip/rectangle.js ***!
  6528. \***************************************************/
  6529. /*! exports provided: default */
  6530. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6531. "use strict";
  6532. __webpack_require__.r(__webpack_exports__);
  6533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return clipRectangle; });
  6534. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  6535. /* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./buffer */ "./node_modules/d3-geo/src/clip/buffer.js");
  6536. /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "./node_modules/d3-geo/src/clip/line.js");
  6537. /* harmony import */ var _rejoin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rejoin */ "./node_modules/d3-geo/src/clip/rejoin.js");
  6538. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  6539. var clipMax = 1e9, clipMin = -clipMax;
  6540. // TODO Use d3-polygon’s polygonContains here for the ring check?
  6541. // TODO Eliminate duplicate buffering in clipBuffer and polygon.push?
  6542. function clipRectangle(x0, y0, x1, y1) {
  6543. function visible(x, y) {
  6544. return x0 <= x && x <= x1 && y0 <= y && y <= y1;
  6545. }
  6546. function interpolate(from, to, direction, stream) {
  6547. var a = 0, a1 = 0;
  6548. if (from == null
  6549. || (a = corner(from, direction)) !== (a1 = corner(to, direction))
  6550. || comparePoint(from, to) < 0 ^ direction > 0) {
  6551. do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
  6552. while ((a = (a + direction + 4) % 4) !== a1);
  6553. } else {
  6554. stream.point(to[0], to[1]);
  6555. }
  6556. }
  6557. function corner(p, direction) {
  6558. return Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(p[0] - x0) < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"] ? direction > 0 ? 0 : 3
  6559. : Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(p[0] - x1) < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"] ? direction > 0 ? 2 : 1
  6560. : Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(p[1] - y0) < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"] ? direction > 0 ? 1 : 0
  6561. : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon
  6562. }
  6563. function compareIntersection(a, b) {
  6564. return comparePoint(a.x, b.x);
  6565. }
  6566. function comparePoint(a, b) {
  6567. var ca = corner(a, 1),
  6568. cb = corner(b, 1);
  6569. return ca !== cb ? ca - cb
  6570. : ca === 0 ? b[1] - a[1]
  6571. : ca === 1 ? a[0] - b[0]
  6572. : ca === 2 ? a[1] - b[1]
  6573. : b[0] - a[0];
  6574. }
  6575. return function(stream) {
  6576. var activeStream = stream,
  6577. bufferStream = Object(_buffer__WEBPACK_IMPORTED_MODULE_1__["default"])(),
  6578. segments,
  6579. polygon,
  6580. ring,
  6581. x__, y__, v__, // first point
  6582. x_, y_, v_, // previous point
  6583. first,
  6584. clean;
  6585. var clipStream = {
  6586. point: point,
  6587. lineStart: lineStart,
  6588. lineEnd: lineEnd,
  6589. polygonStart: polygonStart,
  6590. polygonEnd: polygonEnd
  6591. };
  6592. function point(x, y) {
  6593. if (visible(x, y)) activeStream.point(x, y);
  6594. }
  6595. function polygonInside() {
  6596. var winding = 0;
  6597. for (var i = 0, n = polygon.length; i < n; ++i) {
  6598. for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {
  6599. a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];
  6600. if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }
  6601. else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }
  6602. }
  6603. }
  6604. return winding;
  6605. }
  6606. // Buffer geometry within a polygon and then clip it en masse.
  6607. function polygonStart() {
  6608. activeStream = bufferStream, segments = [], polygon = [], clean = true;
  6609. }
  6610. function polygonEnd() {
  6611. var startInside = polygonInside(),
  6612. cleanInside = clean && startInside,
  6613. visible = (segments = Object(d3_array__WEBPACK_IMPORTED_MODULE_4__["merge"])(segments)).length;
  6614. if (cleanInside || visible) {
  6615. stream.polygonStart();
  6616. if (cleanInside) {
  6617. stream.lineStart();
  6618. interpolate(null, null, 1, stream);
  6619. stream.lineEnd();
  6620. }
  6621. if (visible) {
  6622. Object(_rejoin__WEBPACK_IMPORTED_MODULE_3__["default"])(segments, compareIntersection, startInside, interpolate, stream);
  6623. }
  6624. stream.polygonEnd();
  6625. }
  6626. activeStream = stream, segments = polygon = ring = null;
  6627. }
  6628. function lineStart() {
  6629. clipStream.point = linePoint;
  6630. if (polygon) polygon.push(ring = []);
  6631. first = true;
  6632. v_ = false;
  6633. x_ = y_ = NaN;
  6634. }
  6635. // TODO rather than special-case polygons, simply handle them separately.
  6636. // Ideally, coincident intersection points should be jittered to avoid
  6637. // clipping issues.
  6638. function lineEnd() {
  6639. if (segments) {
  6640. linePoint(x__, y__);
  6641. if (v__ && v_) bufferStream.rejoin();
  6642. segments.push(bufferStream.result());
  6643. }
  6644. clipStream.point = point;
  6645. if (v_) activeStream.lineEnd();
  6646. }
  6647. function linePoint(x, y) {
  6648. var v = visible(x, y);
  6649. if (polygon) ring.push([x, y]);
  6650. if (first) {
  6651. x__ = x, y__ = y, v__ = v;
  6652. first = false;
  6653. if (v) {
  6654. activeStream.lineStart();
  6655. activeStream.point(x, y);
  6656. }
  6657. } else {
  6658. if (v && v_) activeStream.point(x, y);
  6659. else {
  6660. var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],
  6661. b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];
  6662. if (Object(_line__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b, x0, y0, x1, y1)) {
  6663. if (!v_) {
  6664. activeStream.lineStart();
  6665. activeStream.point(a[0], a[1]);
  6666. }
  6667. activeStream.point(b[0], b[1]);
  6668. if (!v) activeStream.lineEnd();
  6669. clean = false;
  6670. } else if (v) {
  6671. activeStream.lineStart();
  6672. activeStream.point(x, y);
  6673. clean = false;
  6674. }
  6675. }
  6676. }
  6677. x_ = x, y_ = y, v_ = v;
  6678. }
  6679. return clipStream;
  6680. };
  6681. }
  6682. /***/ }),
  6683. /***/ "./node_modules/d3-geo/src/clip/rejoin.js":
  6684. /*!************************************************!*\
  6685. !*** ./node_modules/d3-geo/src/clip/rejoin.js ***!
  6686. \************************************************/
  6687. /*! exports provided: default */
  6688. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6689. "use strict";
  6690. __webpack_require__.r(__webpack_exports__);
  6691. /* harmony import */ var _pointEqual__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../pointEqual */ "./node_modules/d3-geo/src/pointEqual.js");
  6692. function Intersection(point, points, other, entry) {
  6693. this.x = point;
  6694. this.z = points;
  6695. this.o = other; // another intersection
  6696. this.e = entry; // is an entry?
  6697. this.v = false; // visited
  6698. this.n = this.p = null; // next & previous
  6699. }
  6700. // A generalized polygon clipping algorithm: given a polygon that has been cut
  6701. // into its visible line segments, and rejoins the segments by interpolating
  6702. // along the clip edge.
  6703. /* harmony default export */ __webpack_exports__["default"] = (function(segments, compareIntersection, startInside, interpolate, stream) {
  6704. var subject = [],
  6705. clip = [],
  6706. i,
  6707. n;
  6708. segments.forEach(function(segment) {
  6709. if ((n = segment.length - 1) <= 0) return;
  6710. var n, p0 = segment[0], p1 = segment[n], x;
  6711. // If the first and last points of a segment are coincident, then treat as a
  6712. // closed ring. TODO if all rings are closed, then the winding order of the
  6713. // exterior ring should be checked.
  6714. if (Object(_pointEqual__WEBPACK_IMPORTED_MODULE_0__["default"])(p0, p1)) {
  6715. stream.lineStart();
  6716. for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);
  6717. stream.lineEnd();
  6718. return;
  6719. }
  6720. subject.push(x = new Intersection(p0, segment, null, true));
  6721. clip.push(x.o = new Intersection(p0, null, x, false));
  6722. subject.push(x = new Intersection(p1, segment, null, false));
  6723. clip.push(x.o = new Intersection(p1, null, x, true));
  6724. });
  6725. if (!subject.length) return;
  6726. clip.sort(compareIntersection);
  6727. link(subject);
  6728. link(clip);
  6729. for (i = 0, n = clip.length; i < n; ++i) {
  6730. clip[i].e = startInside = !startInside;
  6731. }
  6732. var start = subject[0],
  6733. points,
  6734. point;
  6735. while (1) {
  6736. // Find first unvisited intersection.
  6737. var current = start,
  6738. isSubject = true;
  6739. while (current.v) if ((current = current.n) === start) return;
  6740. points = current.z;
  6741. stream.lineStart();
  6742. do {
  6743. current.v = current.o.v = true;
  6744. if (current.e) {
  6745. if (isSubject) {
  6746. for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);
  6747. } else {
  6748. interpolate(current.x, current.n.x, 1, stream);
  6749. }
  6750. current = current.n;
  6751. } else {
  6752. if (isSubject) {
  6753. points = current.p.z;
  6754. for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);
  6755. } else {
  6756. interpolate(current.x, current.p.x, -1, stream);
  6757. }
  6758. current = current.p;
  6759. }
  6760. current = current.o;
  6761. points = current.z;
  6762. isSubject = !isSubject;
  6763. } while (!current.v);
  6764. stream.lineEnd();
  6765. }
  6766. });
  6767. function link(array) {
  6768. if (!(n = array.length)) return;
  6769. var n,
  6770. i = 0,
  6771. a = array[0],
  6772. b;
  6773. while (++i < n) {
  6774. a.n = b = array[i];
  6775. b.p = a;
  6776. a = b;
  6777. }
  6778. a.n = b = array[0];
  6779. b.p = a;
  6780. }
  6781. /***/ }),
  6782. /***/ "./node_modules/d3-geo/src/compose.js":
  6783. /*!********************************************!*\
  6784. !*** ./node_modules/d3-geo/src/compose.js ***!
  6785. \********************************************/
  6786. /*! exports provided: default */
  6787. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6788. "use strict";
  6789. __webpack_require__.r(__webpack_exports__);
  6790. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  6791. function compose(x, y) {
  6792. return x = a(x, y), b(x[0], x[1]);
  6793. }
  6794. if (a.invert && b.invert) compose.invert = function(x, y) {
  6795. return x = b.invert(x, y), x && a.invert(x[0], x[1]);
  6796. };
  6797. return compose;
  6798. });
  6799. /***/ }),
  6800. /***/ "./node_modules/d3-geo/src/constant.js":
  6801. /*!*********************************************!*\
  6802. !*** ./node_modules/d3-geo/src/constant.js ***!
  6803. \*********************************************/
  6804. /*! exports provided: default */
  6805. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6806. "use strict";
  6807. __webpack_require__.r(__webpack_exports__);
  6808. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  6809. return function() {
  6810. return x;
  6811. };
  6812. });
  6813. /***/ }),
  6814. /***/ "./node_modules/d3-geo/src/contains.js":
  6815. /*!*********************************************!*\
  6816. !*** ./node_modules/d3-geo/src/contains.js ***!
  6817. \*********************************************/
  6818. /*! exports provided: default */
  6819. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6820. "use strict";
  6821. __webpack_require__.r(__webpack_exports__);
  6822. /* harmony import */ var _polygonContains__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./polygonContains */ "./node_modules/d3-geo/src/polygonContains.js");
  6823. /* harmony import */ var _distance__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./distance */ "./node_modules/d3-geo/src/distance.js");
  6824. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  6825. var containsObjectType = {
  6826. Feature: function(object, point) {
  6827. return containsGeometry(object.geometry, point);
  6828. },
  6829. FeatureCollection: function(object, point) {
  6830. var features = object.features, i = -1, n = features.length;
  6831. while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;
  6832. return false;
  6833. }
  6834. };
  6835. var containsGeometryType = {
  6836. Sphere: function() {
  6837. return true;
  6838. },
  6839. Point: function(object, point) {
  6840. return containsPoint(object.coordinates, point);
  6841. },
  6842. MultiPoint: function(object, point) {
  6843. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  6844. while (++i < n) if (containsPoint(coordinates[i], point)) return true;
  6845. return false;
  6846. },
  6847. LineString: function(object, point) {
  6848. return containsLine(object.coordinates, point);
  6849. },
  6850. MultiLineString: function(object, point) {
  6851. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  6852. while (++i < n) if (containsLine(coordinates[i], point)) return true;
  6853. return false;
  6854. },
  6855. Polygon: function(object, point) {
  6856. return containsPolygon(object.coordinates, point);
  6857. },
  6858. MultiPolygon: function(object, point) {
  6859. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  6860. while (++i < n) if (containsPolygon(coordinates[i], point)) return true;
  6861. return false;
  6862. },
  6863. GeometryCollection: function(object, point) {
  6864. var geometries = object.geometries, i = -1, n = geometries.length;
  6865. while (++i < n) if (containsGeometry(geometries[i], point)) return true;
  6866. return false;
  6867. }
  6868. };
  6869. function containsGeometry(geometry, point) {
  6870. return geometry && containsGeometryType.hasOwnProperty(geometry.type)
  6871. ? containsGeometryType[geometry.type](geometry, point)
  6872. : false;
  6873. }
  6874. function containsPoint(coordinates, point) {
  6875. return Object(_distance__WEBPACK_IMPORTED_MODULE_1__["default"])(coordinates, point) === 0;
  6876. }
  6877. function containsLine(coordinates, point) {
  6878. var ab = Object(_distance__WEBPACK_IMPORTED_MODULE_1__["default"])(coordinates[0], coordinates[1]),
  6879. ao = Object(_distance__WEBPACK_IMPORTED_MODULE_1__["default"])(coordinates[0], point),
  6880. ob = Object(_distance__WEBPACK_IMPORTED_MODULE_1__["default"])(point, coordinates[1]);
  6881. return ao + ob <= ab + _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  6882. }
  6883. function containsPolygon(coordinates, point) {
  6884. return !!Object(_polygonContains__WEBPACK_IMPORTED_MODULE_0__["default"])(coordinates.map(ringRadians), pointRadians(point));
  6885. }
  6886. function ringRadians(ring) {
  6887. return ring = ring.map(pointRadians), ring.pop(), ring;
  6888. }
  6889. function pointRadians(point) {
  6890. return [point[0] * _math__WEBPACK_IMPORTED_MODULE_2__["radians"], point[1] * _math__WEBPACK_IMPORTED_MODULE_2__["radians"]];
  6891. }
  6892. /* harmony default export */ __webpack_exports__["default"] = (function(object, point) {
  6893. return (object && containsObjectType.hasOwnProperty(object.type)
  6894. ? containsObjectType[object.type]
  6895. : containsGeometry)(object, point);
  6896. });
  6897. /***/ }),
  6898. /***/ "./node_modules/d3-geo/src/distance.js":
  6899. /*!*********************************************!*\
  6900. !*** ./node_modules/d3-geo/src/distance.js ***!
  6901. \*********************************************/
  6902. /*! exports provided: default */
  6903. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6904. "use strict";
  6905. __webpack_require__.r(__webpack_exports__);
  6906. /* harmony import */ var _length__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./length */ "./node_modules/d3-geo/src/length.js");
  6907. var coordinates = [null, null],
  6908. object = {type: "LineString", coordinates: coordinates};
  6909. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  6910. coordinates[0] = a;
  6911. coordinates[1] = b;
  6912. return Object(_length__WEBPACK_IMPORTED_MODULE_0__["default"])(object);
  6913. });
  6914. /***/ }),
  6915. /***/ "./node_modules/d3-geo/src/graticule.js":
  6916. /*!**********************************************!*\
  6917. !*** ./node_modules/d3-geo/src/graticule.js ***!
  6918. \**********************************************/
  6919. /*! exports provided: default, graticule10 */
  6920. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6921. "use strict";
  6922. __webpack_require__.r(__webpack_exports__);
  6923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return graticule; });
  6924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "graticule10", function() { return graticule10; });
  6925. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  6926. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  6927. function graticuleX(y0, y1, dy) {
  6928. var y = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(y0, y1 - _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"], dy).concat(y1);
  6929. return function(x) { return y.map(function(y) { return [x, y]; }); };
  6930. }
  6931. function graticuleY(x0, x1, dx) {
  6932. var x = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(x0, x1 - _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"], dx).concat(x1);
  6933. return function(y) { return x.map(function(x) { return [x, y]; }); };
  6934. }
  6935. function graticule() {
  6936. var x1, x0, X1, X0,
  6937. y1, y0, Y1, Y0,
  6938. dx = 10, dy = dx, DX = 90, DY = 360,
  6939. x, y, X, Y,
  6940. precision = 2.5;
  6941. function graticule() {
  6942. return {type: "MultiLineString", coordinates: lines()};
  6943. }
  6944. function lines() {
  6945. return Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math__WEBPACK_IMPORTED_MODULE_1__["ceil"])(X0 / DX) * DX, X1, DX).map(X)
  6946. .concat(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math__WEBPACK_IMPORTED_MODULE_1__["ceil"])(Y0 / DY) * DY, Y1, DY).map(Y))
  6947. .concat(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math__WEBPACK_IMPORTED_MODULE_1__["ceil"])(x0 / dx) * dx, x1, dx).filter(function(x) { return Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(x % DX) > _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]; }).map(x))
  6948. .concat(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math__WEBPACK_IMPORTED_MODULE_1__["ceil"])(y0 / dy) * dy, y1, dy).filter(function(y) { return Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(y % DY) > _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]; }).map(y));
  6949. }
  6950. graticule.lines = function() {
  6951. return lines().map(function(coordinates) { return {type: "LineString", coordinates: coordinates}; });
  6952. };
  6953. graticule.outline = function() {
  6954. return {
  6955. type: "Polygon",
  6956. coordinates: [
  6957. X(X0).concat(
  6958. Y(Y1).slice(1),
  6959. X(X1).reverse().slice(1),
  6960. Y(Y0).reverse().slice(1))
  6961. ]
  6962. };
  6963. };
  6964. graticule.extent = function(_) {
  6965. if (!arguments.length) return graticule.extentMinor();
  6966. return graticule.extentMajor(_).extentMinor(_);
  6967. };
  6968. graticule.extentMajor = function(_) {
  6969. if (!arguments.length) return [[X0, Y0], [X1, Y1]];
  6970. X0 = +_[0][0], X1 = +_[1][0];
  6971. Y0 = +_[0][1], Y1 = +_[1][1];
  6972. if (X0 > X1) _ = X0, X0 = X1, X1 = _;
  6973. if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;
  6974. return graticule.precision(precision);
  6975. };
  6976. graticule.extentMinor = function(_) {
  6977. if (!arguments.length) return [[x0, y0], [x1, y1]];
  6978. x0 = +_[0][0], x1 = +_[1][0];
  6979. y0 = +_[0][1], y1 = +_[1][1];
  6980. if (x0 > x1) _ = x0, x0 = x1, x1 = _;
  6981. if (y0 > y1) _ = y0, y0 = y1, y1 = _;
  6982. return graticule.precision(precision);
  6983. };
  6984. graticule.step = function(_) {
  6985. if (!arguments.length) return graticule.stepMinor();
  6986. return graticule.stepMajor(_).stepMinor(_);
  6987. };
  6988. graticule.stepMajor = function(_) {
  6989. if (!arguments.length) return [DX, DY];
  6990. DX = +_[0], DY = +_[1];
  6991. return graticule;
  6992. };
  6993. graticule.stepMinor = function(_) {
  6994. if (!arguments.length) return [dx, dy];
  6995. dx = +_[0], dy = +_[1];
  6996. return graticule;
  6997. };
  6998. graticule.precision = function(_) {
  6999. if (!arguments.length) return precision;
  7000. precision = +_;
  7001. x = graticuleX(y0, y1, 90);
  7002. y = graticuleY(x0, x1, precision);
  7003. X = graticuleX(Y0, Y1, 90);
  7004. Y = graticuleY(X0, X1, precision);
  7005. return graticule;
  7006. };
  7007. return graticule
  7008. .extentMajor([[-180, -90 + _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]], [180, 90 - _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]]])
  7009. .extentMinor([[-180, -80 - _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]], [180, 80 + _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"]]]);
  7010. }
  7011. function graticule10() {
  7012. return graticule()();
  7013. }
  7014. /***/ }),
  7015. /***/ "./node_modules/d3-geo/src/identity.js":
  7016. /*!*********************************************!*\
  7017. !*** ./node_modules/d3-geo/src/identity.js ***!
  7018. \*********************************************/
  7019. /*! exports provided: default */
  7020. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7021. "use strict";
  7022. __webpack_require__.r(__webpack_exports__);
  7023. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  7024. return x;
  7025. });
  7026. /***/ }),
  7027. /***/ "./node_modules/d3-geo/src/index.js":
  7028. /*!******************************************!*\
  7029. !*** ./node_modules/d3-geo/src/index.js ***!
  7030. \******************************************/
  7031. /*! exports provided: geoArea, geoBounds, geoCentroid, geoCircle, geoClipAntimeridian, geoClipCircle, geoClipExtent, geoClipRectangle, geoContains, geoDistance, geoGraticule, geoGraticule10, geoInterpolate, geoLength, geoPath, geoAlbers, geoAlbersUsa, geoAzimuthalEqualArea, geoAzimuthalEqualAreaRaw, geoAzimuthalEquidistant, geoAzimuthalEquidistantRaw, geoConicConformal, geoConicConformalRaw, geoConicEqualArea, geoConicEqualAreaRaw, geoConicEquidistant, geoConicEquidistantRaw, geoEqualEarth, geoEqualEarthRaw, geoEquirectangular, geoEquirectangularRaw, geoGnomonic, geoGnomonicRaw, geoIdentity, geoProjection, geoProjectionMutator, geoMercator, geoMercatorRaw, geoNaturalEarth1, geoNaturalEarth1Raw, geoOrthographic, geoOrthographicRaw, geoStereographic, geoStereographicRaw, geoTransverseMercator, geoTransverseMercatorRaw, geoRotation, geoStream, geoTransform */
  7032. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7033. "use strict";
  7034. __webpack_require__.r(__webpack_exports__);
  7035. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./area */ "./node_modules/d3-geo/src/area.js");
  7036. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoArea", function() { return _area__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  7037. /* harmony import */ var _bounds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bounds */ "./node_modules/d3-geo/src/bounds.js");
  7038. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoBounds", function() { return _bounds__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  7039. /* harmony import */ var _centroid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./centroid */ "./node_modules/d3-geo/src/centroid.js");
  7040. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCentroid", function() { return _centroid__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  7041. /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./circle */ "./node_modules/d3-geo/src/circle.js");
  7042. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCircle", function() { return _circle__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  7043. /* harmony import */ var _clip_antimeridian__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./clip/antimeridian */ "./node_modules/d3-geo/src/clip/antimeridian.js");
  7044. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipAntimeridian", function() { return _clip_antimeridian__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  7045. /* harmony import */ var _clip_circle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./clip/circle */ "./node_modules/d3-geo/src/clip/circle.js");
  7046. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipCircle", function() { return _clip_circle__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  7047. /* harmony import */ var _clip_extent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./clip/extent */ "./node_modules/d3-geo/src/clip/extent.js");
  7048. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipExtent", function() { return _clip_extent__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  7049. /* harmony import */ var _clip_rectangle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./clip/rectangle */ "./node_modules/d3-geo/src/clip/rectangle.js");
  7050. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipRectangle", function() { return _clip_rectangle__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  7051. /* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./contains */ "./node_modules/d3-geo/src/contains.js");
  7052. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoContains", function() { return _contains__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  7053. /* harmony import */ var _distance__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./distance */ "./node_modules/d3-geo/src/distance.js");
  7054. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoDistance", function() { return _distance__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  7055. /* harmony import */ var _graticule__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./graticule */ "./node_modules/d3-geo/src/graticule.js");
  7056. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule", function() { return _graticule__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  7057. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule10", function() { return _graticule__WEBPACK_IMPORTED_MODULE_10__["graticule10"]; });
  7058. /* harmony import */ var _interpolate__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./interpolate */ "./node_modules/d3-geo/src/interpolate.js");
  7059. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoInterpolate", function() { return _interpolate__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  7060. /* harmony import */ var _length__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./length */ "./node_modules/d3-geo/src/length.js");
  7061. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoLength", function() { return _length__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  7062. /* harmony import */ var _path_index__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./path/index */ "./node_modules/d3-geo/src/path/index.js");
  7063. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoPath", function() { return _path_index__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  7064. /* harmony import */ var _projection_albers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./projection/albers */ "./node_modules/d3-geo/src/projection/albers.js");
  7065. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbers", function() { return _projection_albers__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  7066. /* harmony import */ var _projection_albersUsa__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./projection/albersUsa */ "./node_modules/d3-geo/src/projection/albersUsa.js");
  7067. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbersUsa", function() { return _projection_albersUsa__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  7068. /* harmony import */ var _projection_azimuthalEqualArea__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./projection/azimuthalEqualArea */ "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js");
  7069. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualArea", function() { return _projection_azimuthalEqualArea__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  7070. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualAreaRaw", function() { return _projection_azimuthalEqualArea__WEBPACK_IMPORTED_MODULE_16__["azimuthalEqualAreaRaw"]; });
  7071. /* harmony import */ var _projection_azimuthalEquidistant__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./projection/azimuthalEquidistant */ "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js");
  7072. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistant", function() { return _projection_azimuthalEquidistant__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  7073. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistantRaw", function() { return _projection_azimuthalEquidistant__WEBPACK_IMPORTED_MODULE_17__["azimuthalEquidistantRaw"]; });
  7074. /* harmony import */ var _projection_conicConformal__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./projection/conicConformal */ "./node_modules/d3-geo/src/projection/conicConformal.js");
  7075. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformal", function() { return _projection_conicConformal__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  7076. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformalRaw", function() { return _projection_conicConformal__WEBPACK_IMPORTED_MODULE_18__["conicConformalRaw"]; });
  7077. /* harmony import */ var _projection_conicEqualArea__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./projection/conicEqualArea */ "./node_modules/d3-geo/src/projection/conicEqualArea.js");
  7078. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualArea", function() { return _projection_conicEqualArea__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  7079. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualAreaRaw", function() { return _projection_conicEqualArea__WEBPACK_IMPORTED_MODULE_19__["conicEqualAreaRaw"]; });
  7080. /* harmony import */ var _projection_conicEquidistant__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./projection/conicEquidistant */ "./node_modules/d3-geo/src/projection/conicEquidistant.js");
  7081. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistant", function() { return _projection_conicEquidistant__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  7082. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistantRaw", function() { return _projection_conicEquidistant__WEBPACK_IMPORTED_MODULE_20__["conicEquidistantRaw"]; });
  7083. /* harmony import */ var _projection_equalEarth__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./projection/equalEarth */ "./node_modules/d3-geo/src/projection/equalEarth.js");
  7084. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarth", function() { return _projection_equalEarth__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  7085. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarthRaw", function() { return _projection_equalEarth__WEBPACK_IMPORTED_MODULE_21__["equalEarthRaw"]; });
  7086. /* harmony import */ var _projection_equirectangular__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./projection/equirectangular */ "./node_modules/d3-geo/src/projection/equirectangular.js");
  7087. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangular", function() { return _projection_equirectangular__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  7088. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangularRaw", function() { return _projection_equirectangular__WEBPACK_IMPORTED_MODULE_22__["equirectangularRaw"]; });
  7089. /* harmony import */ var _projection_gnomonic__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./projection/gnomonic */ "./node_modules/d3-geo/src/projection/gnomonic.js");
  7090. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonic", function() { return _projection_gnomonic__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  7091. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonicRaw", function() { return _projection_gnomonic__WEBPACK_IMPORTED_MODULE_23__["gnomonicRaw"]; });
  7092. /* harmony import */ var _projection_identity__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./projection/identity */ "./node_modules/d3-geo/src/projection/identity.js");
  7093. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoIdentity", function() { return _projection_identity__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  7094. /* harmony import */ var _projection_index__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./projection/index */ "./node_modules/d3-geo/src/projection/index.js");
  7095. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjection", function() { return _projection_index__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  7096. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjectionMutator", function() { return _projection_index__WEBPACK_IMPORTED_MODULE_25__["projectionMutator"]; });
  7097. /* harmony import */ var _projection_mercator__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./projection/mercator */ "./node_modules/d3-geo/src/projection/mercator.js");
  7098. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercator", function() { return _projection_mercator__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  7099. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercatorRaw", function() { return _projection_mercator__WEBPACK_IMPORTED_MODULE_26__["mercatorRaw"]; });
  7100. /* harmony import */ var _projection_naturalEarth1__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./projection/naturalEarth1 */ "./node_modules/d3-geo/src/projection/naturalEarth1.js");
  7101. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1", function() { return _projection_naturalEarth1__WEBPACK_IMPORTED_MODULE_27__["default"]; });
  7102. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1Raw", function() { return _projection_naturalEarth1__WEBPACK_IMPORTED_MODULE_27__["naturalEarth1Raw"]; });
  7103. /* harmony import */ var _projection_orthographic__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./projection/orthographic */ "./node_modules/d3-geo/src/projection/orthographic.js");
  7104. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographic", function() { return _projection_orthographic__WEBPACK_IMPORTED_MODULE_28__["default"]; });
  7105. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographicRaw", function() { return _projection_orthographic__WEBPACK_IMPORTED_MODULE_28__["orthographicRaw"]; });
  7106. /* harmony import */ var _projection_stereographic__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./projection/stereographic */ "./node_modules/d3-geo/src/projection/stereographic.js");
  7107. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographic", function() { return _projection_stereographic__WEBPACK_IMPORTED_MODULE_29__["default"]; });
  7108. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographicRaw", function() { return _projection_stereographic__WEBPACK_IMPORTED_MODULE_29__["stereographicRaw"]; });
  7109. /* harmony import */ var _projection_transverseMercator__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./projection/transverseMercator */ "./node_modules/d3-geo/src/projection/transverseMercator.js");
  7110. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercator", function() { return _projection_transverseMercator__WEBPACK_IMPORTED_MODULE_30__["default"]; });
  7111. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercatorRaw", function() { return _projection_transverseMercator__WEBPACK_IMPORTED_MODULE_30__["transverseMercatorRaw"]; });
  7112. /* harmony import */ var _rotation__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./rotation */ "./node_modules/d3-geo/src/rotation.js");
  7113. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoRotation", function() { return _rotation__WEBPACK_IMPORTED_MODULE_31__["default"]; });
  7114. /* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./stream */ "./node_modules/d3-geo/src/stream.js");
  7115. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStream", function() { return _stream__WEBPACK_IMPORTED_MODULE_32__["default"]; });
  7116. /* harmony import */ var _transform__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./transform */ "./node_modules/d3-geo/src/transform.js");
  7117. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransform", function() { return _transform__WEBPACK_IMPORTED_MODULE_33__["default"]; });
  7118. // DEPRECATED! Use d3.geoIdentity().clipExtent(…).
  7119. /***/ }),
  7120. /***/ "./node_modules/d3-geo/src/interpolate.js":
  7121. /*!************************************************!*\
  7122. !*** ./node_modules/d3-geo/src/interpolate.js ***!
  7123. \************************************************/
  7124. /*! exports provided: default */
  7125. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7126. "use strict";
  7127. __webpack_require__.r(__webpack_exports__);
  7128. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  7129. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  7130. var x0 = a[0] * _math__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7131. y0 = a[1] * _math__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7132. x1 = b[0] * _math__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7133. y1 = b[1] * _math__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7134. cy0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y0),
  7135. sy0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0),
  7136. cy1 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y1),
  7137. sy1 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y1),
  7138. kx0 = cy0 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(x0),
  7139. ky0 = cy0 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(x0),
  7140. kx1 = cy1 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(x1),
  7141. ky1 = cy1 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(x1),
  7142. d = 2 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["haversin"])(y1 - y0) + cy0 * cy1 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["haversin"])(x1 - x0))),
  7143. k = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(d);
  7144. var interpolate = d ? function(t) {
  7145. var B = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(t *= d) / k,
  7146. A = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(d - t) / k,
  7147. x = A * kx0 + B * kx1,
  7148. y = A * ky0 + B * ky1,
  7149. z = A * sy0 + B * sy1;
  7150. return [
  7151. Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(y, x) * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"],
  7152. Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(z, Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + y * y)) * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"]
  7153. ];
  7154. } : function() {
  7155. return [x0 * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"], y0 * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"]];
  7156. };
  7157. interpolate.distance = d;
  7158. return interpolate;
  7159. });
  7160. /***/ }),
  7161. /***/ "./node_modules/d3-geo/src/length.js":
  7162. /*!*******************************************!*\
  7163. !*** ./node_modules/d3-geo/src/length.js ***!
  7164. \*******************************************/
  7165. /*! exports provided: default */
  7166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7167. "use strict";
  7168. __webpack_require__.r(__webpack_exports__);
  7169. /* harmony import */ var _adder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder */ "./node_modules/d3-geo/src/adder.js");
  7170. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  7171. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./noop */ "./node_modules/d3-geo/src/noop.js");
  7172. /* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stream */ "./node_modules/d3-geo/src/stream.js");
  7173. var lengthSum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7174. lambda0,
  7175. sinPhi0,
  7176. cosPhi0;
  7177. var lengthStream = {
  7178. sphere: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7179. point: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7180. lineStart: lengthLineStart,
  7181. lineEnd: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7182. polygonStart: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7183. polygonEnd: _noop__WEBPACK_IMPORTED_MODULE_2__["default"]
  7184. };
  7185. function lengthLineStart() {
  7186. lengthStream.point = lengthPointFirst;
  7187. lengthStream.lineEnd = lengthLineEnd;
  7188. }
  7189. function lengthLineEnd() {
  7190. lengthStream.point = lengthStream.lineEnd = _noop__WEBPACK_IMPORTED_MODULE_2__["default"];
  7191. }
  7192. function lengthPointFirst(lambda, phi) {
  7193. lambda *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"];
  7194. lambda0 = lambda, sinPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi), cosPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi);
  7195. lengthStream.point = lengthPoint;
  7196. }
  7197. function lengthPoint(lambda, phi) {
  7198. lambda *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_1__["radians"];
  7199. var sinPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  7200. cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  7201. delta = Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda - lambda0),
  7202. cosDelta = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(delta),
  7203. sinDelta = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(delta),
  7204. x = cosPhi * sinDelta,
  7205. y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,
  7206. z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;
  7207. lengthSum.add(Object(_math__WEBPACK_IMPORTED_MODULE_1__["atan2"])(Object(_math__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(x * x + y * y), z));
  7208. lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;
  7209. }
  7210. /* harmony default export */ __webpack_exports__["default"] = (function(object) {
  7211. lengthSum.reset();
  7212. Object(_stream__WEBPACK_IMPORTED_MODULE_3__["default"])(object, lengthStream);
  7213. return +lengthSum;
  7214. });
  7215. /***/ }),
  7216. /***/ "./node_modules/d3-geo/src/math.js":
  7217. /*!*****************************************!*\
  7218. !*** ./node_modules/d3-geo/src/math.js ***!
  7219. \*****************************************/
  7220. /*! exports provided: epsilon, epsilon2, pi, halfPi, quarterPi, tau, degrees, radians, abs, atan, atan2, cos, ceil, exp, floor, log, pow, sin, sign, sqrt, tan, acos, asin, haversin */
  7221. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7222. "use strict";
  7223. __webpack_require__.r(__webpack_exports__);
  7224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; });
  7225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon2", function() { return epsilon2; });
  7226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; });
  7227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; });
  7228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quarterPi", function() { return quarterPi; });
  7229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; });
  7230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "degrees", function() { return degrees; });
  7231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "radians", function() { return radians; });
  7232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "abs", function() { return abs; });
  7233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan", function() { return atan; });
  7234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan2", function() { return atan2; });
  7235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; });
  7236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ceil", function() { return ceil; });
  7237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exp", function() { return exp; });
  7238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "floor", function() { return floor; });
  7239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; });
  7240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pow", function() { return pow; });
  7241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; });
  7242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sign", function() { return sign; });
  7243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; });
  7244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tan", function() { return tan; });
  7245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "acos", function() { return acos; });
  7246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asin", function() { return asin; });
  7247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "haversin", function() { return haversin; });
  7248. var epsilon = 1e-6;
  7249. var epsilon2 = 1e-12;
  7250. var pi = Math.PI;
  7251. var halfPi = pi / 2;
  7252. var quarterPi = pi / 4;
  7253. var tau = pi * 2;
  7254. var degrees = 180 / pi;
  7255. var radians = pi / 180;
  7256. var abs = Math.abs;
  7257. var atan = Math.atan;
  7258. var atan2 = Math.atan2;
  7259. var cos = Math.cos;
  7260. var ceil = Math.ceil;
  7261. var exp = Math.exp;
  7262. var floor = Math.floor;
  7263. var log = Math.log;
  7264. var pow = Math.pow;
  7265. var sin = Math.sin;
  7266. var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };
  7267. var sqrt = Math.sqrt;
  7268. var tan = Math.tan;
  7269. function acos(x) {
  7270. return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
  7271. }
  7272. function asin(x) {
  7273. return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);
  7274. }
  7275. function haversin(x) {
  7276. return (x = sin(x / 2)) * x;
  7277. }
  7278. /***/ }),
  7279. /***/ "./node_modules/d3-geo/src/noop.js":
  7280. /*!*****************************************!*\
  7281. !*** ./node_modules/d3-geo/src/noop.js ***!
  7282. \*****************************************/
  7283. /*! exports provided: default */
  7284. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7285. "use strict";
  7286. __webpack_require__.r(__webpack_exports__);
  7287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return noop; });
  7288. function noop() {}
  7289. /***/ }),
  7290. /***/ "./node_modules/d3-geo/src/path/area.js":
  7291. /*!**********************************************!*\
  7292. !*** ./node_modules/d3-geo/src/path/area.js ***!
  7293. \**********************************************/
  7294. /*! exports provided: default */
  7295. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7296. "use strict";
  7297. __webpack_require__.r(__webpack_exports__);
  7298. /* harmony import */ var _adder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../adder */ "./node_modules/d3-geo/src/adder.js");
  7299. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7300. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-geo/src/noop.js");
  7301. var areaSum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7302. areaRingSum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7303. x00,
  7304. y00,
  7305. x0,
  7306. y0;
  7307. var areaStream = {
  7308. point: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7309. lineStart: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7310. lineEnd: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7311. polygonStart: function() {
  7312. areaStream.lineStart = areaRingStart;
  7313. areaStream.lineEnd = areaRingEnd;
  7314. },
  7315. polygonEnd: function() {
  7316. areaStream.lineStart = areaStream.lineEnd = areaStream.point = _noop__WEBPACK_IMPORTED_MODULE_2__["default"];
  7317. areaSum.add(Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(areaRingSum));
  7318. areaRingSum.reset();
  7319. },
  7320. result: function() {
  7321. var area = areaSum / 2;
  7322. areaSum.reset();
  7323. return area;
  7324. }
  7325. };
  7326. function areaRingStart() {
  7327. areaStream.point = areaPointFirst;
  7328. }
  7329. function areaPointFirst(x, y) {
  7330. areaStream.point = areaPoint;
  7331. x00 = x0 = x, y00 = y0 = y;
  7332. }
  7333. function areaPoint(x, y) {
  7334. areaRingSum.add(y0 * x - x0 * y);
  7335. x0 = x, y0 = y;
  7336. }
  7337. function areaRingEnd() {
  7338. areaPoint(x00, y00);
  7339. }
  7340. /* harmony default export */ __webpack_exports__["default"] = (areaStream);
  7341. /***/ }),
  7342. /***/ "./node_modules/d3-geo/src/path/bounds.js":
  7343. /*!************************************************!*\
  7344. !*** ./node_modules/d3-geo/src/path/bounds.js ***!
  7345. \************************************************/
  7346. /*! exports provided: default */
  7347. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7348. "use strict";
  7349. __webpack_require__.r(__webpack_exports__);
  7350. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-geo/src/noop.js");
  7351. var x0 = Infinity,
  7352. y0 = x0,
  7353. x1 = -x0,
  7354. y1 = x1;
  7355. var boundsStream = {
  7356. point: boundsPoint,
  7357. lineStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  7358. lineEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  7359. polygonStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  7360. polygonEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  7361. result: function() {
  7362. var bounds = [[x0, y0], [x1, y1]];
  7363. x1 = y1 = -(y0 = x0 = Infinity);
  7364. return bounds;
  7365. }
  7366. };
  7367. function boundsPoint(x, y) {
  7368. if (x < x0) x0 = x;
  7369. if (x > x1) x1 = x;
  7370. if (y < y0) y0 = y;
  7371. if (y > y1) y1 = y;
  7372. }
  7373. /* harmony default export */ __webpack_exports__["default"] = (boundsStream);
  7374. /***/ }),
  7375. /***/ "./node_modules/d3-geo/src/path/centroid.js":
  7376. /*!**************************************************!*\
  7377. !*** ./node_modules/d3-geo/src/path/centroid.js ***!
  7378. \**************************************************/
  7379. /*! exports provided: default */
  7380. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7381. "use strict";
  7382. __webpack_require__.r(__webpack_exports__);
  7383. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7384. // TODO Enforce positive area for exterior, negative area for interior?
  7385. var X0 = 0,
  7386. Y0 = 0,
  7387. Z0 = 0,
  7388. X1 = 0,
  7389. Y1 = 0,
  7390. Z1 = 0,
  7391. X2 = 0,
  7392. Y2 = 0,
  7393. Z2 = 0,
  7394. x00,
  7395. y00,
  7396. x0,
  7397. y0;
  7398. var centroidStream = {
  7399. point: centroidPoint,
  7400. lineStart: centroidLineStart,
  7401. lineEnd: centroidLineEnd,
  7402. polygonStart: function() {
  7403. centroidStream.lineStart = centroidRingStart;
  7404. centroidStream.lineEnd = centroidRingEnd;
  7405. },
  7406. polygonEnd: function() {
  7407. centroidStream.point = centroidPoint;
  7408. centroidStream.lineStart = centroidLineStart;
  7409. centroidStream.lineEnd = centroidLineEnd;
  7410. },
  7411. result: function() {
  7412. var centroid = Z2 ? [X2 / Z2, Y2 / Z2]
  7413. : Z1 ? [X1 / Z1, Y1 / Z1]
  7414. : Z0 ? [X0 / Z0, Y0 / Z0]
  7415. : [NaN, NaN];
  7416. X0 = Y0 = Z0 =
  7417. X1 = Y1 = Z1 =
  7418. X2 = Y2 = Z2 = 0;
  7419. return centroid;
  7420. }
  7421. };
  7422. function centroidPoint(x, y) {
  7423. X0 += x;
  7424. Y0 += y;
  7425. ++Z0;
  7426. }
  7427. function centroidLineStart() {
  7428. centroidStream.point = centroidPointFirstLine;
  7429. }
  7430. function centroidPointFirstLine(x, y) {
  7431. centroidStream.point = centroidPointLine;
  7432. centroidPoint(x0 = x, y0 = y);
  7433. }
  7434. function centroidPointLine(x, y) {
  7435. var dx = x - x0, dy = y - y0, z = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(dx * dx + dy * dy);
  7436. X1 += z * (x0 + x) / 2;
  7437. Y1 += z * (y0 + y) / 2;
  7438. Z1 += z;
  7439. centroidPoint(x0 = x, y0 = y);
  7440. }
  7441. function centroidLineEnd() {
  7442. centroidStream.point = centroidPoint;
  7443. }
  7444. function centroidRingStart() {
  7445. centroidStream.point = centroidPointFirstRing;
  7446. }
  7447. function centroidRingEnd() {
  7448. centroidPointRing(x00, y00);
  7449. }
  7450. function centroidPointFirstRing(x, y) {
  7451. centroidStream.point = centroidPointRing;
  7452. centroidPoint(x00 = x0 = x, y00 = y0 = y);
  7453. }
  7454. function centroidPointRing(x, y) {
  7455. var dx = x - x0,
  7456. dy = y - y0,
  7457. z = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(dx * dx + dy * dy);
  7458. X1 += z * (x0 + x) / 2;
  7459. Y1 += z * (y0 + y) / 2;
  7460. Z1 += z;
  7461. z = y0 * x - x0 * y;
  7462. X2 += z * (x0 + x);
  7463. Y2 += z * (y0 + y);
  7464. Z2 += z * 3;
  7465. centroidPoint(x0 = x, y0 = y);
  7466. }
  7467. /* harmony default export */ __webpack_exports__["default"] = (centroidStream);
  7468. /***/ }),
  7469. /***/ "./node_modules/d3-geo/src/path/context.js":
  7470. /*!*************************************************!*\
  7471. !*** ./node_modules/d3-geo/src/path/context.js ***!
  7472. \*************************************************/
  7473. /*! exports provided: default */
  7474. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7475. "use strict";
  7476. __webpack_require__.r(__webpack_exports__);
  7477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PathContext; });
  7478. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7479. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-geo/src/noop.js");
  7480. function PathContext(context) {
  7481. this._context = context;
  7482. }
  7483. PathContext.prototype = {
  7484. _radius: 4.5,
  7485. pointRadius: function(_) {
  7486. return this._radius = _, this;
  7487. },
  7488. polygonStart: function() {
  7489. this._line = 0;
  7490. },
  7491. polygonEnd: function() {
  7492. this._line = NaN;
  7493. },
  7494. lineStart: function() {
  7495. this._point = 0;
  7496. },
  7497. lineEnd: function() {
  7498. if (this._line === 0) this._context.closePath();
  7499. this._point = NaN;
  7500. },
  7501. point: function(x, y) {
  7502. switch (this._point) {
  7503. case 0: {
  7504. this._context.moveTo(x, y);
  7505. this._point = 1;
  7506. break;
  7507. }
  7508. case 1: {
  7509. this._context.lineTo(x, y);
  7510. break;
  7511. }
  7512. default: {
  7513. this._context.moveTo(x + this._radius, y);
  7514. this._context.arc(x, y, this._radius, 0, _math__WEBPACK_IMPORTED_MODULE_0__["tau"]);
  7515. break;
  7516. }
  7517. }
  7518. },
  7519. result: _noop__WEBPACK_IMPORTED_MODULE_1__["default"]
  7520. };
  7521. /***/ }),
  7522. /***/ "./node_modules/d3-geo/src/path/index.js":
  7523. /*!***********************************************!*\
  7524. !*** ./node_modules/d3-geo/src/path/index.js ***!
  7525. \***********************************************/
  7526. /*! exports provided: default */
  7527. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7528. "use strict";
  7529. __webpack_require__.r(__webpack_exports__);
  7530. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../identity */ "./node_modules/d3-geo/src/identity.js");
  7531. /* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../stream */ "./node_modules/d3-geo/src/stream.js");
  7532. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./area */ "./node_modules/d3-geo/src/path/area.js");
  7533. /* harmony import */ var _bounds__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bounds */ "./node_modules/d3-geo/src/path/bounds.js");
  7534. /* harmony import */ var _centroid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./centroid */ "./node_modules/d3-geo/src/path/centroid.js");
  7535. /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./node_modules/d3-geo/src/path/context.js");
  7536. /* harmony import */ var _measure__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./measure */ "./node_modules/d3-geo/src/path/measure.js");
  7537. /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./string */ "./node_modules/d3-geo/src/path/string.js");
  7538. /* harmony default export */ __webpack_exports__["default"] = (function(projection, context) {
  7539. var pointRadius = 4.5,
  7540. projectionStream,
  7541. contextStream;
  7542. function path(object) {
  7543. if (object) {
  7544. if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
  7545. Object(_stream__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(contextStream));
  7546. }
  7547. return contextStream.result();
  7548. }
  7549. path.area = function(object) {
  7550. Object(_stream__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_area__WEBPACK_IMPORTED_MODULE_2__["default"]));
  7551. return _area__WEBPACK_IMPORTED_MODULE_2__["default"].result();
  7552. };
  7553. path.measure = function(object) {
  7554. Object(_stream__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_measure__WEBPACK_IMPORTED_MODULE_6__["default"]));
  7555. return _measure__WEBPACK_IMPORTED_MODULE_6__["default"].result();
  7556. };
  7557. path.bounds = function(object) {
  7558. Object(_stream__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_bounds__WEBPACK_IMPORTED_MODULE_3__["default"]));
  7559. return _bounds__WEBPACK_IMPORTED_MODULE_3__["default"].result();
  7560. };
  7561. path.centroid = function(object) {
  7562. Object(_stream__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_centroid__WEBPACK_IMPORTED_MODULE_4__["default"]));
  7563. return _centroid__WEBPACK_IMPORTED_MODULE_4__["default"].result();
  7564. };
  7565. path.projection = function(_) {
  7566. return arguments.length ? (projectionStream = _ == null ? (projection = null, _identity__WEBPACK_IMPORTED_MODULE_0__["default"]) : (projection = _).stream, path) : projection;
  7567. };
  7568. path.context = function(_) {
  7569. if (!arguments.length) return context;
  7570. contextStream = _ == null ? (context = null, new _string__WEBPACK_IMPORTED_MODULE_7__["default"]) : new _context__WEBPACK_IMPORTED_MODULE_5__["default"](context = _);
  7571. if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius);
  7572. return path;
  7573. };
  7574. path.pointRadius = function(_) {
  7575. if (!arguments.length) return pointRadius;
  7576. pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_);
  7577. return path;
  7578. };
  7579. return path.projection(projection).context(context);
  7580. });
  7581. /***/ }),
  7582. /***/ "./node_modules/d3-geo/src/path/measure.js":
  7583. /*!*************************************************!*\
  7584. !*** ./node_modules/d3-geo/src/path/measure.js ***!
  7585. \*************************************************/
  7586. /*! exports provided: default */
  7587. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7588. "use strict";
  7589. __webpack_require__.r(__webpack_exports__);
  7590. /* harmony import */ var _adder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../adder */ "./node_modules/d3-geo/src/adder.js");
  7591. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7592. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-geo/src/noop.js");
  7593. var lengthSum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7594. lengthRing,
  7595. x00,
  7596. y00,
  7597. x0,
  7598. y0;
  7599. var lengthStream = {
  7600. point: _noop__WEBPACK_IMPORTED_MODULE_2__["default"],
  7601. lineStart: function() {
  7602. lengthStream.point = lengthPointFirst;
  7603. },
  7604. lineEnd: function() {
  7605. if (lengthRing) lengthPoint(x00, y00);
  7606. lengthStream.point = _noop__WEBPACK_IMPORTED_MODULE_2__["default"];
  7607. },
  7608. polygonStart: function() {
  7609. lengthRing = true;
  7610. },
  7611. polygonEnd: function() {
  7612. lengthRing = null;
  7613. },
  7614. result: function() {
  7615. var length = +lengthSum;
  7616. lengthSum.reset();
  7617. return length;
  7618. }
  7619. };
  7620. function lengthPointFirst(x, y) {
  7621. lengthStream.point = lengthPoint;
  7622. x00 = x0 = x, y00 = y0 = y;
  7623. }
  7624. function lengthPoint(x, y) {
  7625. x0 -= x, y0 -= y;
  7626. lengthSum.add(Object(_math__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(x0 * x0 + y0 * y0));
  7627. x0 = x, y0 = y;
  7628. }
  7629. /* harmony default export */ __webpack_exports__["default"] = (lengthStream);
  7630. /***/ }),
  7631. /***/ "./node_modules/d3-geo/src/path/string.js":
  7632. /*!************************************************!*\
  7633. !*** ./node_modules/d3-geo/src/path/string.js ***!
  7634. \************************************************/
  7635. /*! exports provided: default */
  7636. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7637. "use strict";
  7638. __webpack_require__.r(__webpack_exports__);
  7639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PathString; });
  7640. function PathString() {
  7641. this._string = [];
  7642. }
  7643. PathString.prototype = {
  7644. _radius: 4.5,
  7645. _circle: circle(4.5),
  7646. pointRadius: function(_) {
  7647. if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;
  7648. return this;
  7649. },
  7650. polygonStart: function() {
  7651. this._line = 0;
  7652. },
  7653. polygonEnd: function() {
  7654. this._line = NaN;
  7655. },
  7656. lineStart: function() {
  7657. this._point = 0;
  7658. },
  7659. lineEnd: function() {
  7660. if (this._line === 0) this._string.push("Z");
  7661. this._point = NaN;
  7662. },
  7663. point: function(x, y) {
  7664. switch (this._point) {
  7665. case 0: {
  7666. this._string.push("M", x, ",", y);
  7667. this._point = 1;
  7668. break;
  7669. }
  7670. case 1: {
  7671. this._string.push("L", x, ",", y);
  7672. break;
  7673. }
  7674. default: {
  7675. if (this._circle == null) this._circle = circle(this._radius);
  7676. this._string.push("M", x, ",", y, this._circle);
  7677. break;
  7678. }
  7679. }
  7680. },
  7681. result: function() {
  7682. if (this._string.length) {
  7683. var result = this._string.join("");
  7684. this._string = [];
  7685. return result;
  7686. } else {
  7687. return null;
  7688. }
  7689. }
  7690. };
  7691. function circle(radius) {
  7692. return "m0," + radius
  7693. + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius
  7694. + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius
  7695. + "z";
  7696. }
  7697. /***/ }),
  7698. /***/ "./node_modules/d3-geo/src/pointEqual.js":
  7699. /*!***********************************************!*\
  7700. !*** ./node_modules/d3-geo/src/pointEqual.js ***!
  7701. \***********************************************/
  7702. /*! exports provided: default */
  7703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7704. "use strict";
  7705. __webpack_require__.r(__webpack_exports__);
  7706. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  7707. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  7708. return Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(a[0] - b[0]) < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"] && Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(a[1] - b[1]) < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"];
  7709. });
  7710. /***/ }),
  7711. /***/ "./node_modules/d3-geo/src/polygonContains.js":
  7712. /*!****************************************************!*\
  7713. !*** ./node_modules/d3-geo/src/polygonContains.js ***!
  7714. \****************************************************/
  7715. /*! exports provided: default */
  7716. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7717. "use strict";
  7718. __webpack_require__.r(__webpack_exports__);
  7719. /* harmony import */ var _adder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder */ "./node_modules/d3-geo/src/adder.js");
  7720. /* harmony import */ var _cartesian__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cartesian */ "./node_modules/d3-geo/src/cartesian.js");
  7721. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  7722. var sum = Object(_adder__WEBPACK_IMPORTED_MODULE_0__["default"])();
  7723. /* harmony default export */ __webpack_exports__["default"] = (function(polygon, point) {
  7724. var lambda = point[0],
  7725. phi = point[1],
  7726. sinPhi = Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(phi),
  7727. normal = [Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(lambda), -Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(lambda), 0],
  7728. angle = 0,
  7729. winding = 0;
  7730. sum.reset();
  7731. if (sinPhi === 1) phi = _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"] + _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  7732. else if (sinPhi === -1) phi = -_math__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  7733. for (var i = 0, n = polygon.length; i < n; ++i) {
  7734. if (!(m = (ring = polygon[i]).length)) continue;
  7735. var ring,
  7736. m,
  7737. point0 = ring[m - 1],
  7738. lambda0 = point0[0],
  7739. phi0 = point0[1] / 2 + _math__WEBPACK_IMPORTED_MODULE_2__["quarterPi"],
  7740. sinPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(phi0),
  7741. cosPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(phi0);
  7742. for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {
  7743. var point1 = ring[j],
  7744. lambda1 = point1[0],
  7745. phi1 = point1[1] / 2 + _math__WEBPACK_IMPORTED_MODULE_2__["quarterPi"],
  7746. sinPhi1 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(phi1),
  7747. cosPhi1 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(phi1),
  7748. delta = lambda1 - lambda0,
  7749. sign = delta >= 0 ? 1 : -1,
  7750. absDelta = sign * delta,
  7751. antimeridian = absDelta > _math__WEBPACK_IMPORTED_MODULE_2__["pi"],
  7752. k = sinPhi0 * sinPhi1;
  7753. sum.add(Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(k * sign * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(absDelta), cosPhi0 * cosPhi1 + k * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(absDelta)));
  7754. angle += antimeridian ? delta + sign * _math__WEBPACK_IMPORTED_MODULE_2__["tau"] : delta;
  7755. // Are the longitudes either side of the point’s meridian (lambda),
  7756. // and are the latitudes smaller than the parallel (phi)?
  7757. if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {
  7758. var arc = Object(_cartesian__WEBPACK_IMPORTED_MODULE_1__["cartesianCross"])(Object(_cartesian__WEBPACK_IMPORTED_MODULE_1__["cartesian"])(point0), Object(_cartesian__WEBPACK_IMPORTED_MODULE_1__["cartesian"])(point1));
  7759. Object(_cartesian__WEBPACK_IMPORTED_MODULE_1__["cartesianNormalizeInPlace"])(arc);
  7760. var intersection = Object(_cartesian__WEBPACK_IMPORTED_MODULE_1__["cartesianCross"])(normal, arc);
  7761. Object(_cartesian__WEBPACK_IMPORTED_MODULE_1__["cartesianNormalizeInPlace"])(intersection);
  7762. var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * Object(_math__WEBPACK_IMPORTED_MODULE_2__["asin"])(intersection[2]);
  7763. if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {
  7764. winding += antimeridian ^ delta >= 0 ? 1 : -1;
  7765. }
  7766. }
  7767. }
  7768. }
  7769. // First, determine whether the South pole is inside or outside:
  7770. //
  7771. // It is inside if:
  7772. // * the polygon winds around it in a clockwise direction.
  7773. // * the polygon does not (cumulatively) wind around it, but has a negative
  7774. // (counter-clockwise) area.
  7775. //
  7776. // Second, count the (signed) number of times a segment crosses a lambda
  7777. // from the point to the South pole. If it is zero, then the point is the
  7778. // same side as the South pole.
  7779. return (angle < -_math__WEBPACK_IMPORTED_MODULE_2__["epsilon"] || angle < _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"] && sum < -_math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) ^ (winding & 1);
  7780. });
  7781. /***/ }),
  7782. /***/ "./node_modules/d3-geo/src/projection/albers.js":
  7783. /*!******************************************************!*\
  7784. !*** ./node_modules/d3-geo/src/projection/albers.js ***!
  7785. \******************************************************/
  7786. /*! exports provided: default */
  7787. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7788. "use strict";
  7789. __webpack_require__.r(__webpack_exports__);
  7790. /* harmony import */ var _conicEqualArea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./conicEqualArea */ "./node_modules/d3-geo/src/projection/conicEqualArea.js");
  7791. /* harmony default export */ __webpack_exports__["default"] = (function() {
  7792. return Object(_conicEqualArea__WEBPACK_IMPORTED_MODULE_0__["default"])()
  7793. .parallels([29.5, 45.5])
  7794. .scale(1070)
  7795. .translate([480, 250])
  7796. .rotate([96, 0])
  7797. .center([-0.6, 38.7]);
  7798. });
  7799. /***/ }),
  7800. /***/ "./node_modules/d3-geo/src/projection/albersUsa.js":
  7801. /*!*********************************************************!*\
  7802. !*** ./node_modules/d3-geo/src/projection/albersUsa.js ***!
  7803. \*********************************************************/
  7804. /*! exports provided: default */
  7805. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7806. "use strict";
  7807. __webpack_require__.r(__webpack_exports__);
  7808. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7809. /* harmony import */ var _albers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./albers */ "./node_modules/d3-geo/src/projection/albers.js");
  7810. /* harmony import */ var _conicEqualArea__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./conicEqualArea */ "./node_modules/d3-geo/src/projection/conicEqualArea.js");
  7811. /* harmony import */ var _fit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fit */ "./node_modules/d3-geo/src/projection/fit.js");
  7812. // The projections must have mutually exclusive clip regions on the sphere,
  7813. // as this will avoid emitting interleaving lines and polygons.
  7814. function multiplex(streams) {
  7815. var n = streams.length;
  7816. return {
  7817. point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },
  7818. sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },
  7819. lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },
  7820. lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },
  7821. polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },
  7822. polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }
  7823. };
  7824. }
  7825. // A composite projection for the United States, configured by default for
  7826. // 960×500. The projection also works quite well at 960×600 if you change the
  7827. // scale to 1285 and adjust the translate accordingly. The set of standard
  7828. // parallels for each region comes from USGS, which is published here:
  7829. // http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers
  7830. /* harmony default export */ __webpack_exports__["default"] = (function() {
  7831. var cache,
  7832. cacheStream,
  7833. lower48 = Object(_albers__WEBPACK_IMPORTED_MODULE_1__["default"])(), lower48Point,
  7834. alaska = Object(_conicEqualArea__WEBPACK_IMPORTED_MODULE_2__["default"])().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338
  7835. hawaii = Object(_conicEqualArea__WEBPACK_IMPORTED_MODULE_2__["default"])().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007
  7836. point, pointStream = {point: function(x, y) { point = [x, y]; }};
  7837. function albersUsa(coordinates) {
  7838. var x = coordinates[0], y = coordinates[1];
  7839. return point = null,
  7840. (lower48Point.point(x, y), point)
  7841. || (alaskaPoint.point(x, y), point)
  7842. || (hawaiiPoint.point(x, y), point);
  7843. }
  7844. albersUsa.invert = function(coordinates) {
  7845. var k = lower48.scale(),
  7846. t = lower48.translate(),
  7847. x = (coordinates[0] - t[0]) / k,
  7848. y = (coordinates[1] - t[1]) / k;
  7849. return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska
  7850. : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii
  7851. : lower48).invert(coordinates);
  7852. };
  7853. albersUsa.stream = function(stream) {
  7854. return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);
  7855. };
  7856. albersUsa.precision = function(_) {
  7857. if (!arguments.length) return lower48.precision();
  7858. lower48.precision(_), alaska.precision(_), hawaii.precision(_);
  7859. return reset();
  7860. };
  7861. albersUsa.scale = function(_) {
  7862. if (!arguments.length) return lower48.scale();
  7863. lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);
  7864. return albersUsa.translate(lower48.translate());
  7865. };
  7866. albersUsa.translate = function(_) {
  7867. if (!arguments.length) return lower48.translate();
  7868. var k = lower48.scale(), x = +_[0], y = +_[1];
  7869. lower48Point = lower48
  7870. .translate(_)
  7871. .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])
  7872. .stream(pointStream);
  7873. alaskaPoint = alaska
  7874. .translate([x - 0.307 * k, y + 0.201 * k])
  7875. .clipExtent([[x - 0.425 * k + _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.120 * k + _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]], [x - 0.214 * k - _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.234 * k - _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]]])
  7876. .stream(pointStream);
  7877. hawaiiPoint = hawaii
  7878. .translate([x - 0.205 * k, y + 0.212 * k])
  7879. .clipExtent([[x - 0.214 * k + _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.166 * k + _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]], [x - 0.115 * k - _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.234 * k - _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]]])
  7880. .stream(pointStream);
  7881. return reset();
  7882. };
  7883. albersUsa.fitExtent = function(extent, object) {
  7884. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitExtent"])(albersUsa, extent, object);
  7885. };
  7886. albersUsa.fitSize = function(size, object) {
  7887. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitSize"])(albersUsa, size, object);
  7888. };
  7889. albersUsa.fitWidth = function(width, object) {
  7890. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitWidth"])(albersUsa, width, object);
  7891. };
  7892. albersUsa.fitHeight = function(height, object) {
  7893. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitHeight"])(albersUsa, height, object);
  7894. };
  7895. function reset() {
  7896. cache = cacheStream = null;
  7897. return albersUsa;
  7898. }
  7899. return albersUsa.scale(1070);
  7900. });
  7901. /***/ }),
  7902. /***/ "./node_modules/d3-geo/src/projection/azimuthal.js":
  7903. /*!*********************************************************!*\
  7904. !*** ./node_modules/d3-geo/src/projection/azimuthal.js ***!
  7905. \*********************************************************/
  7906. /*! exports provided: azimuthalRaw, azimuthalInvert */
  7907. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7908. "use strict";
  7909. __webpack_require__.r(__webpack_exports__);
  7910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalRaw", function() { return azimuthalRaw; });
  7911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalInvert", function() { return azimuthalInvert; });
  7912. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7913. function azimuthalRaw(scale) {
  7914. return function(x, y) {
  7915. var cx = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(x),
  7916. cy = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y),
  7917. k = scale(cx * cy);
  7918. return [
  7919. k * cy * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(x),
  7920. k * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y)
  7921. ];
  7922. }
  7923. }
  7924. function azimuthalInvert(angle) {
  7925. return function(x, y) {
  7926. var z = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + y * y),
  7927. c = angle(z),
  7928. sc = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(c),
  7929. cc = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(c);
  7930. return [
  7931. Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x * sc, z * cc),
  7932. Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])(z && y * sc / z)
  7933. ];
  7934. }
  7935. }
  7936. /***/ }),
  7937. /***/ "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js":
  7938. /*!******************************************************************!*\
  7939. !*** ./node_modules/d3-geo/src/projection/azimuthalEqualArea.js ***!
  7940. \******************************************************************/
  7941. /*! exports provided: azimuthalEqualAreaRaw, default */
  7942. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7943. "use strict";
  7944. __webpack_require__.r(__webpack_exports__);
  7945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalEqualAreaRaw", function() { return azimuthalEqualAreaRaw; });
  7946. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7947. /* harmony import */ var _azimuthal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  7948. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  7949. var azimuthalEqualAreaRaw = Object(_azimuthal__WEBPACK_IMPORTED_MODULE_1__["azimuthalRaw"])(function(cxcy) {
  7950. return Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(2 / (1 + cxcy));
  7951. });
  7952. azimuthalEqualAreaRaw.invert = Object(_azimuthal__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(function(z) {
  7953. return 2 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])(z / 2);
  7954. });
  7955. /* harmony default export */ __webpack_exports__["default"] = (function() {
  7956. return Object(_index__WEBPACK_IMPORTED_MODULE_2__["default"])(azimuthalEqualAreaRaw)
  7957. .scale(124.75)
  7958. .clipAngle(180 - 1e-3);
  7959. });
  7960. /***/ }),
  7961. /***/ "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js":
  7962. /*!********************************************************************!*\
  7963. !*** ./node_modules/d3-geo/src/projection/azimuthalEquidistant.js ***!
  7964. \********************************************************************/
  7965. /*! exports provided: azimuthalEquidistantRaw, default */
  7966. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7967. "use strict";
  7968. __webpack_require__.r(__webpack_exports__);
  7969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalEquidistantRaw", function() { return azimuthalEquidistantRaw; });
  7970. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7971. /* harmony import */ var _azimuthal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  7972. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  7973. var azimuthalEquidistantRaw = Object(_azimuthal__WEBPACK_IMPORTED_MODULE_1__["azimuthalRaw"])(function(c) {
  7974. return (c = Object(_math__WEBPACK_IMPORTED_MODULE_0__["acos"])(c)) && c / Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(c);
  7975. });
  7976. azimuthalEquidistantRaw.invert = Object(_azimuthal__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(function(z) {
  7977. return z;
  7978. });
  7979. /* harmony default export */ __webpack_exports__["default"] = (function() {
  7980. return Object(_index__WEBPACK_IMPORTED_MODULE_2__["default"])(azimuthalEquidistantRaw)
  7981. .scale(79.4188)
  7982. .clipAngle(180 - 1e-3);
  7983. });
  7984. /***/ }),
  7985. /***/ "./node_modules/d3-geo/src/projection/conic.js":
  7986. /*!*****************************************************!*\
  7987. !*** ./node_modules/d3-geo/src/projection/conic.js ***!
  7988. \*****************************************************/
  7989. /*! exports provided: conicProjection */
  7990. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7991. "use strict";
  7992. __webpack_require__.r(__webpack_exports__);
  7993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicProjection", function() { return conicProjection; });
  7994. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  7995. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  7996. function conicProjection(projectAt) {
  7997. var phi0 = 0,
  7998. phi1 = _math__WEBPACK_IMPORTED_MODULE_0__["pi"] / 3,
  7999. m = Object(_index__WEBPACK_IMPORTED_MODULE_1__["projectionMutator"])(projectAt),
  8000. p = m(phi0, phi1);
  8001. p.parallels = function(_) {
  8002. return arguments.length ? m(phi0 = _[0] * _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi1 = _[1] * _math__WEBPACK_IMPORTED_MODULE_0__["radians"]) : [phi0 * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"], phi1 * _math__WEBPACK_IMPORTED_MODULE_0__["degrees"]];
  8003. };
  8004. return p;
  8005. }
  8006. /***/ }),
  8007. /***/ "./node_modules/d3-geo/src/projection/conicConformal.js":
  8008. /*!**************************************************************!*\
  8009. !*** ./node_modules/d3-geo/src/projection/conicConformal.js ***!
  8010. \**************************************************************/
  8011. /*! exports provided: conicConformalRaw, default */
  8012. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8013. "use strict";
  8014. __webpack_require__.r(__webpack_exports__);
  8015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicConformalRaw", function() { return conicConformalRaw; });
  8016. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8017. /* harmony import */ var _conic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conic */ "./node_modules/d3-geo/src/projection/conic.js");
  8018. /* harmony import */ var _mercator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mercator */ "./node_modules/d3-geo/src/projection/mercator.js");
  8019. function tany(y) {
  8020. return Object(_math__WEBPACK_IMPORTED_MODULE_0__["tan"])((_math__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + y) / 2);
  8021. }
  8022. function conicConformalRaw(y0, y1) {
  8023. var cy0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y0),
  8024. n = y0 === y1 ? Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0) : Object(_math__WEBPACK_IMPORTED_MODULE_0__["log"])(cy0 / Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y1)) / Object(_math__WEBPACK_IMPORTED_MODULE_0__["log"])(tany(y1) / tany(y0)),
  8025. f = cy0 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["pow"])(tany(y0), n) / n;
  8026. if (!n) return _mercator__WEBPACK_IMPORTED_MODULE_2__["mercatorRaw"];
  8027. function project(x, y) {
  8028. if (f > 0) { if (y < -_math__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) y = -_math__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]; }
  8029. else { if (y > _math__WEBPACK_IMPORTED_MODULE_0__["halfPi"] - _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) y = _math__WEBPACK_IMPORTED_MODULE_0__["halfPi"] - _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]; }
  8030. var r = f / Object(_math__WEBPACK_IMPORTED_MODULE_0__["pow"])(tany(y), n);
  8031. return [r * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(n * x), f - r * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(n * x)];
  8032. }
  8033. project.invert = function(x, y) {
  8034. var fy = f - y, r = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sign"])(n) * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + fy * fy);
  8035. return [Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x, Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(fy)) / n * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sign"])(fy), 2 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["pow"])(f / r, 1 / n)) - _math__WEBPACK_IMPORTED_MODULE_0__["halfPi"]];
  8036. };
  8037. return project;
  8038. }
  8039. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8040. return Object(_conic__WEBPACK_IMPORTED_MODULE_1__["conicProjection"])(conicConformalRaw)
  8041. .scale(109.5)
  8042. .parallels([30, 30]);
  8043. });
  8044. /***/ }),
  8045. /***/ "./node_modules/d3-geo/src/projection/conicEqualArea.js":
  8046. /*!**************************************************************!*\
  8047. !*** ./node_modules/d3-geo/src/projection/conicEqualArea.js ***!
  8048. \**************************************************************/
  8049. /*! exports provided: conicEqualAreaRaw, default */
  8050. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8051. "use strict";
  8052. __webpack_require__.r(__webpack_exports__);
  8053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicEqualAreaRaw", function() { return conicEqualAreaRaw; });
  8054. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8055. /* harmony import */ var _conic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conic */ "./node_modules/d3-geo/src/projection/conic.js");
  8056. /* harmony import */ var _cylindricalEqualArea__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cylindricalEqualArea */ "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js");
  8057. function conicEqualAreaRaw(y0, y1) {
  8058. var sy0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0), n = (sy0 + Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y1)) / 2;
  8059. // Are the parallels symmetrical around the Equator?
  8060. if (Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(n) < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) return Object(_cylindricalEqualArea__WEBPACK_IMPORTED_MODULE_2__["cylindricalEqualAreaRaw"])(y0);
  8061. var c = 1 + sy0 * (2 * n - sy0), r0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(c) / n;
  8062. function project(x, y) {
  8063. var r = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(c - 2 * n * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y)) / n;
  8064. return [r * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(x *= n), r0 - r * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(x)];
  8065. }
  8066. project.invert = function(x, y) {
  8067. var r0y = r0 - y;
  8068. return [Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x, Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(r0y)) / n * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sign"])(r0y), Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])((c - (x * x + r0y * r0y) * n * n) / (2 * n))];
  8069. };
  8070. return project;
  8071. }
  8072. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8073. return Object(_conic__WEBPACK_IMPORTED_MODULE_1__["conicProjection"])(conicEqualAreaRaw)
  8074. .scale(155.424)
  8075. .center([0, 33.6442]);
  8076. });
  8077. /***/ }),
  8078. /***/ "./node_modules/d3-geo/src/projection/conicEquidistant.js":
  8079. /*!****************************************************************!*\
  8080. !*** ./node_modules/d3-geo/src/projection/conicEquidistant.js ***!
  8081. \****************************************************************/
  8082. /*! exports provided: conicEquidistantRaw, default */
  8083. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8084. "use strict";
  8085. __webpack_require__.r(__webpack_exports__);
  8086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicEquidistantRaw", function() { return conicEquidistantRaw; });
  8087. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8088. /* harmony import */ var _conic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conic */ "./node_modules/d3-geo/src/projection/conic.js");
  8089. /* harmony import */ var _equirectangular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./equirectangular */ "./node_modules/d3-geo/src/projection/equirectangular.js");
  8090. function conicEquidistantRaw(y0, y1) {
  8091. var cy0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y0),
  8092. n = y0 === y1 ? Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0) : (cy0 - Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y1)) / (y1 - y0),
  8093. g = cy0 / n + y0;
  8094. if (Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(n) < _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) return _equirectangular__WEBPACK_IMPORTED_MODULE_2__["equirectangularRaw"];
  8095. function project(x, y) {
  8096. var gy = g - y, nx = n * x;
  8097. return [gy * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(nx), g - gy * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(nx)];
  8098. }
  8099. project.invert = function(x, y) {
  8100. var gy = g - y;
  8101. return [Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x, Object(_math__WEBPACK_IMPORTED_MODULE_0__["abs"])(gy)) / n * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sign"])(gy), g - Object(_math__WEBPACK_IMPORTED_MODULE_0__["sign"])(n) * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + gy * gy)];
  8102. };
  8103. return project;
  8104. }
  8105. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8106. return Object(_conic__WEBPACK_IMPORTED_MODULE_1__["conicProjection"])(conicEquidistantRaw)
  8107. .scale(131.154)
  8108. .center([0, 13.9389]);
  8109. });
  8110. /***/ }),
  8111. /***/ "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js":
  8112. /*!********************************************************************!*\
  8113. !*** ./node_modules/d3-geo/src/projection/cylindricalEqualArea.js ***!
  8114. \********************************************************************/
  8115. /*! exports provided: cylindricalEqualAreaRaw */
  8116. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8117. "use strict";
  8118. __webpack_require__.r(__webpack_exports__);
  8119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cylindricalEqualAreaRaw", function() { return cylindricalEqualAreaRaw; });
  8120. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8121. function cylindricalEqualAreaRaw(phi0) {
  8122. var cosPhi0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi0);
  8123. function forward(lambda, phi) {
  8124. return [lambda * cosPhi0, Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi) / cosPhi0];
  8125. }
  8126. forward.invert = function(x, y) {
  8127. return [x / cosPhi0, Object(_math__WEBPACK_IMPORTED_MODULE_0__["asin"])(y * cosPhi0)];
  8128. };
  8129. return forward;
  8130. }
  8131. /***/ }),
  8132. /***/ "./node_modules/d3-geo/src/projection/equalEarth.js":
  8133. /*!**********************************************************!*\
  8134. !*** ./node_modules/d3-geo/src/projection/equalEarth.js ***!
  8135. \**********************************************************/
  8136. /*! exports provided: equalEarthRaw, default */
  8137. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8138. "use strict";
  8139. __webpack_require__.r(__webpack_exports__);
  8140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "equalEarthRaw", function() { return equalEarthRaw; });
  8141. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8142. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8143. var A1 = 1.340264,
  8144. A2 = -0.081106,
  8145. A3 = 0.000893,
  8146. A4 = 0.003796,
  8147. M = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(3) / 2,
  8148. iterations = 12;
  8149. function equalEarthRaw(lambda, phi) {
  8150. var l = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["asin"])(M * Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi)), l2 = l * l, l6 = l2 * l2 * l2;
  8151. return [
  8152. lambda * Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),
  8153. l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))
  8154. ];
  8155. }
  8156. equalEarthRaw.invert = function(x, y) {
  8157. var l = y, l2 = l * l, l6 = l2 * l2 * l2;
  8158. for (var i = 0, delta, fy, fpy; i < iterations; ++i) {
  8159. fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;
  8160. fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);
  8161. l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;
  8162. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(delta) < _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon2"]) break;
  8163. }
  8164. return [
  8165. M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(l),
  8166. Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["asin"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(l) / M)
  8167. ];
  8168. };
  8169. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8170. return Object(_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(equalEarthRaw)
  8171. .scale(177.158);
  8172. });
  8173. /***/ }),
  8174. /***/ "./node_modules/d3-geo/src/projection/equirectangular.js":
  8175. /*!***************************************************************!*\
  8176. !*** ./node_modules/d3-geo/src/projection/equirectangular.js ***!
  8177. \***************************************************************/
  8178. /*! exports provided: equirectangularRaw, default */
  8179. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8180. "use strict";
  8181. __webpack_require__.r(__webpack_exports__);
  8182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "equirectangularRaw", function() { return equirectangularRaw; });
  8183. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  8184. function equirectangularRaw(lambda, phi) {
  8185. return [lambda, phi];
  8186. }
  8187. equirectangularRaw.invert = equirectangularRaw;
  8188. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8189. return Object(_index__WEBPACK_IMPORTED_MODULE_0__["default"])(equirectangularRaw)
  8190. .scale(152.63);
  8191. });
  8192. /***/ }),
  8193. /***/ "./node_modules/d3-geo/src/projection/fit.js":
  8194. /*!***************************************************!*\
  8195. !*** ./node_modules/d3-geo/src/projection/fit.js ***!
  8196. \***************************************************/
  8197. /*! exports provided: fitExtent, fitSize, fitWidth, fitHeight */
  8198. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8199. "use strict";
  8200. __webpack_require__.r(__webpack_exports__);
  8201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitExtent", function() { return fitExtent; });
  8202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitSize", function() { return fitSize; });
  8203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitWidth", function() { return fitWidth; });
  8204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitHeight", function() { return fitHeight; });
  8205. /* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../stream */ "./node_modules/d3-geo/src/stream.js");
  8206. /* harmony import */ var _path_bounds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../path/bounds */ "./node_modules/d3-geo/src/path/bounds.js");
  8207. function fit(projection, fitBounds, object) {
  8208. var clip = projection.clipExtent && projection.clipExtent();
  8209. projection.scale(150).translate([0, 0]);
  8210. if (clip != null) projection.clipExtent(null);
  8211. Object(_stream__WEBPACK_IMPORTED_MODULE_0__["default"])(object, projection.stream(_path_bounds__WEBPACK_IMPORTED_MODULE_1__["default"]));
  8212. fitBounds(_path_bounds__WEBPACK_IMPORTED_MODULE_1__["default"].result());
  8213. if (clip != null) projection.clipExtent(clip);
  8214. return projection;
  8215. }
  8216. function fitExtent(projection, extent, object) {
  8217. return fit(projection, function(b) {
  8218. var w = extent[1][0] - extent[0][0],
  8219. h = extent[1][1] - extent[0][1],
  8220. k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),
  8221. x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,
  8222. y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;
  8223. projection.scale(150 * k).translate([x, y]);
  8224. }, object);
  8225. }
  8226. function fitSize(projection, size, object) {
  8227. return fitExtent(projection, [[0, 0], size], object);
  8228. }
  8229. function fitWidth(projection, width, object) {
  8230. return fit(projection, function(b) {
  8231. var w = +width,
  8232. k = w / (b[1][0] - b[0][0]),
  8233. x = (w - k * (b[1][0] + b[0][0])) / 2,
  8234. y = -k * b[0][1];
  8235. projection.scale(150 * k).translate([x, y]);
  8236. }, object);
  8237. }
  8238. function fitHeight(projection, height, object) {
  8239. return fit(projection, function(b) {
  8240. var h = +height,
  8241. k = h / (b[1][1] - b[0][1]),
  8242. x = -k * b[0][0],
  8243. y = (h - k * (b[1][1] + b[0][1])) / 2;
  8244. projection.scale(150 * k).translate([x, y]);
  8245. }, object);
  8246. }
  8247. /***/ }),
  8248. /***/ "./node_modules/d3-geo/src/projection/gnomonic.js":
  8249. /*!********************************************************!*\
  8250. !*** ./node_modules/d3-geo/src/projection/gnomonic.js ***!
  8251. \********************************************************/
  8252. /*! exports provided: gnomonicRaw, default */
  8253. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8254. "use strict";
  8255. __webpack_require__.r(__webpack_exports__);
  8256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gnomonicRaw", function() { return gnomonicRaw; });
  8257. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8258. /* harmony import */ var _azimuthal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8259. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  8260. function gnomonicRaw(x, y) {
  8261. var cy = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y), k = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(x) * cy;
  8262. return [cy * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(x) / k, Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y) / k];
  8263. }
  8264. gnomonicRaw.invert = Object(_azimuthal__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(_math__WEBPACK_IMPORTED_MODULE_0__["atan"]);
  8265. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8266. return Object(_index__WEBPACK_IMPORTED_MODULE_2__["default"])(gnomonicRaw)
  8267. .scale(144.049)
  8268. .clipAngle(60);
  8269. });
  8270. /***/ }),
  8271. /***/ "./node_modules/d3-geo/src/projection/identity.js":
  8272. /*!********************************************************!*\
  8273. !*** ./node_modules/d3-geo/src/projection/identity.js ***!
  8274. \********************************************************/
  8275. /*! exports provided: default */
  8276. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8277. "use strict";
  8278. __webpack_require__.r(__webpack_exports__);
  8279. /* harmony import */ var _clip_rectangle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../clip/rectangle */ "./node_modules/d3-geo/src/clip/rectangle.js");
  8280. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../identity */ "./node_modules/d3-geo/src/identity.js");
  8281. /* harmony import */ var _transform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transform */ "./node_modules/d3-geo/src/transform.js");
  8282. /* harmony import */ var _fit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fit */ "./node_modules/d3-geo/src/projection/fit.js");
  8283. function scaleTranslate(kx, ky, tx, ty) {
  8284. return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? _identity__WEBPACK_IMPORTED_MODULE_1__["default"] : Object(_transform__WEBPACK_IMPORTED_MODULE_2__["transformer"])({
  8285. point: function(x, y) {
  8286. this.stream.point(x * kx + tx, y * ky + ty);
  8287. }
  8288. });
  8289. }
  8290. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8291. var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = _identity__WEBPACK_IMPORTED_MODULE_1__["default"], // scale, translate and reflect
  8292. x0 = null, y0, x1, y1, // clip extent
  8293. postclip = _identity__WEBPACK_IMPORTED_MODULE_1__["default"],
  8294. cache,
  8295. cacheStream,
  8296. projection;
  8297. function reset() {
  8298. cache = cacheStream = null;
  8299. return projection;
  8300. }
  8301. return projection = {
  8302. stream: function(stream) {
  8303. return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));
  8304. },
  8305. postclip: function(_) {
  8306. return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;
  8307. },
  8308. clipExtent: function(_) {
  8309. return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, _identity__WEBPACK_IMPORTED_MODULE_1__["default"]) : Object(_clip_rectangle__WEBPACK_IMPORTED_MODULE_0__["default"])(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];
  8310. },
  8311. scale: function(_) {
  8312. return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;
  8313. },
  8314. translate: function(_) {
  8315. return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];
  8316. },
  8317. reflectX: function(_) {
  8318. return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;
  8319. },
  8320. reflectY: function(_) {
  8321. return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;
  8322. },
  8323. fitExtent: function(extent, object) {
  8324. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitExtent"])(projection, extent, object);
  8325. },
  8326. fitSize: function(size, object) {
  8327. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitSize"])(projection, size, object);
  8328. },
  8329. fitWidth: function(width, object) {
  8330. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitWidth"])(projection, width, object);
  8331. },
  8332. fitHeight: function(height, object) {
  8333. return Object(_fit__WEBPACK_IMPORTED_MODULE_3__["fitHeight"])(projection, height, object);
  8334. }
  8335. };
  8336. });
  8337. /***/ }),
  8338. /***/ "./node_modules/d3-geo/src/projection/index.js":
  8339. /*!*****************************************************!*\
  8340. !*** ./node_modules/d3-geo/src/projection/index.js ***!
  8341. \*****************************************************/
  8342. /*! exports provided: default, projectionMutator */
  8343. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8344. "use strict";
  8345. __webpack_require__.r(__webpack_exports__);
  8346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return projection; });
  8347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "projectionMutator", function() { return projectionMutator; });
  8348. /* harmony import */ var _clip_antimeridian__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../clip/antimeridian */ "./node_modules/d3-geo/src/clip/antimeridian.js");
  8349. /* harmony import */ var _clip_circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../clip/circle */ "./node_modules/d3-geo/src/clip/circle.js");
  8350. /* harmony import */ var _clip_rectangle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../clip/rectangle */ "./node_modules/d3-geo/src/clip/rectangle.js");
  8351. /* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../compose */ "./node_modules/d3-geo/src/compose.js");
  8352. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../identity */ "./node_modules/d3-geo/src/identity.js");
  8353. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8354. /* harmony import */ var _rotation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../rotation */ "./node_modules/d3-geo/src/rotation.js");
  8355. /* harmony import */ var _transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../transform */ "./node_modules/d3-geo/src/transform.js");
  8356. /* harmony import */ var _fit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fit */ "./node_modules/d3-geo/src/projection/fit.js");
  8357. /* harmony import */ var _resample__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./resample */ "./node_modules/d3-geo/src/projection/resample.js");
  8358. var transformRadians = Object(_transform__WEBPACK_IMPORTED_MODULE_7__["transformer"])({
  8359. point: function(x, y) {
  8360. this.stream.point(x * _math__WEBPACK_IMPORTED_MODULE_5__["radians"], y * _math__WEBPACK_IMPORTED_MODULE_5__["radians"]);
  8361. }
  8362. });
  8363. function transformRotate(rotate) {
  8364. return Object(_transform__WEBPACK_IMPORTED_MODULE_7__["transformer"])({
  8365. point: function(x, y) {
  8366. var r = rotate(x, y);
  8367. return this.stream.point(r[0], r[1]);
  8368. }
  8369. });
  8370. }
  8371. function scaleTranslate(k, dx, dy) {
  8372. function transform(x, y) {
  8373. return [dx + k * x, dy - k * y];
  8374. }
  8375. transform.invert = function(x, y) {
  8376. return [(x - dx) / k, (dy - y) / k];
  8377. };
  8378. return transform;
  8379. }
  8380. function scaleTranslateRotate(k, dx, dy, alpha) {
  8381. var cosAlpha = Object(_math__WEBPACK_IMPORTED_MODULE_5__["cos"])(alpha),
  8382. sinAlpha = Object(_math__WEBPACK_IMPORTED_MODULE_5__["sin"])(alpha),
  8383. a = cosAlpha * k,
  8384. b = sinAlpha * k,
  8385. ai = cosAlpha / k,
  8386. bi = sinAlpha / k,
  8387. ci = (sinAlpha * dy - cosAlpha * dx) / k,
  8388. fi = (sinAlpha * dx + cosAlpha * dy) / k;
  8389. function transform(x, y) {
  8390. return [a * x - b * y + dx, dy - b * x - a * y];
  8391. }
  8392. transform.invert = function(x, y) {
  8393. return [ai * x - bi * y + ci, fi - bi * x - ai * y];
  8394. };
  8395. return transform;
  8396. }
  8397. function projection(project) {
  8398. return projectionMutator(function() { return project; })();
  8399. }
  8400. function projectionMutator(projectAt) {
  8401. var project,
  8402. k = 150, // scale
  8403. x = 480, y = 250, // translate
  8404. lambda = 0, phi = 0, // center
  8405. deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate
  8406. alpha = 0, // post-rotate
  8407. theta = null, preclip = _clip_antimeridian__WEBPACK_IMPORTED_MODULE_0__["default"], // pre-clip angle
  8408. x0 = null, y0, x1, y1, postclip = _identity__WEBPACK_IMPORTED_MODULE_4__["default"], // post-clip extent
  8409. delta2 = 0.5, // precision
  8410. projectResample,
  8411. projectTransform,
  8412. projectRotateTransform,
  8413. cache,
  8414. cacheStream;
  8415. function projection(point) {
  8416. return projectRotateTransform(point[0] * _math__WEBPACK_IMPORTED_MODULE_5__["radians"], point[1] * _math__WEBPACK_IMPORTED_MODULE_5__["radians"]);
  8417. }
  8418. function invert(point) {
  8419. point = projectRotateTransform.invert(point[0], point[1]);
  8420. return point && [point[0] * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"], point[1] * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"]];
  8421. }
  8422. projection.stream = function(stream) {
  8423. return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));
  8424. };
  8425. projection.preclip = function(_) {
  8426. return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;
  8427. };
  8428. projection.postclip = function(_) {
  8429. return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;
  8430. };
  8431. projection.clipAngle = function(_) {
  8432. return arguments.length ? (preclip = +_ ? Object(_clip_circle__WEBPACK_IMPORTED_MODULE_1__["default"])(theta = _ * _math__WEBPACK_IMPORTED_MODULE_5__["radians"]) : (theta = null, _clip_antimeridian__WEBPACK_IMPORTED_MODULE_0__["default"]), reset()) : theta * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"];
  8433. };
  8434. projection.clipExtent = function(_) {
  8435. return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, _identity__WEBPACK_IMPORTED_MODULE_4__["default"]) : Object(_clip_rectangle__WEBPACK_IMPORTED_MODULE_2__["default"])(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];
  8436. };
  8437. projection.scale = function(_) {
  8438. return arguments.length ? (k = +_, recenter()) : k;
  8439. };
  8440. projection.translate = function(_) {
  8441. return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];
  8442. };
  8443. projection.center = function(_) {
  8444. return arguments.length ? (lambda = _[0] % 360 * _math__WEBPACK_IMPORTED_MODULE_5__["radians"], phi = _[1] % 360 * _math__WEBPACK_IMPORTED_MODULE_5__["radians"], recenter()) : [lambda * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"], phi * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"]];
  8445. };
  8446. projection.rotate = function(_) {
  8447. return arguments.length ? (deltaLambda = _[0] % 360 * _math__WEBPACK_IMPORTED_MODULE_5__["radians"], deltaPhi = _[1] % 360 * _math__WEBPACK_IMPORTED_MODULE_5__["radians"], deltaGamma = _.length > 2 ? _[2] % 360 * _math__WEBPACK_IMPORTED_MODULE_5__["radians"] : 0, recenter()) : [deltaLambda * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"], deltaPhi * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"], deltaGamma * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"]];
  8448. };
  8449. projection.angle = function(_) {
  8450. return arguments.length ? (alpha = _ % 360 * _math__WEBPACK_IMPORTED_MODULE_5__["radians"], recenter()) : alpha * _math__WEBPACK_IMPORTED_MODULE_5__["degrees"];
  8451. };
  8452. projection.precision = function(_) {
  8453. return arguments.length ? (projectResample = Object(_resample__WEBPACK_IMPORTED_MODULE_9__["default"])(projectTransform, delta2 = _ * _), reset()) : Object(_math__WEBPACK_IMPORTED_MODULE_5__["sqrt"])(delta2);
  8454. };
  8455. projection.fitExtent = function(extent, object) {
  8456. return Object(_fit__WEBPACK_IMPORTED_MODULE_8__["fitExtent"])(projection, extent, object);
  8457. };
  8458. projection.fitSize = function(size, object) {
  8459. return Object(_fit__WEBPACK_IMPORTED_MODULE_8__["fitSize"])(projection, size, object);
  8460. };
  8461. projection.fitWidth = function(width, object) {
  8462. return Object(_fit__WEBPACK_IMPORTED_MODULE_8__["fitWidth"])(projection, width, object);
  8463. };
  8464. projection.fitHeight = function(height, object) {
  8465. return Object(_fit__WEBPACK_IMPORTED_MODULE_8__["fitHeight"])(projection, height, object);
  8466. };
  8467. function recenter() {
  8468. var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),
  8469. transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);
  8470. rotate = Object(_rotation__WEBPACK_IMPORTED_MODULE_6__["rotateRadians"])(deltaLambda, deltaPhi, deltaGamma);
  8471. projectTransform = Object(_compose__WEBPACK_IMPORTED_MODULE_3__["default"])(project, transform);
  8472. projectRotateTransform = Object(_compose__WEBPACK_IMPORTED_MODULE_3__["default"])(rotate, projectTransform);
  8473. projectResample = Object(_resample__WEBPACK_IMPORTED_MODULE_9__["default"])(projectTransform, delta2);
  8474. return reset();
  8475. }
  8476. function reset() {
  8477. cache = cacheStream = null;
  8478. return projection;
  8479. }
  8480. return function() {
  8481. project = projectAt.apply(this, arguments);
  8482. projection.invert = project.invert && invert;
  8483. return recenter();
  8484. };
  8485. }
  8486. /***/ }),
  8487. /***/ "./node_modules/d3-geo/src/projection/mercator.js":
  8488. /*!********************************************************!*\
  8489. !*** ./node_modules/d3-geo/src/projection/mercator.js ***!
  8490. \********************************************************/
  8491. /*! exports provided: mercatorRaw, default, mercatorProjection */
  8492. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8493. "use strict";
  8494. __webpack_require__.r(__webpack_exports__);
  8495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mercatorRaw", function() { return mercatorRaw; });
  8496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mercatorProjection", function() { return mercatorProjection; });
  8497. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8498. /* harmony import */ var _rotation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rotation */ "./node_modules/d3-geo/src/rotation.js");
  8499. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  8500. function mercatorRaw(lambda, phi) {
  8501. return [lambda, Object(_math__WEBPACK_IMPORTED_MODULE_0__["log"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["tan"])((_math__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + phi) / 2))];
  8502. }
  8503. mercatorRaw.invert = function(x, y) {
  8504. return [x, 2 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["exp"])(y)) - _math__WEBPACK_IMPORTED_MODULE_0__["halfPi"]];
  8505. };
  8506. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8507. return mercatorProjection(mercatorRaw)
  8508. .scale(961 / _math__WEBPACK_IMPORTED_MODULE_0__["tau"]);
  8509. });
  8510. function mercatorProjection(project) {
  8511. var m = Object(_index__WEBPACK_IMPORTED_MODULE_2__["default"])(project),
  8512. center = m.center,
  8513. scale = m.scale,
  8514. translate = m.translate,
  8515. clipExtent = m.clipExtent,
  8516. x0 = null, y0, x1, y1; // clip extent
  8517. m.scale = function(_) {
  8518. return arguments.length ? (scale(_), reclip()) : scale();
  8519. };
  8520. m.translate = function(_) {
  8521. return arguments.length ? (translate(_), reclip()) : translate();
  8522. };
  8523. m.center = function(_) {
  8524. return arguments.length ? (center(_), reclip()) : center();
  8525. };
  8526. m.clipExtent = function(_) {
  8527. return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];
  8528. };
  8529. function reclip() {
  8530. var k = _math__WEBPACK_IMPORTED_MODULE_0__["pi"] * scale(),
  8531. t = m(Object(_rotation__WEBPACK_IMPORTED_MODULE_1__["default"])(m.rotate()).invert([0, 0]));
  8532. return clipExtent(x0 == null
  8533. ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw
  8534. ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]
  8535. : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);
  8536. }
  8537. return reclip();
  8538. }
  8539. /***/ }),
  8540. /***/ "./node_modules/d3-geo/src/projection/naturalEarth1.js":
  8541. /*!*************************************************************!*\
  8542. !*** ./node_modules/d3-geo/src/projection/naturalEarth1.js ***!
  8543. \*************************************************************/
  8544. /*! exports provided: naturalEarth1Raw, default */
  8545. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8546. "use strict";
  8547. __webpack_require__.r(__webpack_exports__);
  8548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "naturalEarth1Raw", function() { return naturalEarth1Raw; });
  8549. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  8550. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8551. function naturalEarth1Raw(lambda, phi) {
  8552. var phi2 = phi * phi, phi4 = phi2 * phi2;
  8553. return [
  8554. lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),
  8555. phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))
  8556. ];
  8557. }
  8558. naturalEarth1Raw.invert = function(x, y) {
  8559. var phi = y, i = 25, delta;
  8560. do {
  8561. var phi2 = phi * phi, phi4 = phi2 * phi2;
  8562. phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /
  8563. (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));
  8564. } while (Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(delta) > _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && --i > 0);
  8565. return [
  8566. x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),
  8567. phi
  8568. ];
  8569. };
  8570. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8571. return Object(_index__WEBPACK_IMPORTED_MODULE_0__["default"])(naturalEarth1Raw)
  8572. .scale(175.295);
  8573. });
  8574. /***/ }),
  8575. /***/ "./node_modules/d3-geo/src/projection/orthographic.js":
  8576. /*!************************************************************!*\
  8577. !*** ./node_modules/d3-geo/src/projection/orthographic.js ***!
  8578. \************************************************************/
  8579. /*! exports provided: orthographicRaw, default */
  8580. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8581. "use strict";
  8582. __webpack_require__.r(__webpack_exports__);
  8583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "orthographicRaw", function() { return orthographicRaw; });
  8584. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8585. /* harmony import */ var _azimuthal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8586. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  8587. function orthographicRaw(x, y) {
  8588. return [Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y) * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(x), Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y)];
  8589. }
  8590. orthographicRaw.invert = Object(_azimuthal__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(_math__WEBPACK_IMPORTED_MODULE_0__["asin"]);
  8591. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8592. return Object(_index__WEBPACK_IMPORTED_MODULE_2__["default"])(orthographicRaw)
  8593. .scale(249.5)
  8594. .clipAngle(90 + _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]);
  8595. });
  8596. /***/ }),
  8597. /***/ "./node_modules/d3-geo/src/projection/resample.js":
  8598. /*!********************************************************!*\
  8599. !*** ./node_modules/d3-geo/src/projection/resample.js ***!
  8600. \********************************************************/
  8601. /*! exports provided: default */
  8602. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8603. "use strict";
  8604. __webpack_require__.r(__webpack_exports__);
  8605. /* harmony import */ var _cartesian__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cartesian */ "./node_modules/d3-geo/src/cartesian.js");
  8606. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8607. /* harmony import */ var _transform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transform */ "./node_modules/d3-geo/src/transform.js");
  8608. var maxDepth = 16, // maximum depth of subdivision
  8609. cosMinDistance = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(30 * _math__WEBPACK_IMPORTED_MODULE_1__["radians"]); // cos(minimum angular distance)
  8610. /* harmony default export */ __webpack_exports__["default"] = (function(project, delta2) {
  8611. return +delta2 ? resample(project, delta2) : resampleNone(project);
  8612. });
  8613. function resampleNone(project) {
  8614. return Object(_transform__WEBPACK_IMPORTED_MODULE_2__["transformer"])({
  8615. point: function(x, y) {
  8616. x = project(x, y);
  8617. this.stream.point(x[0], x[1]);
  8618. }
  8619. });
  8620. }
  8621. function resample(project, delta2) {
  8622. function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {
  8623. var dx = x1 - x0,
  8624. dy = y1 - y0,
  8625. d2 = dx * dx + dy * dy;
  8626. if (d2 > 4 * delta2 && depth--) {
  8627. var a = a0 + a1,
  8628. b = b0 + b1,
  8629. c = c0 + c1,
  8630. m = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(a * a + b * b + c * c),
  8631. phi2 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["asin"])(c /= m),
  8632. lambda2 = Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(c) - 1) < _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"] || Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda0 - lambda1) < _math__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? (lambda0 + lambda1) / 2 : Object(_math__WEBPACK_IMPORTED_MODULE_1__["atan2"])(b, a),
  8633. p = project(lambda2, phi2),
  8634. x2 = p[0],
  8635. y2 = p[1],
  8636. dx2 = x2 - x0,
  8637. dy2 = y2 - y0,
  8638. dz = dy * dx2 - dx * dy2;
  8639. if (dz * dz / d2 > delta2 // perpendicular projected distance
  8640. || Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end
  8641. || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance
  8642. resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);
  8643. stream.point(x2, y2);
  8644. resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);
  8645. }
  8646. }
  8647. }
  8648. return function(stream) {
  8649. var lambda00, x00, y00, a00, b00, c00, // first point
  8650. lambda0, x0, y0, a0, b0, c0; // previous point
  8651. var resampleStream = {
  8652. point: point,
  8653. lineStart: lineStart,
  8654. lineEnd: lineEnd,
  8655. polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },
  8656. polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }
  8657. };
  8658. function point(x, y) {
  8659. x = project(x, y);
  8660. stream.point(x[0], x[1]);
  8661. }
  8662. function lineStart() {
  8663. x0 = NaN;
  8664. resampleStream.point = linePoint;
  8665. stream.lineStart();
  8666. }
  8667. function linePoint(lambda, phi) {
  8668. var c = Object(_cartesian__WEBPACK_IMPORTED_MODULE_0__["cartesian"])([lambda, phi]), p = project(lambda, phi);
  8669. resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);
  8670. stream.point(x0, y0);
  8671. }
  8672. function lineEnd() {
  8673. resampleStream.point = point;
  8674. stream.lineEnd();
  8675. }
  8676. function ringStart() {
  8677. lineStart();
  8678. resampleStream.point = ringPoint;
  8679. resampleStream.lineEnd = ringEnd;
  8680. }
  8681. function ringPoint(lambda, phi) {
  8682. linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;
  8683. resampleStream.point = linePoint;
  8684. }
  8685. function ringEnd() {
  8686. resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);
  8687. resampleStream.lineEnd = lineEnd;
  8688. lineEnd();
  8689. }
  8690. return resampleStream;
  8691. };
  8692. }
  8693. /***/ }),
  8694. /***/ "./node_modules/d3-geo/src/projection/stereographic.js":
  8695. /*!*************************************************************!*\
  8696. !*** ./node_modules/d3-geo/src/projection/stereographic.js ***!
  8697. \*************************************************************/
  8698. /*! exports provided: stereographicRaw, default */
  8699. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8700. "use strict";
  8701. __webpack_require__.r(__webpack_exports__);
  8702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stereographicRaw", function() { return stereographicRaw; });
  8703. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8704. /* harmony import */ var _azimuthal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8705. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/d3-geo/src/projection/index.js");
  8706. function stereographicRaw(x, y) {
  8707. var cy = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(y), k = 1 + Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(x) * cy;
  8708. return [cy * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(x) / k, Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(y) / k];
  8709. }
  8710. stereographicRaw.invert = Object(_azimuthal__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(function(z) {
  8711. return 2 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan"])(z);
  8712. });
  8713. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8714. return Object(_index__WEBPACK_IMPORTED_MODULE_2__["default"])(stereographicRaw)
  8715. .scale(250)
  8716. .clipAngle(142);
  8717. });
  8718. /***/ }),
  8719. /***/ "./node_modules/d3-geo/src/projection/transverseMercator.js":
  8720. /*!******************************************************************!*\
  8721. !*** ./node_modules/d3-geo/src/projection/transverseMercator.js ***!
  8722. \******************************************************************/
  8723. /*! exports provided: transverseMercatorRaw, default */
  8724. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8725. "use strict";
  8726. __webpack_require__.r(__webpack_exports__);
  8727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transverseMercatorRaw", function() { return transverseMercatorRaw; });
  8728. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-geo/src/math.js");
  8729. /* harmony import */ var _mercator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mercator */ "./node_modules/d3-geo/src/projection/mercator.js");
  8730. function transverseMercatorRaw(lambda, phi) {
  8731. return [Object(_math__WEBPACK_IMPORTED_MODULE_0__["log"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["tan"])((_math__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + phi) / 2)), -lambda];
  8732. }
  8733. transverseMercatorRaw.invert = function(x, y) {
  8734. return [-y, 2 * Object(_math__WEBPACK_IMPORTED_MODULE_0__["atan"])(Object(_math__WEBPACK_IMPORTED_MODULE_0__["exp"])(x)) - _math__WEBPACK_IMPORTED_MODULE_0__["halfPi"]];
  8735. };
  8736. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8737. var m = Object(_mercator__WEBPACK_IMPORTED_MODULE_1__["mercatorProjection"])(transverseMercatorRaw),
  8738. center = m.center,
  8739. rotate = m.rotate;
  8740. m.center = function(_) {
  8741. return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);
  8742. };
  8743. m.rotate = function(_) {
  8744. return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);
  8745. };
  8746. return rotate([0, 0, 90])
  8747. .scale(159.155);
  8748. });
  8749. /***/ }),
  8750. /***/ "./node_modules/d3-geo/src/rotation.js":
  8751. /*!*********************************************!*\
  8752. !*** ./node_modules/d3-geo/src/rotation.js ***!
  8753. \*********************************************/
  8754. /*! exports provided: rotateRadians, default */
  8755. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8756. "use strict";
  8757. __webpack_require__.r(__webpack_exports__);
  8758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rotateRadians", function() { return rotateRadians; });
  8759. /* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compose */ "./node_modules/d3-geo/src/compose.js");
  8760. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math */ "./node_modules/d3-geo/src/math.js");
  8761. function rotationIdentity(lambda, phi) {
  8762. return [Object(_math__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda) > _math__WEBPACK_IMPORTED_MODULE_1__["pi"] ? lambda + Math.round(-lambda / _math__WEBPACK_IMPORTED_MODULE_1__["tau"]) * _math__WEBPACK_IMPORTED_MODULE_1__["tau"] : lambda, phi];
  8763. }
  8764. rotationIdentity.invert = rotationIdentity;
  8765. function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {
  8766. return (deltaLambda %= _math__WEBPACK_IMPORTED_MODULE_1__["tau"]) ? (deltaPhi || deltaGamma ? Object(_compose__WEBPACK_IMPORTED_MODULE_0__["default"])(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))
  8767. : rotationLambda(deltaLambda))
  8768. : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)
  8769. : rotationIdentity);
  8770. }
  8771. function forwardRotationLambda(deltaLambda) {
  8772. return function(lambda, phi) {
  8773. return lambda += deltaLambda, [lambda > _math__WEBPACK_IMPORTED_MODULE_1__["pi"] ? lambda - _math__WEBPACK_IMPORTED_MODULE_1__["tau"] : lambda < -_math__WEBPACK_IMPORTED_MODULE_1__["pi"] ? lambda + _math__WEBPACK_IMPORTED_MODULE_1__["tau"] : lambda, phi];
  8774. };
  8775. }
  8776. function rotationLambda(deltaLambda) {
  8777. var rotation = forwardRotationLambda(deltaLambda);
  8778. rotation.invert = forwardRotationLambda(-deltaLambda);
  8779. return rotation;
  8780. }
  8781. function rotationPhiGamma(deltaPhi, deltaGamma) {
  8782. var cosDeltaPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(deltaPhi),
  8783. sinDeltaPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(deltaPhi),
  8784. cosDeltaGamma = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(deltaGamma),
  8785. sinDeltaGamma = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(deltaGamma);
  8786. function rotation(lambda, phi) {
  8787. var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  8788. x = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(lambda) * cosPhi,
  8789. y = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda) * cosPhi,
  8790. z = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  8791. k = z * cosDeltaPhi + x * sinDeltaPhi;
  8792. return [
  8793. Object(_math__WEBPACK_IMPORTED_MODULE_1__["atan2"])(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),
  8794. Object(_math__WEBPACK_IMPORTED_MODULE_1__["asin"])(k * cosDeltaGamma + y * sinDeltaGamma)
  8795. ];
  8796. }
  8797. rotation.invert = function(lambda, phi) {
  8798. var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  8799. x = Object(_math__WEBPACK_IMPORTED_MODULE_1__["cos"])(lambda) * cosPhi,
  8800. y = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda) * cosPhi,
  8801. z = Object(_math__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  8802. k = z * cosDeltaGamma - y * sinDeltaGamma;
  8803. return [
  8804. Object(_math__WEBPACK_IMPORTED_MODULE_1__["atan2"])(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),
  8805. Object(_math__WEBPACK_IMPORTED_MODULE_1__["asin"])(k * cosDeltaPhi - x * sinDeltaPhi)
  8806. ];
  8807. };
  8808. return rotation;
  8809. }
  8810. /* harmony default export */ __webpack_exports__["default"] = (function(rotate) {
  8811. rotate = rotateRadians(rotate[0] * _math__WEBPACK_IMPORTED_MODULE_1__["radians"], rotate[1] * _math__WEBPACK_IMPORTED_MODULE_1__["radians"], rotate.length > 2 ? rotate[2] * _math__WEBPACK_IMPORTED_MODULE_1__["radians"] : 0);
  8812. function forward(coordinates) {
  8813. coordinates = rotate(coordinates[0] * _math__WEBPACK_IMPORTED_MODULE_1__["radians"], coordinates[1] * _math__WEBPACK_IMPORTED_MODULE_1__["radians"]);
  8814. return coordinates[0] *= _math__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates[1] *= _math__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates;
  8815. }
  8816. forward.invert = function(coordinates) {
  8817. coordinates = rotate.invert(coordinates[0] * _math__WEBPACK_IMPORTED_MODULE_1__["radians"], coordinates[1] * _math__WEBPACK_IMPORTED_MODULE_1__["radians"]);
  8818. return coordinates[0] *= _math__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates[1] *= _math__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates;
  8819. };
  8820. return forward;
  8821. });
  8822. /***/ }),
  8823. /***/ "./node_modules/d3-geo/src/stream.js":
  8824. /*!*******************************************!*\
  8825. !*** ./node_modules/d3-geo/src/stream.js ***!
  8826. \*******************************************/
  8827. /*! exports provided: default */
  8828. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8829. "use strict";
  8830. __webpack_require__.r(__webpack_exports__);
  8831. function streamGeometry(geometry, stream) {
  8832. if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {
  8833. streamGeometryType[geometry.type](geometry, stream);
  8834. }
  8835. }
  8836. var streamObjectType = {
  8837. Feature: function(object, stream) {
  8838. streamGeometry(object.geometry, stream);
  8839. },
  8840. FeatureCollection: function(object, stream) {
  8841. var features = object.features, i = -1, n = features.length;
  8842. while (++i < n) streamGeometry(features[i].geometry, stream);
  8843. }
  8844. };
  8845. var streamGeometryType = {
  8846. Sphere: function(object, stream) {
  8847. stream.sphere();
  8848. },
  8849. Point: function(object, stream) {
  8850. object = object.coordinates;
  8851. stream.point(object[0], object[1], object[2]);
  8852. },
  8853. MultiPoint: function(object, stream) {
  8854. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  8855. while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);
  8856. },
  8857. LineString: function(object, stream) {
  8858. streamLine(object.coordinates, stream, 0);
  8859. },
  8860. MultiLineString: function(object, stream) {
  8861. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  8862. while (++i < n) streamLine(coordinates[i], stream, 0);
  8863. },
  8864. Polygon: function(object, stream) {
  8865. streamPolygon(object.coordinates, stream);
  8866. },
  8867. MultiPolygon: function(object, stream) {
  8868. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  8869. while (++i < n) streamPolygon(coordinates[i], stream);
  8870. },
  8871. GeometryCollection: function(object, stream) {
  8872. var geometries = object.geometries, i = -1, n = geometries.length;
  8873. while (++i < n) streamGeometry(geometries[i], stream);
  8874. }
  8875. };
  8876. function streamLine(coordinates, stream, closed) {
  8877. var i = -1, n = coordinates.length - closed, coordinate;
  8878. stream.lineStart();
  8879. while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);
  8880. stream.lineEnd();
  8881. }
  8882. function streamPolygon(coordinates, stream) {
  8883. var i = -1, n = coordinates.length;
  8884. stream.polygonStart();
  8885. while (++i < n) streamLine(coordinates[i], stream, 1);
  8886. stream.polygonEnd();
  8887. }
  8888. /* harmony default export */ __webpack_exports__["default"] = (function(object, stream) {
  8889. if (object && streamObjectType.hasOwnProperty(object.type)) {
  8890. streamObjectType[object.type](object, stream);
  8891. } else {
  8892. streamGeometry(object, stream);
  8893. }
  8894. });
  8895. /***/ }),
  8896. /***/ "./node_modules/d3-geo/src/transform.js":
  8897. /*!**********************************************!*\
  8898. !*** ./node_modules/d3-geo/src/transform.js ***!
  8899. \**********************************************/
  8900. /*! exports provided: default, transformer */
  8901. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8902. "use strict";
  8903. __webpack_require__.r(__webpack_exports__);
  8904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformer", function() { return transformer; });
  8905. /* harmony default export */ __webpack_exports__["default"] = (function(methods) {
  8906. return {
  8907. stream: transformer(methods)
  8908. };
  8909. });
  8910. function transformer(methods) {
  8911. return function(stream) {
  8912. var s = new TransformStream;
  8913. for (var key in methods) s[key] = methods[key];
  8914. s.stream = stream;
  8915. return s;
  8916. };
  8917. }
  8918. function TransformStream() {}
  8919. TransformStream.prototype = {
  8920. constructor: TransformStream,
  8921. point: function(x, y) { this.stream.point(x, y); },
  8922. sphere: function() { this.stream.sphere(); },
  8923. lineStart: function() { this.stream.lineStart(); },
  8924. lineEnd: function() { this.stream.lineEnd(); },
  8925. polygonStart: function() { this.stream.polygonStart(); },
  8926. polygonEnd: function() { this.stream.polygonEnd(); }
  8927. };
  8928. /***/ }),
  8929. /***/ "./node_modules/d3-hierarchy/src/accessors.js":
  8930. /*!****************************************************!*\
  8931. !*** ./node_modules/d3-hierarchy/src/accessors.js ***!
  8932. \****************************************************/
  8933. /*! exports provided: optional, required */
  8934. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8935. "use strict";
  8936. __webpack_require__.r(__webpack_exports__);
  8937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "optional", function() { return optional; });
  8938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "required", function() { return required; });
  8939. function optional(f) {
  8940. return f == null ? null : required(f);
  8941. }
  8942. function required(f) {
  8943. if (typeof f !== "function") throw new Error;
  8944. return f;
  8945. }
  8946. /***/ }),
  8947. /***/ "./node_modules/d3-hierarchy/src/array.js":
  8948. /*!************************************************!*\
  8949. !*** ./node_modules/d3-hierarchy/src/array.js ***!
  8950. \************************************************/
  8951. /*! exports provided: slice, shuffle */
  8952. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8953. "use strict";
  8954. __webpack_require__.r(__webpack_exports__);
  8955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  8956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return shuffle; });
  8957. var slice = Array.prototype.slice;
  8958. function shuffle(array) {
  8959. var m = array.length,
  8960. t,
  8961. i;
  8962. while (m) {
  8963. i = Math.random() * m-- | 0;
  8964. t = array[m];
  8965. array[m] = array[i];
  8966. array[i] = t;
  8967. }
  8968. return array;
  8969. }
  8970. /***/ }),
  8971. /***/ "./node_modules/d3-hierarchy/src/cluster.js":
  8972. /*!**************************************************!*\
  8973. !*** ./node_modules/d3-hierarchy/src/cluster.js ***!
  8974. \**************************************************/
  8975. /*! exports provided: default */
  8976. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8977. "use strict";
  8978. __webpack_require__.r(__webpack_exports__);
  8979. function defaultSeparation(a, b) {
  8980. return a.parent === b.parent ? 1 : 2;
  8981. }
  8982. function meanX(children) {
  8983. return children.reduce(meanXReduce, 0) / children.length;
  8984. }
  8985. function meanXReduce(x, c) {
  8986. return x + c.x;
  8987. }
  8988. function maxY(children) {
  8989. return 1 + children.reduce(maxYReduce, 0);
  8990. }
  8991. function maxYReduce(y, c) {
  8992. return Math.max(y, c.y);
  8993. }
  8994. function leafLeft(node) {
  8995. var children;
  8996. while (children = node.children) node = children[0];
  8997. return node;
  8998. }
  8999. function leafRight(node) {
  9000. var children;
  9001. while (children = node.children) node = children[children.length - 1];
  9002. return node;
  9003. }
  9004. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9005. var separation = defaultSeparation,
  9006. dx = 1,
  9007. dy = 1,
  9008. nodeSize = false;
  9009. function cluster(root) {
  9010. var previousNode,
  9011. x = 0;
  9012. // First walk, computing the initial x & y values.
  9013. root.eachAfter(function(node) {
  9014. var children = node.children;
  9015. if (children) {
  9016. node.x = meanX(children);
  9017. node.y = maxY(children);
  9018. } else {
  9019. node.x = previousNode ? x += separation(node, previousNode) : 0;
  9020. node.y = 0;
  9021. previousNode = node;
  9022. }
  9023. });
  9024. var left = leafLeft(root),
  9025. right = leafRight(root),
  9026. x0 = left.x - separation(left, right) / 2,
  9027. x1 = right.x + separation(right, left) / 2;
  9028. // Second walk, normalizing x & y to the desired size.
  9029. return root.eachAfter(nodeSize ? function(node) {
  9030. node.x = (node.x - root.x) * dx;
  9031. node.y = (root.y - node.y) * dy;
  9032. } : function(node) {
  9033. node.x = (node.x - x0) / (x1 - x0) * dx;
  9034. node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;
  9035. });
  9036. }
  9037. cluster.separation = function(x) {
  9038. return arguments.length ? (separation = x, cluster) : separation;
  9039. };
  9040. cluster.size = function(x) {
  9041. return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);
  9042. };
  9043. cluster.nodeSize = function(x) {
  9044. return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);
  9045. };
  9046. return cluster;
  9047. });
  9048. /***/ }),
  9049. /***/ "./node_modules/d3-hierarchy/src/constant.js":
  9050. /*!***************************************************!*\
  9051. !*** ./node_modules/d3-hierarchy/src/constant.js ***!
  9052. \***************************************************/
  9053. /*! exports provided: constantZero, default */
  9054. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9055. "use strict";
  9056. __webpack_require__.r(__webpack_exports__);
  9057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "constantZero", function() { return constantZero; });
  9058. function constantZero() {
  9059. return 0;
  9060. }
  9061. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  9062. return function() {
  9063. return x;
  9064. };
  9065. });
  9066. /***/ }),
  9067. /***/ "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js":
  9068. /*!**************************************************************!*\
  9069. !*** ./node_modules/d3-hierarchy/src/hierarchy/ancestors.js ***!
  9070. \**************************************************************/
  9071. /*! exports provided: default */
  9072. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9073. "use strict";
  9074. __webpack_require__.r(__webpack_exports__);
  9075. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9076. var node = this, nodes = [node];
  9077. while (node = node.parent) {
  9078. nodes.push(node);
  9079. }
  9080. return nodes;
  9081. });
  9082. /***/ }),
  9083. /***/ "./node_modules/d3-hierarchy/src/hierarchy/count.js":
  9084. /*!**********************************************************!*\
  9085. !*** ./node_modules/d3-hierarchy/src/hierarchy/count.js ***!
  9086. \**********************************************************/
  9087. /*! exports provided: default */
  9088. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9089. "use strict";
  9090. __webpack_require__.r(__webpack_exports__);
  9091. function count(node) {
  9092. var sum = 0,
  9093. children = node.children,
  9094. i = children && children.length;
  9095. if (!i) sum = 1;
  9096. else while (--i >= 0) sum += children[i].value;
  9097. node.value = sum;
  9098. }
  9099. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9100. return this.eachAfter(count);
  9101. });
  9102. /***/ }),
  9103. /***/ "./node_modules/d3-hierarchy/src/hierarchy/descendants.js":
  9104. /*!****************************************************************!*\
  9105. !*** ./node_modules/d3-hierarchy/src/hierarchy/descendants.js ***!
  9106. \****************************************************************/
  9107. /*! exports provided: default */
  9108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9109. "use strict";
  9110. __webpack_require__.r(__webpack_exports__);
  9111. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9112. var nodes = [];
  9113. this.each(function(node) {
  9114. nodes.push(node);
  9115. });
  9116. return nodes;
  9117. });
  9118. /***/ }),
  9119. /***/ "./node_modules/d3-hierarchy/src/hierarchy/each.js":
  9120. /*!*********************************************************!*\
  9121. !*** ./node_modules/d3-hierarchy/src/hierarchy/each.js ***!
  9122. \*********************************************************/
  9123. /*! exports provided: default */
  9124. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9125. "use strict";
  9126. __webpack_require__.r(__webpack_exports__);
  9127. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  9128. var node = this, current, next = [node], children, i, n;
  9129. do {
  9130. current = next.reverse(), next = [];
  9131. while (node = current.pop()) {
  9132. callback(node), children = node.children;
  9133. if (children) for (i = 0, n = children.length; i < n; ++i) {
  9134. next.push(children[i]);
  9135. }
  9136. }
  9137. } while (next.length);
  9138. return this;
  9139. });
  9140. /***/ }),
  9141. /***/ "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js":
  9142. /*!**************************************************************!*\
  9143. !*** ./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js ***!
  9144. \**************************************************************/
  9145. /*! exports provided: default */
  9146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9147. "use strict";
  9148. __webpack_require__.r(__webpack_exports__);
  9149. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  9150. var node = this, nodes = [node], next = [], children, i, n;
  9151. while (node = nodes.pop()) {
  9152. next.push(node), children = node.children;
  9153. if (children) for (i = 0, n = children.length; i < n; ++i) {
  9154. nodes.push(children[i]);
  9155. }
  9156. }
  9157. while (node = next.pop()) {
  9158. callback(node);
  9159. }
  9160. return this;
  9161. });
  9162. /***/ }),
  9163. /***/ "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js":
  9164. /*!***************************************************************!*\
  9165. !*** ./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js ***!
  9166. \***************************************************************/
  9167. /*! exports provided: default */
  9168. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9169. "use strict";
  9170. __webpack_require__.r(__webpack_exports__);
  9171. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  9172. var node = this, nodes = [node], children, i;
  9173. while (node = nodes.pop()) {
  9174. callback(node), children = node.children;
  9175. if (children) for (i = children.length - 1; i >= 0; --i) {
  9176. nodes.push(children[i]);
  9177. }
  9178. }
  9179. return this;
  9180. });
  9181. /***/ }),
  9182. /***/ "./node_modules/d3-hierarchy/src/hierarchy/index.js":
  9183. /*!**********************************************************!*\
  9184. !*** ./node_modules/d3-hierarchy/src/hierarchy/index.js ***!
  9185. \**********************************************************/
  9186. /*! exports provided: default, computeHeight, Node */
  9187. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9188. "use strict";
  9189. __webpack_require__.r(__webpack_exports__);
  9190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return hierarchy; });
  9191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "computeHeight", function() { return computeHeight; });
  9192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Node", function() { return Node; });
  9193. /* harmony import */ var _count__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./count */ "./node_modules/d3-hierarchy/src/hierarchy/count.js");
  9194. /* harmony import */ var _each__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./each */ "./node_modules/d3-hierarchy/src/hierarchy/each.js");
  9195. /* harmony import */ var _eachBefore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./eachBefore */ "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js");
  9196. /* harmony import */ var _eachAfter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./eachAfter */ "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js");
  9197. /* harmony import */ var _sum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sum */ "./node_modules/d3-hierarchy/src/hierarchy/sum.js");
  9198. /* harmony import */ var _sort__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sort */ "./node_modules/d3-hierarchy/src/hierarchy/sort.js");
  9199. /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path */ "./node_modules/d3-hierarchy/src/hierarchy/path.js");
  9200. /* harmony import */ var _ancestors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ancestors */ "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js");
  9201. /* harmony import */ var _descendants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./descendants */ "./node_modules/d3-hierarchy/src/hierarchy/descendants.js");
  9202. /* harmony import */ var _leaves__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./leaves */ "./node_modules/d3-hierarchy/src/hierarchy/leaves.js");
  9203. /* harmony import */ var _links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./links */ "./node_modules/d3-hierarchy/src/hierarchy/links.js");
  9204. function hierarchy(data, children) {
  9205. var root = new Node(data),
  9206. valued = +data.value && (root.value = data.value),
  9207. node,
  9208. nodes = [root],
  9209. child,
  9210. childs,
  9211. i,
  9212. n;
  9213. if (children == null) children = defaultChildren;
  9214. while (node = nodes.pop()) {
  9215. if (valued) node.value = +node.data.value;
  9216. if ((childs = children(node.data)) && (n = childs.length)) {
  9217. node.children = new Array(n);
  9218. for (i = n - 1; i >= 0; --i) {
  9219. nodes.push(child = node.children[i] = new Node(childs[i]));
  9220. child.parent = node;
  9221. child.depth = node.depth + 1;
  9222. }
  9223. }
  9224. }
  9225. return root.eachBefore(computeHeight);
  9226. }
  9227. function node_copy() {
  9228. return hierarchy(this).eachBefore(copyData);
  9229. }
  9230. function defaultChildren(d) {
  9231. return d.children;
  9232. }
  9233. function copyData(node) {
  9234. node.data = node.data.data;
  9235. }
  9236. function computeHeight(node) {
  9237. var height = 0;
  9238. do node.height = height;
  9239. while ((node = node.parent) && (node.height < ++height));
  9240. }
  9241. function Node(data) {
  9242. this.data = data;
  9243. this.depth =
  9244. this.height = 0;
  9245. this.parent = null;
  9246. }
  9247. Node.prototype = hierarchy.prototype = {
  9248. constructor: Node,
  9249. count: _count__WEBPACK_IMPORTED_MODULE_0__["default"],
  9250. each: _each__WEBPACK_IMPORTED_MODULE_1__["default"],
  9251. eachAfter: _eachAfter__WEBPACK_IMPORTED_MODULE_3__["default"],
  9252. eachBefore: _eachBefore__WEBPACK_IMPORTED_MODULE_2__["default"],
  9253. sum: _sum__WEBPACK_IMPORTED_MODULE_4__["default"],
  9254. sort: _sort__WEBPACK_IMPORTED_MODULE_5__["default"],
  9255. path: _path__WEBPACK_IMPORTED_MODULE_6__["default"],
  9256. ancestors: _ancestors__WEBPACK_IMPORTED_MODULE_7__["default"],
  9257. descendants: _descendants__WEBPACK_IMPORTED_MODULE_8__["default"],
  9258. leaves: _leaves__WEBPACK_IMPORTED_MODULE_9__["default"],
  9259. links: _links__WEBPACK_IMPORTED_MODULE_10__["default"],
  9260. copy: node_copy
  9261. };
  9262. /***/ }),
  9263. /***/ "./node_modules/d3-hierarchy/src/hierarchy/leaves.js":
  9264. /*!***********************************************************!*\
  9265. !*** ./node_modules/d3-hierarchy/src/hierarchy/leaves.js ***!
  9266. \***********************************************************/
  9267. /*! exports provided: default */
  9268. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9269. "use strict";
  9270. __webpack_require__.r(__webpack_exports__);
  9271. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9272. var leaves = [];
  9273. this.eachBefore(function(node) {
  9274. if (!node.children) {
  9275. leaves.push(node);
  9276. }
  9277. });
  9278. return leaves;
  9279. });
  9280. /***/ }),
  9281. /***/ "./node_modules/d3-hierarchy/src/hierarchy/links.js":
  9282. /*!**********************************************************!*\
  9283. !*** ./node_modules/d3-hierarchy/src/hierarchy/links.js ***!
  9284. \**********************************************************/
  9285. /*! exports provided: default */
  9286. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9287. "use strict";
  9288. __webpack_require__.r(__webpack_exports__);
  9289. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9290. var root = this, links = [];
  9291. root.each(function(node) {
  9292. if (node !== root) { // Don’t include the root’s parent, if any.
  9293. links.push({source: node.parent, target: node});
  9294. }
  9295. });
  9296. return links;
  9297. });
  9298. /***/ }),
  9299. /***/ "./node_modules/d3-hierarchy/src/hierarchy/path.js":
  9300. /*!*********************************************************!*\
  9301. !*** ./node_modules/d3-hierarchy/src/hierarchy/path.js ***!
  9302. \*********************************************************/
  9303. /*! exports provided: default */
  9304. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9305. "use strict";
  9306. __webpack_require__.r(__webpack_exports__);
  9307. /* harmony default export */ __webpack_exports__["default"] = (function(end) {
  9308. var start = this,
  9309. ancestor = leastCommonAncestor(start, end),
  9310. nodes = [start];
  9311. while (start !== ancestor) {
  9312. start = start.parent;
  9313. nodes.push(start);
  9314. }
  9315. var k = nodes.length;
  9316. while (end !== ancestor) {
  9317. nodes.splice(k, 0, end);
  9318. end = end.parent;
  9319. }
  9320. return nodes;
  9321. });
  9322. function leastCommonAncestor(a, b) {
  9323. if (a === b) return a;
  9324. var aNodes = a.ancestors(),
  9325. bNodes = b.ancestors(),
  9326. c = null;
  9327. a = aNodes.pop();
  9328. b = bNodes.pop();
  9329. while (a === b) {
  9330. c = a;
  9331. a = aNodes.pop();
  9332. b = bNodes.pop();
  9333. }
  9334. return c;
  9335. }
  9336. /***/ }),
  9337. /***/ "./node_modules/d3-hierarchy/src/hierarchy/sort.js":
  9338. /*!*********************************************************!*\
  9339. !*** ./node_modules/d3-hierarchy/src/hierarchy/sort.js ***!
  9340. \*********************************************************/
  9341. /*! exports provided: default */
  9342. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9343. "use strict";
  9344. __webpack_require__.r(__webpack_exports__);
  9345. /* harmony default export */ __webpack_exports__["default"] = (function(compare) {
  9346. return this.eachBefore(function(node) {
  9347. if (node.children) {
  9348. node.children.sort(compare);
  9349. }
  9350. });
  9351. });
  9352. /***/ }),
  9353. /***/ "./node_modules/d3-hierarchy/src/hierarchy/sum.js":
  9354. /*!********************************************************!*\
  9355. !*** ./node_modules/d3-hierarchy/src/hierarchy/sum.js ***!
  9356. \********************************************************/
  9357. /*! exports provided: default */
  9358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9359. "use strict";
  9360. __webpack_require__.r(__webpack_exports__);
  9361. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  9362. return this.eachAfter(function(node) {
  9363. var sum = +value(node.data) || 0,
  9364. children = node.children,
  9365. i = children && children.length;
  9366. while (--i >= 0) sum += children[i].value;
  9367. node.value = sum;
  9368. });
  9369. });
  9370. /***/ }),
  9371. /***/ "./node_modules/d3-hierarchy/src/index.js":
  9372. /*!************************************************!*\
  9373. !*** ./node_modules/d3-hierarchy/src/index.js ***!
  9374. \************************************************/
  9375. /*! exports provided: cluster, hierarchy, pack, packSiblings, packEnclose, partition, stratify, tree, treemap, treemapBinary, treemapDice, treemapSlice, treemapSliceDice, treemapSquarify, treemapResquarify */
  9376. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9377. "use strict";
  9378. __webpack_require__.r(__webpack_exports__);
  9379. /* harmony import */ var _cluster__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cluster */ "./node_modules/d3-hierarchy/src/cluster.js");
  9380. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cluster", function() { return _cluster__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  9381. /* harmony import */ var _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/index */ "./node_modules/d3-hierarchy/src/hierarchy/index.js");
  9382. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hierarchy", function() { return _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  9383. /* harmony import */ var _pack_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pack/index */ "./node_modules/d3-hierarchy/src/pack/index.js");
  9384. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pack", function() { return _pack_index__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  9385. /* harmony import */ var _pack_siblings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pack/siblings */ "./node_modules/d3-hierarchy/src/pack/siblings.js");
  9386. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packSiblings", function() { return _pack_siblings__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  9387. /* harmony import */ var _pack_enclose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pack/enclose */ "./node_modules/d3-hierarchy/src/pack/enclose.js");
  9388. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return _pack_enclose__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  9389. /* harmony import */ var _partition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./partition */ "./node_modules/d3-hierarchy/src/partition.js");
  9390. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return _partition__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  9391. /* harmony import */ var _stratify__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./stratify */ "./node_modules/d3-hierarchy/src/stratify.js");
  9392. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stratify", function() { return _stratify__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  9393. /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tree */ "./node_modules/d3-hierarchy/src/tree.js");
  9394. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tree", function() { return _tree__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  9395. /* harmony import */ var _treemap_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./treemap/index */ "./node_modules/d3-hierarchy/src/treemap/index.js");
  9396. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemap", function() { return _treemap_index__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  9397. /* harmony import */ var _treemap_binary__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./treemap/binary */ "./node_modules/d3-hierarchy/src/treemap/binary.js");
  9398. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapBinary", function() { return _treemap_binary__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  9399. /* harmony import */ var _treemap_dice__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./treemap/dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  9400. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapDice", function() { return _treemap_dice__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  9401. /* harmony import */ var _treemap_slice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./treemap/slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  9402. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSlice", function() { return _treemap_slice__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  9403. /* harmony import */ var _treemap_sliceDice__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./treemap/sliceDice */ "./node_modules/d3-hierarchy/src/treemap/sliceDice.js");
  9404. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSliceDice", function() { return _treemap_sliceDice__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  9405. /* harmony import */ var _treemap_squarify__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./treemap/squarify */ "./node_modules/d3-hierarchy/src/treemap/squarify.js");
  9406. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSquarify", function() { return _treemap_squarify__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  9407. /* harmony import */ var _treemap_resquarify__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./treemap/resquarify */ "./node_modules/d3-hierarchy/src/treemap/resquarify.js");
  9408. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapResquarify", function() { return _treemap_resquarify__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  9409. /***/ }),
  9410. /***/ "./node_modules/d3-hierarchy/src/pack/enclose.js":
  9411. /*!*******************************************************!*\
  9412. !*** ./node_modules/d3-hierarchy/src/pack/enclose.js ***!
  9413. \*******************************************************/
  9414. /*! exports provided: default */
  9415. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9416. "use strict";
  9417. __webpack_require__.r(__webpack_exports__);
  9418. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array */ "./node_modules/d3-hierarchy/src/array.js");
  9419. /* harmony default export */ __webpack_exports__["default"] = (function(circles) {
  9420. var i = 0, n = (circles = Object(_array__WEBPACK_IMPORTED_MODULE_0__["shuffle"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(circles))).length, B = [], p, e;
  9421. while (i < n) {
  9422. p = circles[i];
  9423. if (e && enclosesWeak(e, p)) ++i;
  9424. else e = encloseBasis(B = extendBasis(B, p)), i = 0;
  9425. }
  9426. return e;
  9427. });
  9428. function extendBasis(B, p) {
  9429. var i, j;
  9430. if (enclosesWeakAll(p, B)) return [p];
  9431. // If we get here then B must have at least one element.
  9432. for (i = 0; i < B.length; ++i) {
  9433. if (enclosesNot(p, B[i])
  9434. && enclosesWeakAll(encloseBasis2(B[i], p), B)) {
  9435. return [B[i], p];
  9436. }
  9437. }
  9438. // If we get here then B must have at least two elements.
  9439. for (i = 0; i < B.length - 1; ++i) {
  9440. for (j = i + 1; j < B.length; ++j) {
  9441. if (enclosesNot(encloseBasis2(B[i], B[j]), p)
  9442. && enclosesNot(encloseBasis2(B[i], p), B[j])
  9443. && enclosesNot(encloseBasis2(B[j], p), B[i])
  9444. && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {
  9445. return [B[i], B[j], p];
  9446. }
  9447. }
  9448. }
  9449. // If we get here then something is very wrong.
  9450. throw new Error;
  9451. }
  9452. function enclosesNot(a, b) {
  9453. var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;
  9454. return dr < 0 || dr * dr < dx * dx + dy * dy;
  9455. }
  9456. function enclosesWeak(a, b) {
  9457. var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;
  9458. return dr > 0 && dr * dr > dx * dx + dy * dy;
  9459. }
  9460. function enclosesWeakAll(a, B) {
  9461. for (var i = 0; i < B.length; ++i) {
  9462. if (!enclosesWeak(a, B[i])) {
  9463. return false;
  9464. }
  9465. }
  9466. return true;
  9467. }
  9468. function encloseBasis(B) {
  9469. switch (B.length) {
  9470. case 1: return encloseBasis1(B[0]);
  9471. case 2: return encloseBasis2(B[0], B[1]);
  9472. case 3: return encloseBasis3(B[0], B[1], B[2]);
  9473. }
  9474. }
  9475. function encloseBasis1(a) {
  9476. return {
  9477. x: a.x,
  9478. y: a.y,
  9479. r: a.r
  9480. };
  9481. }
  9482. function encloseBasis2(a, b) {
  9483. var x1 = a.x, y1 = a.y, r1 = a.r,
  9484. x2 = b.x, y2 = b.y, r2 = b.r,
  9485. x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,
  9486. l = Math.sqrt(x21 * x21 + y21 * y21);
  9487. return {
  9488. x: (x1 + x2 + x21 / l * r21) / 2,
  9489. y: (y1 + y2 + y21 / l * r21) / 2,
  9490. r: (l + r1 + r2) / 2
  9491. };
  9492. }
  9493. function encloseBasis3(a, b, c) {
  9494. var x1 = a.x, y1 = a.y, r1 = a.r,
  9495. x2 = b.x, y2 = b.y, r2 = b.r,
  9496. x3 = c.x, y3 = c.y, r3 = c.r,
  9497. a2 = x1 - x2,
  9498. a3 = x1 - x3,
  9499. b2 = y1 - y2,
  9500. b3 = y1 - y3,
  9501. c2 = r2 - r1,
  9502. c3 = r3 - r1,
  9503. d1 = x1 * x1 + y1 * y1 - r1 * r1,
  9504. d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,
  9505. d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,
  9506. ab = a3 * b2 - a2 * b3,
  9507. xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,
  9508. xb = (b3 * c2 - b2 * c3) / ab,
  9509. ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,
  9510. yb = (a2 * c3 - a3 * c2) / ab,
  9511. A = xb * xb + yb * yb - 1,
  9512. B = 2 * (r1 + xa * xb + ya * yb),
  9513. C = xa * xa + ya * ya - r1 * r1,
  9514. r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);
  9515. return {
  9516. x: x1 + xa + xb * r,
  9517. y: y1 + ya + yb * r,
  9518. r: r
  9519. };
  9520. }
  9521. /***/ }),
  9522. /***/ "./node_modules/d3-hierarchy/src/pack/index.js":
  9523. /*!*****************************************************!*\
  9524. !*** ./node_modules/d3-hierarchy/src/pack/index.js ***!
  9525. \*****************************************************/
  9526. /*! exports provided: default */
  9527. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9528. "use strict";
  9529. __webpack_require__.r(__webpack_exports__);
  9530. /* harmony import */ var _siblings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./siblings */ "./node_modules/d3-hierarchy/src/pack/siblings.js");
  9531. /* harmony import */ var _accessors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../accessors */ "./node_modules/d3-hierarchy/src/accessors.js");
  9532. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-hierarchy/src/constant.js");
  9533. function defaultRadius(d) {
  9534. return Math.sqrt(d.value);
  9535. }
  9536. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9537. var radius = null,
  9538. dx = 1,
  9539. dy = 1,
  9540. padding = _constant__WEBPACK_IMPORTED_MODULE_2__["constantZero"];
  9541. function pack(root) {
  9542. root.x = dx / 2, root.y = dy / 2;
  9543. if (radius) {
  9544. root.eachBefore(radiusLeaf(radius))
  9545. .eachAfter(packChildren(padding, 0.5))
  9546. .eachBefore(translateChild(1));
  9547. } else {
  9548. root.eachBefore(radiusLeaf(defaultRadius))
  9549. .eachAfter(packChildren(_constant__WEBPACK_IMPORTED_MODULE_2__["constantZero"], 1))
  9550. .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))
  9551. .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));
  9552. }
  9553. return root;
  9554. }
  9555. pack.radius = function(x) {
  9556. return arguments.length ? (radius = Object(_accessors__WEBPACK_IMPORTED_MODULE_1__["optional"])(x), pack) : radius;
  9557. };
  9558. pack.size = function(x) {
  9559. return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];
  9560. };
  9561. pack.padding = function(x) {
  9562. return arguments.length ? (padding = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(+x), pack) : padding;
  9563. };
  9564. return pack;
  9565. });
  9566. function radiusLeaf(radius) {
  9567. return function(node) {
  9568. if (!node.children) {
  9569. node.r = Math.max(0, +radius(node) || 0);
  9570. }
  9571. };
  9572. }
  9573. function packChildren(padding, k) {
  9574. return function(node) {
  9575. if (children = node.children) {
  9576. var children,
  9577. i,
  9578. n = children.length,
  9579. r = padding(node) * k || 0,
  9580. e;
  9581. if (r) for (i = 0; i < n; ++i) children[i].r += r;
  9582. e = Object(_siblings__WEBPACK_IMPORTED_MODULE_0__["packEnclose"])(children);
  9583. if (r) for (i = 0; i < n; ++i) children[i].r -= r;
  9584. node.r = e + r;
  9585. }
  9586. };
  9587. }
  9588. function translateChild(k) {
  9589. return function(node) {
  9590. var parent = node.parent;
  9591. node.r *= k;
  9592. if (parent) {
  9593. node.x = parent.x + k * node.x;
  9594. node.y = parent.y + k * node.y;
  9595. }
  9596. };
  9597. }
  9598. /***/ }),
  9599. /***/ "./node_modules/d3-hierarchy/src/pack/siblings.js":
  9600. /*!********************************************************!*\
  9601. !*** ./node_modules/d3-hierarchy/src/pack/siblings.js ***!
  9602. \********************************************************/
  9603. /*! exports provided: packEnclose, default */
  9604. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9605. "use strict";
  9606. __webpack_require__.r(__webpack_exports__);
  9607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return packEnclose; });
  9608. /* harmony import */ var _enclose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enclose */ "./node_modules/d3-hierarchy/src/pack/enclose.js");
  9609. function place(b, a, c) {
  9610. var dx = b.x - a.x, x, a2,
  9611. dy = b.y - a.y, y, b2,
  9612. d2 = dx * dx + dy * dy;
  9613. if (d2) {
  9614. a2 = a.r + c.r, a2 *= a2;
  9615. b2 = b.r + c.r, b2 *= b2;
  9616. if (a2 > b2) {
  9617. x = (d2 + b2 - a2) / (2 * d2);
  9618. y = Math.sqrt(Math.max(0, b2 / d2 - x * x));
  9619. c.x = b.x - x * dx - y * dy;
  9620. c.y = b.y - x * dy + y * dx;
  9621. } else {
  9622. x = (d2 + a2 - b2) / (2 * d2);
  9623. y = Math.sqrt(Math.max(0, a2 / d2 - x * x));
  9624. c.x = a.x + x * dx - y * dy;
  9625. c.y = a.y + x * dy + y * dx;
  9626. }
  9627. } else {
  9628. c.x = a.x + c.r;
  9629. c.y = a.y;
  9630. }
  9631. }
  9632. function intersects(a, b) {
  9633. var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;
  9634. return dr > 0 && dr * dr > dx * dx + dy * dy;
  9635. }
  9636. function score(node) {
  9637. var a = node._,
  9638. b = node.next._,
  9639. ab = a.r + b.r,
  9640. dx = (a.x * b.r + b.x * a.r) / ab,
  9641. dy = (a.y * b.r + b.y * a.r) / ab;
  9642. return dx * dx + dy * dy;
  9643. }
  9644. function Node(circle) {
  9645. this._ = circle;
  9646. this.next = null;
  9647. this.previous = null;
  9648. }
  9649. function packEnclose(circles) {
  9650. if (!(n = circles.length)) return 0;
  9651. var a, b, c, n, aa, ca, i, j, k, sj, sk;
  9652. // Place the first circle.
  9653. a = circles[0], a.x = 0, a.y = 0;
  9654. if (!(n > 1)) return a.r;
  9655. // Place the second circle.
  9656. b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;
  9657. if (!(n > 2)) return a.r + b.r;
  9658. // Place the third circle.
  9659. place(b, a, c = circles[2]);
  9660. // Initialize the front-chain using the first three circles a, b and c.
  9661. a = new Node(a), b = new Node(b), c = new Node(c);
  9662. a.next = c.previous = b;
  9663. b.next = a.previous = c;
  9664. c.next = b.previous = a;
  9665. // Attempt to place each remaining circle…
  9666. pack: for (i = 3; i < n; ++i) {
  9667. place(a._, b._, c = circles[i]), c = new Node(c);
  9668. // Find the closest intersecting circle on the front-chain, if any.
  9669. // “Closeness” is determined by linear distance along the front-chain.
  9670. // “Ahead” or “behind” is likewise determined by linear distance.
  9671. j = b.next, k = a.previous, sj = b._.r, sk = a._.r;
  9672. do {
  9673. if (sj <= sk) {
  9674. if (intersects(j._, c._)) {
  9675. b = j, a.next = b, b.previous = a, --i;
  9676. continue pack;
  9677. }
  9678. sj += j._.r, j = j.next;
  9679. } else {
  9680. if (intersects(k._, c._)) {
  9681. a = k, a.next = b, b.previous = a, --i;
  9682. continue pack;
  9683. }
  9684. sk += k._.r, k = k.previous;
  9685. }
  9686. } while (j !== k.next);
  9687. // Success! Insert the new circle c between a and b.
  9688. c.previous = a, c.next = b, a.next = b.previous = b = c;
  9689. // Compute the new closest circle pair to the centroid.
  9690. aa = score(a);
  9691. while ((c = c.next) !== b) {
  9692. if ((ca = score(c)) < aa) {
  9693. a = c, aa = ca;
  9694. }
  9695. }
  9696. b = a.next;
  9697. }
  9698. // Compute the enclosing circle of the front chain.
  9699. a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = Object(_enclose__WEBPACK_IMPORTED_MODULE_0__["default"])(a);
  9700. // Translate the circles to put the enclosing circle around the origin.
  9701. for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;
  9702. return c.r;
  9703. }
  9704. /* harmony default export */ __webpack_exports__["default"] = (function(circles) {
  9705. packEnclose(circles);
  9706. return circles;
  9707. });
  9708. /***/ }),
  9709. /***/ "./node_modules/d3-hierarchy/src/partition.js":
  9710. /*!****************************************************!*\
  9711. !*** ./node_modules/d3-hierarchy/src/partition.js ***!
  9712. \****************************************************/
  9713. /*! exports provided: default */
  9714. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9715. "use strict";
  9716. __webpack_require__.r(__webpack_exports__);
  9717. /* harmony import */ var _treemap_round__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./treemap/round */ "./node_modules/d3-hierarchy/src/treemap/round.js");
  9718. /* harmony import */ var _treemap_dice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./treemap/dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  9719. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9720. var dx = 1,
  9721. dy = 1,
  9722. padding = 0,
  9723. round = false;
  9724. function partition(root) {
  9725. var n = root.height + 1;
  9726. root.x0 =
  9727. root.y0 = padding;
  9728. root.x1 = dx;
  9729. root.y1 = dy / n;
  9730. root.eachBefore(positionNode(dy, n));
  9731. if (round) root.eachBefore(_treemap_round__WEBPACK_IMPORTED_MODULE_0__["default"]);
  9732. return root;
  9733. }
  9734. function positionNode(dy, n) {
  9735. return function(node) {
  9736. if (node.children) {
  9737. Object(_treemap_dice__WEBPACK_IMPORTED_MODULE_1__["default"])(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);
  9738. }
  9739. var x0 = node.x0,
  9740. y0 = node.y0,
  9741. x1 = node.x1 - padding,
  9742. y1 = node.y1 - padding;
  9743. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  9744. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  9745. node.x0 = x0;
  9746. node.y0 = y0;
  9747. node.x1 = x1;
  9748. node.y1 = y1;
  9749. };
  9750. }
  9751. partition.round = function(x) {
  9752. return arguments.length ? (round = !!x, partition) : round;
  9753. };
  9754. partition.size = function(x) {
  9755. return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];
  9756. };
  9757. partition.padding = function(x) {
  9758. return arguments.length ? (padding = +x, partition) : padding;
  9759. };
  9760. return partition;
  9761. });
  9762. /***/ }),
  9763. /***/ "./node_modules/d3-hierarchy/src/stratify.js":
  9764. /*!***************************************************!*\
  9765. !*** ./node_modules/d3-hierarchy/src/stratify.js ***!
  9766. \***************************************************/
  9767. /*! exports provided: default */
  9768. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9769. "use strict";
  9770. __webpack_require__.r(__webpack_exports__);
  9771. /* harmony import */ var _accessors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./accessors */ "./node_modules/d3-hierarchy/src/accessors.js");
  9772. /* harmony import */ var _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/index */ "./node_modules/d3-hierarchy/src/hierarchy/index.js");
  9773. var keyPrefix = "$", // Protect against keys like “__proto__”.
  9774. preroot = {depth: -1},
  9775. ambiguous = {};
  9776. function defaultId(d) {
  9777. return d.id;
  9778. }
  9779. function defaultParentId(d) {
  9780. return d.parentId;
  9781. }
  9782. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9783. var id = defaultId,
  9784. parentId = defaultParentId;
  9785. function stratify(data) {
  9786. var d,
  9787. i,
  9788. n = data.length,
  9789. root,
  9790. parent,
  9791. node,
  9792. nodes = new Array(n),
  9793. nodeId,
  9794. nodeKey,
  9795. nodeByKey = {};
  9796. for (i = 0; i < n; ++i) {
  9797. d = data[i], node = nodes[i] = new _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__["Node"](d);
  9798. if ((nodeId = id(d, i, data)) != null && (nodeId += "")) {
  9799. nodeKey = keyPrefix + (node.id = nodeId);
  9800. nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;
  9801. }
  9802. }
  9803. for (i = 0; i < n; ++i) {
  9804. node = nodes[i], nodeId = parentId(data[i], i, data);
  9805. if (nodeId == null || !(nodeId += "")) {
  9806. if (root) throw new Error("multiple roots");
  9807. root = node;
  9808. } else {
  9809. parent = nodeByKey[keyPrefix + nodeId];
  9810. if (!parent) throw new Error("missing: " + nodeId);
  9811. if (parent === ambiguous) throw new Error("ambiguous: " + nodeId);
  9812. if (parent.children) parent.children.push(node);
  9813. else parent.children = [node];
  9814. node.parent = parent;
  9815. }
  9816. }
  9817. if (!root) throw new Error("no root");
  9818. root.parent = preroot;
  9819. root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(_hierarchy_index__WEBPACK_IMPORTED_MODULE_1__["computeHeight"]);
  9820. root.parent = null;
  9821. if (n > 0) throw new Error("cycle");
  9822. return root;
  9823. }
  9824. stratify.id = function(x) {
  9825. return arguments.length ? (id = Object(_accessors__WEBPACK_IMPORTED_MODULE_0__["required"])(x), stratify) : id;
  9826. };
  9827. stratify.parentId = function(x) {
  9828. return arguments.length ? (parentId = Object(_accessors__WEBPACK_IMPORTED_MODULE_0__["required"])(x), stratify) : parentId;
  9829. };
  9830. return stratify;
  9831. });
  9832. /***/ }),
  9833. /***/ "./node_modules/d3-hierarchy/src/tree.js":
  9834. /*!***********************************************!*\
  9835. !*** ./node_modules/d3-hierarchy/src/tree.js ***!
  9836. \***********************************************/
  9837. /*! exports provided: default */
  9838. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9839. "use strict";
  9840. __webpack_require__.r(__webpack_exports__);
  9841. /* harmony import */ var _hierarchy_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hierarchy/index */ "./node_modules/d3-hierarchy/src/hierarchy/index.js");
  9842. function defaultSeparation(a, b) {
  9843. return a.parent === b.parent ? 1 : 2;
  9844. }
  9845. // function radialSeparation(a, b) {
  9846. // return (a.parent === b.parent ? 1 : 2) / a.depth;
  9847. // }
  9848. // This function is used to traverse the left contour of a subtree (or
  9849. // subforest). It returns the successor of v on this contour. This successor is
  9850. // either given by the leftmost child of v or by the thread of v. The function
  9851. // returns null if and only if v is on the highest level of its subtree.
  9852. function nextLeft(v) {
  9853. var children = v.children;
  9854. return children ? children[0] : v.t;
  9855. }
  9856. // This function works analogously to nextLeft.
  9857. function nextRight(v) {
  9858. var children = v.children;
  9859. return children ? children[children.length - 1] : v.t;
  9860. }
  9861. // Shifts the current subtree rooted at w+. This is done by increasing
  9862. // prelim(w+) and mod(w+) by shift.
  9863. function moveSubtree(wm, wp, shift) {
  9864. var change = shift / (wp.i - wm.i);
  9865. wp.c -= change;
  9866. wp.s += shift;
  9867. wm.c += change;
  9868. wp.z += shift;
  9869. wp.m += shift;
  9870. }
  9871. // All other shifts, applied to the smaller subtrees between w- and w+, are
  9872. // performed by this function. To prepare the shifts, we have to adjust
  9873. // change(w+), shift(w+), and change(w-).
  9874. function executeShifts(v) {
  9875. var shift = 0,
  9876. change = 0,
  9877. children = v.children,
  9878. i = children.length,
  9879. w;
  9880. while (--i >= 0) {
  9881. w = children[i];
  9882. w.z += shift;
  9883. w.m += shift;
  9884. shift += w.s + (change += w.c);
  9885. }
  9886. }
  9887. // If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,
  9888. // returns the specified (default) ancestor.
  9889. function nextAncestor(vim, v, ancestor) {
  9890. return vim.a.parent === v.parent ? vim.a : ancestor;
  9891. }
  9892. function TreeNode(node, i) {
  9893. this._ = node;
  9894. this.parent = null;
  9895. this.children = null;
  9896. this.A = null; // default ancestor
  9897. this.a = this; // ancestor
  9898. this.z = 0; // prelim
  9899. this.m = 0; // mod
  9900. this.c = 0; // change
  9901. this.s = 0; // shift
  9902. this.t = null; // thread
  9903. this.i = i; // number
  9904. }
  9905. TreeNode.prototype = Object.create(_hierarchy_index__WEBPACK_IMPORTED_MODULE_0__["Node"].prototype);
  9906. function treeRoot(root) {
  9907. var tree = new TreeNode(root, 0),
  9908. node,
  9909. nodes = [tree],
  9910. child,
  9911. children,
  9912. i,
  9913. n;
  9914. while (node = nodes.pop()) {
  9915. if (children = node._.children) {
  9916. node.children = new Array(n = children.length);
  9917. for (i = n - 1; i >= 0; --i) {
  9918. nodes.push(child = node.children[i] = new TreeNode(children[i], i));
  9919. child.parent = node;
  9920. }
  9921. }
  9922. }
  9923. (tree.parent = new TreeNode(null, 0)).children = [tree];
  9924. return tree;
  9925. }
  9926. // Node-link tree diagram using the Reingold-Tilford "tidy" algorithm
  9927. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9928. var separation = defaultSeparation,
  9929. dx = 1,
  9930. dy = 1,
  9931. nodeSize = null;
  9932. function tree(root) {
  9933. var t = treeRoot(root);
  9934. // Compute the layout using Buchheim et al.’s algorithm.
  9935. t.eachAfter(firstWalk), t.parent.m = -t.z;
  9936. t.eachBefore(secondWalk);
  9937. // If a fixed node size is specified, scale x and y.
  9938. if (nodeSize) root.eachBefore(sizeNode);
  9939. // If a fixed tree size is specified, scale x and y based on the extent.
  9940. // Compute the left-most, right-most, and depth-most nodes for extents.
  9941. else {
  9942. var left = root,
  9943. right = root,
  9944. bottom = root;
  9945. root.eachBefore(function(node) {
  9946. if (node.x < left.x) left = node;
  9947. if (node.x > right.x) right = node;
  9948. if (node.depth > bottom.depth) bottom = node;
  9949. });
  9950. var s = left === right ? 1 : separation(left, right) / 2,
  9951. tx = s - left.x,
  9952. kx = dx / (right.x + s + tx),
  9953. ky = dy / (bottom.depth || 1);
  9954. root.eachBefore(function(node) {
  9955. node.x = (node.x + tx) * kx;
  9956. node.y = node.depth * ky;
  9957. });
  9958. }
  9959. return root;
  9960. }
  9961. // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is
  9962. // applied recursively to the children of v, as well as the function
  9963. // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the
  9964. // node v is placed to the midpoint of its outermost children.
  9965. function firstWalk(v) {
  9966. var children = v.children,
  9967. siblings = v.parent.children,
  9968. w = v.i ? siblings[v.i - 1] : null;
  9969. if (children) {
  9970. executeShifts(v);
  9971. var midpoint = (children[0].z + children[children.length - 1].z) / 2;
  9972. if (w) {
  9973. v.z = w.z + separation(v._, w._);
  9974. v.m = v.z - midpoint;
  9975. } else {
  9976. v.z = midpoint;
  9977. }
  9978. } else if (w) {
  9979. v.z = w.z + separation(v._, w._);
  9980. }
  9981. v.parent.A = apportion(v, w, v.parent.A || siblings[0]);
  9982. }
  9983. // Computes all real x-coordinates by summing up the modifiers recursively.
  9984. function secondWalk(v) {
  9985. v._.x = v.z + v.parent.m;
  9986. v.m += v.parent.m;
  9987. }
  9988. // The core of the algorithm. Here, a new subtree is combined with the
  9989. // previous subtrees. Threads are used to traverse the inside and outside
  9990. // contours of the left and right subtree up to the highest common level. The
  9991. // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the
  9992. // superscript o means outside and i means inside, the subscript - means left
  9993. // subtree and + means right subtree. For summing up the modifiers along the
  9994. // contour, we use respective variables si+, si-, so-, and so+. Whenever two
  9995. // nodes of the inside contours conflict, we compute the left one of the
  9996. // greatest uncommon ancestors using the function ANCESTOR and call MOVE
  9997. // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.
  9998. // Finally, we add a new thread (if necessary).
  9999. function apportion(v, w, ancestor) {
  10000. if (w) {
  10001. var vip = v,
  10002. vop = v,
  10003. vim = w,
  10004. vom = vip.parent.children[0],
  10005. sip = vip.m,
  10006. sop = vop.m,
  10007. sim = vim.m,
  10008. som = vom.m,
  10009. shift;
  10010. while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {
  10011. vom = nextLeft(vom);
  10012. vop = nextRight(vop);
  10013. vop.a = v;
  10014. shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);
  10015. if (shift > 0) {
  10016. moveSubtree(nextAncestor(vim, v, ancestor), v, shift);
  10017. sip += shift;
  10018. sop += shift;
  10019. }
  10020. sim += vim.m;
  10021. sip += vip.m;
  10022. som += vom.m;
  10023. sop += vop.m;
  10024. }
  10025. if (vim && !nextRight(vop)) {
  10026. vop.t = vim;
  10027. vop.m += sim - sop;
  10028. }
  10029. if (vip && !nextLeft(vom)) {
  10030. vom.t = vip;
  10031. vom.m += sip - som;
  10032. ancestor = v;
  10033. }
  10034. }
  10035. return ancestor;
  10036. }
  10037. function sizeNode(node) {
  10038. node.x *= dx;
  10039. node.y = node.depth * dy;
  10040. }
  10041. tree.separation = function(x) {
  10042. return arguments.length ? (separation = x, tree) : separation;
  10043. };
  10044. tree.size = function(x) {
  10045. return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);
  10046. };
  10047. tree.nodeSize = function(x) {
  10048. return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);
  10049. };
  10050. return tree;
  10051. });
  10052. /***/ }),
  10053. /***/ "./node_modules/d3-hierarchy/src/treemap/binary.js":
  10054. /*!*********************************************************!*\
  10055. !*** ./node_modules/d3-hierarchy/src/treemap/binary.js ***!
  10056. \*********************************************************/
  10057. /*! exports provided: default */
  10058. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10059. "use strict";
  10060. __webpack_require__.r(__webpack_exports__);
  10061. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10062. var nodes = parent.children,
  10063. i, n = nodes.length,
  10064. sum, sums = new Array(n + 1);
  10065. for (sums[0] = sum = i = 0; i < n; ++i) {
  10066. sums[i + 1] = sum += nodes[i].value;
  10067. }
  10068. partition(0, n, parent.value, x0, y0, x1, y1);
  10069. function partition(i, j, value, x0, y0, x1, y1) {
  10070. if (i >= j - 1) {
  10071. var node = nodes[i];
  10072. node.x0 = x0, node.y0 = y0;
  10073. node.x1 = x1, node.y1 = y1;
  10074. return;
  10075. }
  10076. var valueOffset = sums[i],
  10077. valueTarget = (value / 2) + valueOffset,
  10078. k = i + 1,
  10079. hi = j - 1;
  10080. while (k < hi) {
  10081. var mid = k + hi >>> 1;
  10082. if (sums[mid] < valueTarget) k = mid + 1;
  10083. else hi = mid;
  10084. }
  10085. if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;
  10086. var valueLeft = sums[k] - valueOffset,
  10087. valueRight = value - valueLeft;
  10088. if ((x1 - x0) > (y1 - y0)) {
  10089. var xk = (x0 * valueRight + x1 * valueLeft) / value;
  10090. partition(i, k, valueLeft, x0, y0, xk, y1);
  10091. partition(k, j, valueRight, xk, y0, x1, y1);
  10092. } else {
  10093. var yk = (y0 * valueRight + y1 * valueLeft) / value;
  10094. partition(i, k, valueLeft, x0, y0, x1, yk);
  10095. partition(k, j, valueRight, x0, yk, x1, y1);
  10096. }
  10097. }
  10098. });
  10099. /***/ }),
  10100. /***/ "./node_modules/d3-hierarchy/src/treemap/dice.js":
  10101. /*!*******************************************************!*\
  10102. !*** ./node_modules/d3-hierarchy/src/treemap/dice.js ***!
  10103. \*******************************************************/
  10104. /*! exports provided: default */
  10105. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10106. "use strict";
  10107. __webpack_require__.r(__webpack_exports__);
  10108. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10109. var nodes = parent.children,
  10110. node,
  10111. i = -1,
  10112. n = nodes.length,
  10113. k = parent.value && (x1 - x0) / parent.value;
  10114. while (++i < n) {
  10115. node = nodes[i], node.y0 = y0, node.y1 = y1;
  10116. node.x0 = x0, node.x1 = x0 += node.value * k;
  10117. }
  10118. });
  10119. /***/ }),
  10120. /***/ "./node_modules/d3-hierarchy/src/treemap/index.js":
  10121. /*!********************************************************!*\
  10122. !*** ./node_modules/d3-hierarchy/src/treemap/index.js ***!
  10123. \********************************************************/
  10124. /*! exports provided: default */
  10125. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10126. "use strict";
  10127. __webpack_require__.r(__webpack_exports__);
  10128. /* harmony import */ var _round__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./round */ "./node_modules/d3-hierarchy/src/treemap/round.js");
  10129. /* harmony import */ var _squarify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./squarify */ "./node_modules/d3-hierarchy/src/treemap/squarify.js");
  10130. /* harmony import */ var _accessors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../accessors */ "./node_modules/d3-hierarchy/src/accessors.js");
  10131. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-hierarchy/src/constant.js");
  10132. /* harmony default export */ __webpack_exports__["default"] = (function() {
  10133. var tile = _squarify__WEBPACK_IMPORTED_MODULE_1__["default"],
  10134. round = false,
  10135. dx = 1,
  10136. dy = 1,
  10137. paddingStack = [0],
  10138. paddingInner = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10139. paddingTop = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10140. paddingRight = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10141. paddingBottom = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10142. paddingLeft = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"];
  10143. function treemap(root) {
  10144. root.x0 =
  10145. root.y0 = 0;
  10146. root.x1 = dx;
  10147. root.y1 = dy;
  10148. root.eachBefore(positionNode);
  10149. paddingStack = [0];
  10150. if (round) root.eachBefore(_round__WEBPACK_IMPORTED_MODULE_0__["default"]);
  10151. return root;
  10152. }
  10153. function positionNode(node) {
  10154. var p = paddingStack[node.depth],
  10155. x0 = node.x0 + p,
  10156. y0 = node.y0 + p,
  10157. x1 = node.x1 - p,
  10158. y1 = node.y1 - p;
  10159. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  10160. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  10161. node.x0 = x0;
  10162. node.y0 = y0;
  10163. node.x1 = x1;
  10164. node.y1 = y1;
  10165. if (node.children) {
  10166. p = paddingStack[node.depth + 1] = paddingInner(node) / 2;
  10167. x0 += paddingLeft(node) - p;
  10168. y0 += paddingTop(node) - p;
  10169. x1 -= paddingRight(node) - p;
  10170. y1 -= paddingBottom(node) - p;
  10171. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  10172. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  10173. tile(node, x0, y0, x1, y1);
  10174. }
  10175. }
  10176. treemap.round = function(x) {
  10177. return arguments.length ? (round = !!x, treemap) : round;
  10178. };
  10179. treemap.size = function(x) {
  10180. return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];
  10181. };
  10182. treemap.tile = function(x) {
  10183. return arguments.length ? (tile = Object(_accessors__WEBPACK_IMPORTED_MODULE_2__["required"])(x), treemap) : tile;
  10184. };
  10185. treemap.padding = function(x) {
  10186. return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();
  10187. };
  10188. treemap.paddingInner = function(x) {
  10189. return arguments.length ? (paddingInner = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingInner;
  10190. };
  10191. treemap.paddingOuter = function(x) {
  10192. return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();
  10193. };
  10194. treemap.paddingTop = function(x) {
  10195. return arguments.length ? (paddingTop = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingTop;
  10196. };
  10197. treemap.paddingRight = function(x) {
  10198. return arguments.length ? (paddingRight = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingRight;
  10199. };
  10200. treemap.paddingBottom = function(x) {
  10201. return arguments.length ? (paddingBottom = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingBottom;
  10202. };
  10203. treemap.paddingLeft = function(x) {
  10204. return arguments.length ? (paddingLeft = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingLeft;
  10205. };
  10206. return treemap;
  10207. });
  10208. /***/ }),
  10209. /***/ "./node_modules/d3-hierarchy/src/treemap/resquarify.js":
  10210. /*!*************************************************************!*\
  10211. !*** ./node_modules/d3-hierarchy/src/treemap/resquarify.js ***!
  10212. \*************************************************************/
  10213. /*! exports provided: default */
  10214. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10215. "use strict";
  10216. __webpack_require__.r(__webpack_exports__);
  10217. /* harmony import */ var _dice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  10218. /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  10219. /* harmony import */ var _squarify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./squarify */ "./node_modules/d3-hierarchy/src/treemap/squarify.js");
  10220. /* harmony default export */ __webpack_exports__["default"] = ((function custom(ratio) {
  10221. function resquarify(parent, x0, y0, x1, y1) {
  10222. if ((rows = parent._squarify) && (rows.ratio === ratio)) {
  10223. var rows,
  10224. row,
  10225. nodes,
  10226. i,
  10227. j = -1,
  10228. n,
  10229. m = rows.length,
  10230. value = parent.value;
  10231. while (++j < m) {
  10232. row = rows[j], nodes = row.children;
  10233. for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;
  10234. if (row.dice) Object(_dice__WEBPACK_IMPORTED_MODULE_0__["default"])(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);
  10235. else Object(_slice__WEBPACK_IMPORTED_MODULE_1__["default"])(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);
  10236. value -= row.value;
  10237. }
  10238. } else {
  10239. parent._squarify = rows = Object(_squarify__WEBPACK_IMPORTED_MODULE_2__["squarifyRatio"])(ratio, parent, x0, y0, x1, y1);
  10240. rows.ratio = ratio;
  10241. }
  10242. }
  10243. resquarify.ratio = function(x) {
  10244. return custom((x = +x) > 1 ? x : 1);
  10245. };
  10246. return resquarify;
  10247. })(_squarify__WEBPACK_IMPORTED_MODULE_2__["phi"]));
  10248. /***/ }),
  10249. /***/ "./node_modules/d3-hierarchy/src/treemap/round.js":
  10250. /*!********************************************************!*\
  10251. !*** ./node_modules/d3-hierarchy/src/treemap/round.js ***!
  10252. \********************************************************/
  10253. /*! exports provided: default */
  10254. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10255. "use strict";
  10256. __webpack_require__.r(__webpack_exports__);
  10257. /* harmony default export */ __webpack_exports__["default"] = (function(node) {
  10258. node.x0 = Math.round(node.x0);
  10259. node.y0 = Math.round(node.y0);
  10260. node.x1 = Math.round(node.x1);
  10261. node.y1 = Math.round(node.y1);
  10262. });
  10263. /***/ }),
  10264. /***/ "./node_modules/d3-hierarchy/src/treemap/slice.js":
  10265. /*!********************************************************!*\
  10266. !*** ./node_modules/d3-hierarchy/src/treemap/slice.js ***!
  10267. \********************************************************/
  10268. /*! exports provided: default */
  10269. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10270. "use strict";
  10271. __webpack_require__.r(__webpack_exports__);
  10272. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10273. var nodes = parent.children,
  10274. node,
  10275. i = -1,
  10276. n = nodes.length,
  10277. k = parent.value && (y1 - y0) / parent.value;
  10278. while (++i < n) {
  10279. node = nodes[i], node.x0 = x0, node.x1 = x1;
  10280. node.y0 = y0, node.y1 = y0 += node.value * k;
  10281. }
  10282. });
  10283. /***/ }),
  10284. /***/ "./node_modules/d3-hierarchy/src/treemap/sliceDice.js":
  10285. /*!************************************************************!*\
  10286. !*** ./node_modules/d3-hierarchy/src/treemap/sliceDice.js ***!
  10287. \************************************************************/
  10288. /*! exports provided: default */
  10289. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10290. "use strict";
  10291. __webpack_require__.r(__webpack_exports__);
  10292. /* harmony import */ var _dice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  10293. /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  10294. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10295. (parent.depth & 1 ? _slice__WEBPACK_IMPORTED_MODULE_1__["default"] : _dice__WEBPACK_IMPORTED_MODULE_0__["default"])(parent, x0, y0, x1, y1);
  10296. });
  10297. /***/ }),
  10298. /***/ "./node_modules/d3-hierarchy/src/treemap/squarify.js":
  10299. /*!***********************************************************!*\
  10300. !*** ./node_modules/d3-hierarchy/src/treemap/squarify.js ***!
  10301. \***********************************************************/
  10302. /*! exports provided: phi, squarifyRatio, default */
  10303. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10304. "use strict";
  10305. __webpack_require__.r(__webpack_exports__);
  10306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "phi", function() { return phi; });
  10307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "squarifyRatio", function() { return squarifyRatio; });
  10308. /* harmony import */ var _dice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  10309. /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  10310. var phi = (1 + Math.sqrt(5)) / 2;
  10311. function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
  10312. var rows = [],
  10313. nodes = parent.children,
  10314. row,
  10315. nodeValue,
  10316. i0 = 0,
  10317. i1 = 0,
  10318. n = nodes.length,
  10319. dx, dy,
  10320. value = parent.value,
  10321. sumValue,
  10322. minValue,
  10323. maxValue,
  10324. newRatio,
  10325. minRatio,
  10326. alpha,
  10327. beta;
  10328. while (i0 < n) {
  10329. dx = x1 - x0, dy = y1 - y0;
  10330. // Find the next non-empty node.
  10331. do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);
  10332. minValue = maxValue = sumValue;
  10333. alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
  10334. beta = sumValue * sumValue * alpha;
  10335. minRatio = Math.max(maxValue / beta, beta / minValue);
  10336. // Keep adding nodes while the aspect ratio maintains or improves.
  10337. for (; i1 < n; ++i1) {
  10338. sumValue += nodeValue = nodes[i1].value;
  10339. if (nodeValue < minValue) minValue = nodeValue;
  10340. if (nodeValue > maxValue) maxValue = nodeValue;
  10341. beta = sumValue * sumValue * alpha;
  10342. newRatio = Math.max(maxValue / beta, beta / minValue);
  10343. if (newRatio > minRatio) { sumValue -= nodeValue; break; }
  10344. minRatio = newRatio;
  10345. }
  10346. // Position and record the row orientation.
  10347. rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});
  10348. if (row.dice) Object(_dice__WEBPACK_IMPORTED_MODULE_0__["default"])(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);
  10349. else Object(_slice__WEBPACK_IMPORTED_MODULE_1__["default"])(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);
  10350. value -= sumValue, i0 = i1;
  10351. }
  10352. return rows;
  10353. }
  10354. /* harmony default export */ __webpack_exports__["default"] = ((function custom(ratio) {
  10355. function squarify(parent, x0, y0, x1, y1) {
  10356. squarifyRatio(ratio, parent, x0, y0, x1, y1);
  10357. }
  10358. squarify.ratio = function(x) {
  10359. return custom((x = +x) > 1 ? x : 1);
  10360. };
  10361. return squarify;
  10362. })(phi));
  10363. /***/ }),
  10364. /***/ "./node_modules/d3-interpolate/src/array.js":
  10365. /*!**************************************************!*\
  10366. !*** ./node_modules/d3-interpolate/src/array.js ***!
  10367. \**************************************************/
  10368. /*! exports provided: default */
  10369. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10370. "use strict";
  10371. __webpack_require__.r(__webpack_exports__);
  10372. /* harmony import */ var _value__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value */ "./node_modules/d3-interpolate/src/value.js");
  10373. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10374. var nb = b ? b.length : 0,
  10375. na = a ? Math.min(nb, a.length) : 0,
  10376. x = new Array(na),
  10377. c = new Array(nb),
  10378. i;
  10379. for (i = 0; i < na; ++i) x[i] = Object(_value__WEBPACK_IMPORTED_MODULE_0__["default"])(a[i], b[i]);
  10380. for (; i < nb; ++i) c[i] = b[i];
  10381. return function(t) {
  10382. for (i = 0; i < na; ++i) c[i] = x[i](t);
  10383. return c;
  10384. };
  10385. });
  10386. /***/ }),
  10387. /***/ "./node_modules/d3-interpolate/src/basis.js":
  10388. /*!**************************************************!*\
  10389. !*** ./node_modules/d3-interpolate/src/basis.js ***!
  10390. \**************************************************/
  10391. /*! exports provided: basis, default */
  10392. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10393. "use strict";
  10394. __webpack_require__.r(__webpack_exports__);
  10395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basis", function() { return basis; });
  10396. function basis(t1, v0, v1, v2, v3) {
  10397. var t2 = t1 * t1, t3 = t2 * t1;
  10398. return ((1 - 3 * t1 + 3 * t2 - t3) * v0
  10399. + (4 - 6 * t2 + 3 * t3) * v1
  10400. + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2
  10401. + t3 * v3) / 6;
  10402. }
  10403. /* harmony default export */ __webpack_exports__["default"] = (function(values) {
  10404. var n = values.length - 1;
  10405. return function(t) {
  10406. var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
  10407. v1 = values[i],
  10408. v2 = values[i + 1],
  10409. v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
  10410. v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
  10411. return basis((t - i / n) * n, v0, v1, v2, v3);
  10412. };
  10413. });
  10414. /***/ }),
  10415. /***/ "./node_modules/d3-interpolate/src/basisClosed.js":
  10416. /*!********************************************************!*\
  10417. !*** ./node_modules/d3-interpolate/src/basisClosed.js ***!
  10418. \********************************************************/
  10419. /*! exports provided: default */
  10420. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10421. "use strict";
  10422. __webpack_require__.r(__webpack_exports__);
  10423. /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-interpolate/src/basis.js");
  10424. /* harmony default export */ __webpack_exports__["default"] = (function(values) {
  10425. var n = values.length;
  10426. return function(t) {
  10427. var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
  10428. v0 = values[(i + n - 1) % n],
  10429. v1 = values[i % n],
  10430. v2 = values[(i + 1) % n],
  10431. v3 = values[(i + 2) % n];
  10432. return Object(_basis__WEBPACK_IMPORTED_MODULE_0__["basis"])((t - i / n) * n, v0, v1, v2, v3);
  10433. };
  10434. });
  10435. /***/ }),
  10436. /***/ "./node_modules/d3-interpolate/src/color.js":
  10437. /*!**************************************************!*\
  10438. !*** ./node_modules/d3-interpolate/src/color.js ***!
  10439. \**************************************************/
  10440. /*! exports provided: hue, gamma, default */
  10441. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10442. "use strict";
  10443. __webpack_require__.r(__webpack_exports__);
  10444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hue", function() { return hue; });
  10445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gamma", function() { return gamma; });
  10446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return nogamma; });
  10447. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-interpolate/src/constant.js");
  10448. function linear(a, d) {
  10449. return function(t) {
  10450. return a + t * d;
  10451. };
  10452. }
  10453. function exponential(a, b, y) {
  10454. return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
  10455. return Math.pow(a + t * b, y);
  10456. };
  10457. }
  10458. function hue(a, b) {
  10459. var d = b - a;
  10460. return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
  10461. }
  10462. function gamma(y) {
  10463. return (y = +y) === 1 ? nogamma : function(a, b) {
  10464. return b - a ? exponential(a, b, y) : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
  10465. };
  10466. }
  10467. function nogamma(a, b) {
  10468. var d = b - a;
  10469. return d ? linear(a, d) : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
  10470. }
  10471. /***/ }),
  10472. /***/ "./node_modules/d3-interpolate/src/constant.js":
  10473. /*!*****************************************************!*\
  10474. !*** ./node_modules/d3-interpolate/src/constant.js ***!
  10475. \*****************************************************/
  10476. /*! exports provided: default */
  10477. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10478. "use strict";
  10479. __webpack_require__.r(__webpack_exports__);
  10480. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  10481. return function() {
  10482. return x;
  10483. };
  10484. });
  10485. /***/ }),
  10486. /***/ "./node_modules/d3-interpolate/src/cubehelix.js":
  10487. /*!******************************************************!*\
  10488. !*** ./node_modules/d3-interpolate/src/cubehelix.js ***!
  10489. \******************************************************/
  10490. /*! exports provided: default, cubehelixLong */
  10491. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10492. "use strict";
  10493. __webpack_require__.r(__webpack_exports__);
  10494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubehelixLong", function() { return cubehelixLong; });
  10495. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10496. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js");
  10497. function cubehelix(hue) {
  10498. return (function cubehelixGamma(y) {
  10499. y = +y;
  10500. function cubehelix(start, end) {
  10501. var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(end)).h),
  10502. s = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s),
  10503. l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l),
  10504. opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10505. return function(t) {
  10506. start.h = h(t);
  10507. start.s = s(t);
  10508. start.l = l(Math.pow(t, y));
  10509. start.opacity = opacity(t);
  10510. return start + "";
  10511. };
  10512. }
  10513. cubehelix.gamma = cubehelixGamma;
  10514. return cubehelix;
  10515. })(1);
  10516. }
  10517. /* harmony default export */ __webpack_exports__["default"] = (cubehelix(_color__WEBPACK_IMPORTED_MODULE_1__["hue"]));
  10518. var cubehelixLong = cubehelix(_color__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10519. /***/ }),
  10520. /***/ "./node_modules/d3-interpolate/src/date.js":
  10521. /*!*************************************************!*\
  10522. !*** ./node_modules/d3-interpolate/src/date.js ***!
  10523. \*************************************************/
  10524. /*! exports provided: default */
  10525. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10526. "use strict";
  10527. __webpack_require__.r(__webpack_exports__);
  10528. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10529. var d = new Date;
  10530. return a = +a, b -= a, function(t) {
  10531. return d.setTime(a + b * t), d;
  10532. };
  10533. });
  10534. /***/ }),
  10535. /***/ "./node_modules/d3-interpolate/src/discrete.js":
  10536. /*!*****************************************************!*\
  10537. !*** ./node_modules/d3-interpolate/src/discrete.js ***!
  10538. \*****************************************************/
  10539. /*! exports provided: default */
  10540. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10541. "use strict";
  10542. __webpack_require__.r(__webpack_exports__);
  10543. /* harmony default export */ __webpack_exports__["default"] = (function(range) {
  10544. var n = range.length;
  10545. return function(t) {
  10546. return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
  10547. };
  10548. });
  10549. /***/ }),
  10550. /***/ "./node_modules/d3-interpolate/src/hcl.js":
  10551. /*!************************************************!*\
  10552. !*** ./node_modules/d3-interpolate/src/hcl.js ***!
  10553. \************************************************/
  10554. /*! exports provided: default, hclLong */
  10555. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10556. "use strict";
  10557. __webpack_require__.r(__webpack_exports__);
  10558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hclLong", function() { return hclLong; });
  10559. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10560. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js");
  10561. function hcl(hue) {
  10562. return function(start, end) {
  10563. var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hcl"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hcl"])(end)).h),
  10564. c = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.c, end.c),
  10565. l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l),
  10566. opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10567. return function(t) {
  10568. start.h = h(t);
  10569. start.c = c(t);
  10570. start.l = l(t);
  10571. start.opacity = opacity(t);
  10572. return start + "";
  10573. };
  10574. }
  10575. }
  10576. /* harmony default export */ __webpack_exports__["default"] = (hcl(_color__WEBPACK_IMPORTED_MODULE_1__["hue"]));
  10577. var hclLong = hcl(_color__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10578. /***/ }),
  10579. /***/ "./node_modules/d3-interpolate/src/hsl.js":
  10580. /*!************************************************!*\
  10581. !*** ./node_modules/d3-interpolate/src/hsl.js ***!
  10582. \************************************************/
  10583. /*! exports provided: default, hslLong */
  10584. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10585. "use strict";
  10586. __webpack_require__.r(__webpack_exports__);
  10587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslLong", function() { return hslLong; });
  10588. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10589. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js");
  10590. function hsl(hue) {
  10591. return function(start, end) {
  10592. var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hsl"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hsl"])(end)).h),
  10593. s = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s),
  10594. l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l),
  10595. opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10596. return function(t) {
  10597. start.h = h(t);
  10598. start.s = s(t);
  10599. start.l = l(t);
  10600. start.opacity = opacity(t);
  10601. return start + "";
  10602. };
  10603. }
  10604. }
  10605. /* harmony default export */ __webpack_exports__["default"] = (hsl(_color__WEBPACK_IMPORTED_MODULE_1__["hue"]));
  10606. var hslLong = hsl(_color__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10607. /***/ }),
  10608. /***/ "./node_modules/d3-interpolate/src/hue.js":
  10609. /*!************************************************!*\
  10610. !*** ./node_modules/d3-interpolate/src/hue.js ***!
  10611. \************************************************/
  10612. /*! exports provided: default */
  10613. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10614. "use strict";
  10615. __webpack_require__.r(__webpack_exports__);
  10616. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js");
  10617. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10618. var i = Object(_color__WEBPACK_IMPORTED_MODULE_0__["hue"])(+a, +b);
  10619. return function(t) {
  10620. var x = i(t);
  10621. return x - 360 * Math.floor(x / 360);
  10622. };
  10623. });
  10624. /***/ }),
  10625. /***/ "./node_modules/d3-interpolate/src/index.js":
  10626. /*!**************************************************!*\
  10627. !*** ./node_modules/d3-interpolate/src/index.js ***!
  10628. \**************************************************/
  10629. /*! exports provided: interpolate, interpolateArray, interpolateBasis, interpolateBasisClosed, interpolateDate, interpolateDiscrete, interpolateHue, interpolateNumber, interpolateObject, interpolateRound, interpolateString, interpolateTransformCss, interpolateTransformSvg, interpolateZoom, interpolateRgb, interpolateRgbBasis, interpolateRgbBasisClosed, interpolateHsl, interpolateHslLong, interpolateLab, interpolateHcl, interpolateHclLong, interpolateCubehelix, interpolateCubehelixLong, piecewise, quantize */
  10630. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10631. "use strict";
  10632. __webpack_require__.r(__webpack_exports__);
  10633. /* harmony import */ var _value__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value */ "./node_modules/d3-interpolate/src/value.js");
  10634. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolate", function() { return _value__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  10635. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-interpolate/src/array.js");
  10636. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateArray", function() { return _array__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  10637. /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-interpolate/src/basis.js");
  10638. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasis", function() { return _basis__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  10639. /* harmony import */ var _basisClosed__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./basisClosed */ "./node_modules/d3-interpolate/src/basisClosed.js");
  10640. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasisClosed", function() { return _basisClosed__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  10641. /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./date */ "./node_modules/d3-interpolate/src/date.js");
  10642. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDate", function() { return _date__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  10643. /* harmony import */ var _discrete__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./discrete */ "./node_modules/d3-interpolate/src/discrete.js");
  10644. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDiscrete", function() { return _discrete__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  10645. /* harmony import */ var _hue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hue */ "./node_modules/d3-interpolate/src/hue.js");
  10646. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHue", function() { return _hue__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  10647. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./number */ "./node_modules/d3-interpolate/src/number.js");
  10648. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumber", function() { return _number__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  10649. /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./object */ "./node_modules/d3-interpolate/src/object.js");
  10650. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return _object__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  10651. /* harmony import */ var _round__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./round */ "./node_modules/d3-interpolate/src/round.js");
  10652. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRound", function() { return _round__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  10653. /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./string */ "./node_modules/d3-interpolate/src/string.js");
  10654. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return _string__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  10655. /* harmony import */ var _transform_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./transform/index */ "./node_modules/d3-interpolate/src/transform/index.js");
  10656. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return _transform_index__WEBPACK_IMPORTED_MODULE_11__["interpolateTransformCss"]; });
  10657. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return _transform_index__WEBPACK_IMPORTED_MODULE_11__["interpolateTransformSvg"]; });
  10658. /* harmony import */ var _zoom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./zoom */ "./node_modules/d3-interpolate/src/zoom.js");
  10659. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateZoom", function() { return _zoom__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  10660. /* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./rgb */ "./node_modules/d3-interpolate/src/rgb.js");
  10661. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgb", function() { return _rgb__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  10662. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasis", function() { return _rgb__WEBPACK_IMPORTED_MODULE_13__["rgbBasis"]; });
  10663. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasisClosed", function() { return _rgb__WEBPACK_IMPORTED_MODULE_13__["rgbBasisClosed"]; });
  10664. /* harmony import */ var _hsl__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./hsl */ "./node_modules/d3-interpolate/src/hsl.js");
  10665. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHsl", function() { return _hsl__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  10666. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHslLong", function() { return _hsl__WEBPACK_IMPORTED_MODULE_14__["hslLong"]; });
  10667. /* harmony import */ var _lab__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lab */ "./node_modules/d3-interpolate/src/lab.js");
  10668. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateLab", function() { return _lab__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  10669. /* harmony import */ var _hcl__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./hcl */ "./node_modules/d3-interpolate/src/hcl.js");
  10670. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHcl", function() { return _hcl__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  10671. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHclLong", function() { return _hcl__WEBPACK_IMPORTED_MODULE_16__["hclLong"]; });
  10672. /* harmony import */ var _cubehelix__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./cubehelix */ "./node_modules/d3-interpolate/src/cubehelix.js");
  10673. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelix", function() { return _cubehelix__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  10674. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixLong", function() { return _cubehelix__WEBPACK_IMPORTED_MODULE_17__["cubehelixLong"]; });
  10675. /* harmony import */ var _piecewise__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./piecewise */ "./node_modules/d3-interpolate/src/piecewise.js");
  10676. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "piecewise", function() { return _piecewise__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  10677. /* harmony import */ var _quantize__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./quantize */ "./node_modules/d3-interpolate/src/quantize.js");
  10678. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantize", function() { return _quantize__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  10679. /***/ }),
  10680. /***/ "./node_modules/d3-interpolate/src/lab.js":
  10681. /*!************************************************!*\
  10682. !*** ./node_modules/d3-interpolate/src/lab.js ***!
  10683. \************************************************/
  10684. /*! exports provided: default */
  10685. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10686. "use strict";
  10687. __webpack_require__.r(__webpack_exports__);
  10688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; });
  10689. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10690. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js");
  10691. function lab(start, end) {
  10692. var l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["lab"])(start)).l, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["lab"])(end)).l),
  10693. a = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.a, end.a),
  10694. b = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.b, end.b),
  10695. opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10696. return function(t) {
  10697. start.l = l(t);
  10698. start.a = a(t);
  10699. start.b = b(t);
  10700. start.opacity = opacity(t);
  10701. return start + "";
  10702. };
  10703. }
  10704. /***/ }),
  10705. /***/ "./node_modules/d3-interpolate/src/number.js":
  10706. /*!***************************************************!*\
  10707. !*** ./node_modules/d3-interpolate/src/number.js ***!
  10708. \***************************************************/
  10709. /*! exports provided: default */
  10710. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10711. "use strict";
  10712. __webpack_require__.r(__webpack_exports__);
  10713. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10714. return a = +a, b -= a, function(t) {
  10715. return a + b * t;
  10716. };
  10717. });
  10718. /***/ }),
  10719. /***/ "./node_modules/d3-interpolate/src/object.js":
  10720. /*!***************************************************!*\
  10721. !*** ./node_modules/d3-interpolate/src/object.js ***!
  10722. \***************************************************/
  10723. /*! exports provided: default */
  10724. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10725. "use strict";
  10726. __webpack_require__.r(__webpack_exports__);
  10727. /* harmony import */ var _value__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value */ "./node_modules/d3-interpolate/src/value.js");
  10728. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10729. var i = {},
  10730. c = {},
  10731. k;
  10732. if (a === null || typeof a !== "object") a = {};
  10733. if (b === null || typeof b !== "object") b = {};
  10734. for (k in b) {
  10735. if (k in a) {
  10736. i[k] = Object(_value__WEBPACK_IMPORTED_MODULE_0__["default"])(a[k], b[k]);
  10737. } else {
  10738. c[k] = b[k];
  10739. }
  10740. }
  10741. return function(t) {
  10742. for (k in i) c[k] = i[k](t);
  10743. return c;
  10744. };
  10745. });
  10746. /***/ }),
  10747. /***/ "./node_modules/d3-interpolate/src/piecewise.js":
  10748. /*!******************************************************!*\
  10749. !*** ./node_modules/d3-interpolate/src/piecewise.js ***!
  10750. \******************************************************/
  10751. /*! exports provided: default */
  10752. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10753. "use strict";
  10754. __webpack_require__.r(__webpack_exports__);
  10755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return piecewise; });
  10756. function piecewise(interpolate, values) {
  10757. var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);
  10758. while (i < n) I[i] = interpolate(v, v = values[++i]);
  10759. return function(t) {
  10760. var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));
  10761. return I[i](t - i);
  10762. };
  10763. }
  10764. /***/ }),
  10765. /***/ "./node_modules/d3-interpolate/src/quantize.js":
  10766. /*!*****************************************************!*\
  10767. !*** ./node_modules/d3-interpolate/src/quantize.js ***!
  10768. \*****************************************************/
  10769. /*! exports provided: default */
  10770. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10771. "use strict";
  10772. __webpack_require__.r(__webpack_exports__);
  10773. /* harmony default export */ __webpack_exports__["default"] = (function(interpolator, n) {
  10774. var samples = new Array(n);
  10775. for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));
  10776. return samples;
  10777. });
  10778. /***/ }),
  10779. /***/ "./node_modules/d3-interpolate/src/rgb.js":
  10780. /*!************************************************!*\
  10781. !*** ./node_modules/d3-interpolate/src/rgb.js ***!
  10782. \************************************************/
  10783. /*! exports provided: default, rgbBasis, rgbBasisClosed */
  10784. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10785. "use strict";
  10786. __webpack_require__.r(__webpack_exports__);
  10787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasis", function() { return rgbBasis; });
  10788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasisClosed", function() { return rgbBasisClosed; });
  10789. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10790. /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-interpolate/src/basis.js");
  10791. /* harmony import */ var _basisClosed__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basisClosed */ "./node_modules/d3-interpolate/src/basisClosed.js");
  10792. /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js");
  10793. /* harmony default export */ __webpack_exports__["default"] = ((function rgbGamma(y) {
  10794. var color = Object(_color__WEBPACK_IMPORTED_MODULE_3__["gamma"])(y);
  10795. function rgb(start, end) {
  10796. var r = color((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(start)).r, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(end)).r),
  10797. g = color(start.g, end.g),
  10798. b = color(start.b, end.b),
  10799. opacity = Object(_color__WEBPACK_IMPORTED_MODULE_3__["default"])(start.opacity, end.opacity);
  10800. return function(t) {
  10801. start.r = r(t);
  10802. start.g = g(t);
  10803. start.b = b(t);
  10804. start.opacity = opacity(t);
  10805. return start + "";
  10806. };
  10807. }
  10808. rgb.gamma = rgbGamma;
  10809. return rgb;
  10810. })(1));
  10811. function rgbSpline(spline) {
  10812. return function(colors) {
  10813. var n = colors.length,
  10814. r = new Array(n),
  10815. g = new Array(n),
  10816. b = new Array(n),
  10817. i, color;
  10818. for (i = 0; i < n; ++i) {
  10819. color = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(colors[i]);
  10820. r[i] = color.r || 0;
  10821. g[i] = color.g || 0;
  10822. b[i] = color.b || 0;
  10823. }
  10824. r = spline(r);
  10825. g = spline(g);
  10826. b = spline(b);
  10827. color.opacity = 1;
  10828. return function(t) {
  10829. color.r = r(t);
  10830. color.g = g(t);
  10831. color.b = b(t);
  10832. return color + "";
  10833. };
  10834. };
  10835. }
  10836. var rgbBasis = rgbSpline(_basis__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10837. var rgbBasisClosed = rgbSpline(_basisClosed__WEBPACK_IMPORTED_MODULE_2__["default"]);
  10838. /***/ }),
  10839. /***/ "./node_modules/d3-interpolate/src/round.js":
  10840. /*!**************************************************!*\
  10841. !*** ./node_modules/d3-interpolate/src/round.js ***!
  10842. \**************************************************/
  10843. /*! exports provided: default */
  10844. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10845. "use strict";
  10846. __webpack_require__.r(__webpack_exports__);
  10847. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10848. return a = +a, b -= a, function(t) {
  10849. return Math.round(a + b * t);
  10850. };
  10851. });
  10852. /***/ }),
  10853. /***/ "./node_modules/d3-interpolate/src/string.js":
  10854. /*!***************************************************!*\
  10855. !*** ./node_modules/d3-interpolate/src/string.js ***!
  10856. \***************************************************/
  10857. /*! exports provided: default */
  10858. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10859. "use strict";
  10860. __webpack_require__.r(__webpack_exports__);
  10861. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-interpolate/src/number.js");
  10862. var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
  10863. reB = new RegExp(reA.source, "g");
  10864. function zero(b) {
  10865. return function() {
  10866. return b;
  10867. };
  10868. }
  10869. function one(b) {
  10870. return function(t) {
  10871. return b(t) + "";
  10872. };
  10873. }
  10874. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10875. var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
  10876. am, // current match in a
  10877. bm, // current match in b
  10878. bs, // string preceding current number in b, if any
  10879. i = -1, // index in s
  10880. s = [], // string constants and placeholders
  10881. q = []; // number interpolators
  10882. // Coerce inputs to strings.
  10883. a = a + "", b = b + "";
  10884. // Interpolate pairs of numbers in a & b.
  10885. while ((am = reA.exec(a))
  10886. && (bm = reB.exec(b))) {
  10887. if ((bs = bm.index) > bi) { // a string precedes the next number in b
  10888. bs = b.slice(bi, bs);
  10889. if (s[i]) s[i] += bs; // coalesce with previous string
  10890. else s[++i] = bs;
  10891. }
  10892. if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
  10893. if (s[i]) s[i] += bm; // coalesce with previous string
  10894. else s[++i] = bm;
  10895. } else { // interpolate non-matching numbers
  10896. s[++i] = null;
  10897. q.push({i: i, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(am, bm)});
  10898. }
  10899. bi = reB.lastIndex;
  10900. }
  10901. // Add remains of b.
  10902. if (bi < b.length) {
  10903. bs = b.slice(bi);
  10904. if (s[i]) s[i] += bs; // coalesce with previous string
  10905. else s[++i] = bs;
  10906. }
  10907. // Special optimization for only a single match.
  10908. // Otherwise, interpolate each of the numbers and rejoin the string.
  10909. return s.length < 2 ? (q[0]
  10910. ? one(q[0].x)
  10911. : zero(b))
  10912. : (b = q.length, function(t) {
  10913. for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
  10914. return s.join("");
  10915. });
  10916. });
  10917. /***/ }),
  10918. /***/ "./node_modules/d3-interpolate/src/transform/decompose.js":
  10919. /*!****************************************************************!*\
  10920. !*** ./node_modules/d3-interpolate/src/transform/decompose.js ***!
  10921. \****************************************************************/
  10922. /*! exports provided: identity, default */
  10923. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10924. "use strict";
  10925. __webpack_require__.r(__webpack_exports__);
  10926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
  10927. var degrees = 180 / Math.PI;
  10928. var identity = {
  10929. translateX: 0,
  10930. translateY: 0,
  10931. rotate: 0,
  10932. skewX: 0,
  10933. scaleX: 1,
  10934. scaleY: 1
  10935. };
  10936. /* harmony default export */ __webpack_exports__["default"] = (function(a, b, c, d, e, f) {
  10937. var scaleX, scaleY, skewX;
  10938. if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;
  10939. if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;
  10940. if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;
  10941. if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
  10942. return {
  10943. translateX: e,
  10944. translateY: f,
  10945. rotate: Math.atan2(b, a) * degrees,
  10946. skewX: Math.atan(skewX) * degrees,
  10947. scaleX: scaleX,
  10948. scaleY: scaleY
  10949. };
  10950. });
  10951. /***/ }),
  10952. /***/ "./node_modules/d3-interpolate/src/transform/index.js":
  10953. /*!************************************************************!*\
  10954. !*** ./node_modules/d3-interpolate/src/transform/index.js ***!
  10955. \************************************************************/
  10956. /*! exports provided: interpolateTransformCss, interpolateTransformSvg */
  10957. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10958. "use strict";
  10959. __webpack_require__.r(__webpack_exports__);
  10960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return interpolateTransformCss; });
  10961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return interpolateTransformSvg; });
  10962. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../number */ "./node_modules/d3-interpolate/src/number.js");
  10963. /* harmony import */ var _parse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse */ "./node_modules/d3-interpolate/src/transform/parse.js");
  10964. function interpolateTransform(parse, pxComma, pxParen, degParen) {
  10965. function pop(s) {
  10966. return s.length ? s.pop() + " " : "";
  10967. }
  10968. function translate(xa, ya, xb, yb, s, q) {
  10969. if (xa !== xb || ya !== yb) {
  10970. var i = s.push("translate(", null, pxComma, null, pxParen);
  10971. q.push({i: i - 4, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)});
  10972. } else if (xb || yb) {
  10973. s.push("translate(" + xb + pxComma + yb + pxParen);
  10974. }
  10975. }
  10976. function rotate(a, b, s, q) {
  10977. if (a !== b) {
  10978. if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path
  10979. q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)});
  10980. } else if (b) {
  10981. s.push(pop(s) + "rotate(" + b + degParen);
  10982. }
  10983. }
  10984. function skewX(a, b, s, q) {
  10985. if (a !== b) {
  10986. q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)});
  10987. } else if (b) {
  10988. s.push(pop(s) + "skewX(" + b + degParen);
  10989. }
  10990. }
  10991. function scale(xa, ya, xb, yb, s, q) {
  10992. if (xa !== xb || ya !== yb) {
  10993. var i = s.push(pop(s) + "scale(", null, ",", null, ")");
  10994. q.push({i: i - 4, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)});
  10995. } else if (xb !== 1 || yb !== 1) {
  10996. s.push(pop(s) + "scale(" + xb + "," + yb + ")");
  10997. }
  10998. }
  10999. return function(a, b) {
  11000. var s = [], // string constants and placeholders
  11001. q = []; // number interpolators
  11002. a = parse(a), b = parse(b);
  11003. translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);
  11004. rotate(a.rotate, b.rotate, s, q);
  11005. skewX(a.skewX, b.skewX, s, q);
  11006. scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);
  11007. a = b = null; // gc
  11008. return function(t) {
  11009. var i = -1, n = q.length, o;
  11010. while (++i < n) s[(o = q[i]).i] = o.x(t);
  11011. return s.join("");
  11012. };
  11013. };
  11014. }
  11015. var interpolateTransformCss = interpolateTransform(_parse__WEBPACK_IMPORTED_MODULE_1__["parseCss"], "px, ", "px)", "deg)");
  11016. var interpolateTransformSvg = interpolateTransform(_parse__WEBPACK_IMPORTED_MODULE_1__["parseSvg"], ", ", ")", ")");
  11017. /***/ }),
  11018. /***/ "./node_modules/d3-interpolate/src/transform/parse.js":
  11019. /*!************************************************************!*\
  11020. !*** ./node_modules/d3-interpolate/src/transform/parse.js ***!
  11021. \************************************************************/
  11022. /*! exports provided: parseCss, parseSvg */
  11023. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11024. "use strict";
  11025. __webpack_require__.r(__webpack_exports__);
  11026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCss", function() { return parseCss; });
  11027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseSvg", function() { return parseSvg; });
  11028. /* harmony import */ var _decompose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./decompose */ "./node_modules/d3-interpolate/src/transform/decompose.js");
  11029. var cssNode,
  11030. cssRoot,
  11031. cssView,
  11032. svgNode;
  11033. function parseCss(value) {
  11034. if (value === "none") return _decompose__WEBPACK_IMPORTED_MODULE_0__["identity"];
  11035. if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView;
  11036. cssNode.style.transform = value;
  11037. value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform");
  11038. cssRoot.removeChild(cssNode);
  11039. value = value.slice(7, -1).split(",");
  11040. return Object(_decompose__WEBPACK_IMPORTED_MODULE_0__["default"])(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);
  11041. }
  11042. function parseSvg(value) {
  11043. if (value == null) return _decompose__WEBPACK_IMPORTED_MODULE_0__["identity"];
  11044. if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
  11045. svgNode.setAttribute("transform", value);
  11046. if (!(value = svgNode.transform.baseVal.consolidate())) return _decompose__WEBPACK_IMPORTED_MODULE_0__["identity"];
  11047. value = value.matrix;
  11048. return Object(_decompose__WEBPACK_IMPORTED_MODULE_0__["default"])(value.a, value.b, value.c, value.d, value.e, value.f);
  11049. }
  11050. /***/ }),
  11051. /***/ "./node_modules/d3-interpolate/src/value.js":
  11052. /*!**************************************************!*\
  11053. !*** ./node_modules/d3-interpolate/src/value.js ***!
  11054. \**************************************************/
  11055. /*! exports provided: default */
  11056. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11057. "use strict";
  11058. __webpack_require__.r(__webpack_exports__);
  11059. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  11060. /* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rgb */ "./node_modules/d3-interpolate/src/rgb.js");
  11061. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array */ "./node_modules/d3-interpolate/src/array.js");
  11062. /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./date */ "./node_modules/d3-interpolate/src/date.js");
  11063. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number */ "./node_modules/d3-interpolate/src/number.js");
  11064. /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./object */ "./node_modules/d3-interpolate/src/object.js");
  11065. /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./string */ "./node_modules/d3-interpolate/src/string.js");
  11066. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-interpolate/src/constant.js");
  11067. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  11068. var t = typeof b, c;
  11069. return b == null || t === "boolean" ? Object(_constant__WEBPACK_IMPORTED_MODULE_7__["default"])(b)
  11070. : (t === "number" ? _number__WEBPACK_IMPORTED_MODULE_4__["default"]
  11071. : t === "string" ? ((c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["color"])(b)) ? (b = c, _rgb__WEBPACK_IMPORTED_MODULE_1__["default"]) : _string__WEBPACK_IMPORTED_MODULE_6__["default"])
  11072. : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_0__["color"] ? _rgb__WEBPACK_IMPORTED_MODULE_1__["default"]
  11073. : b instanceof Date ? _date__WEBPACK_IMPORTED_MODULE_3__["default"]
  11074. : Array.isArray(b) ? _array__WEBPACK_IMPORTED_MODULE_2__["default"]
  11075. : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? _object__WEBPACK_IMPORTED_MODULE_5__["default"]
  11076. : _number__WEBPACK_IMPORTED_MODULE_4__["default"])(a, b);
  11077. });
  11078. /***/ }),
  11079. /***/ "./node_modules/d3-interpolate/src/zoom.js":
  11080. /*!*************************************************!*\
  11081. !*** ./node_modules/d3-interpolate/src/zoom.js ***!
  11082. \*************************************************/
  11083. /*! exports provided: default */
  11084. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11085. "use strict";
  11086. __webpack_require__.r(__webpack_exports__);
  11087. var rho = Math.SQRT2,
  11088. rho2 = 2,
  11089. rho4 = 4,
  11090. epsilon2 = 1e-12;
  11091. function cosh(x) {
  11092. return ((x = Math.exp(x)) + 1 / x) / 2;
  11093. }
  11094. function sinh(x) {
  11095. return ((x = Math.exp(x)) - 1 / x) / 2;
  11096. }
  11097. function tanh(x) {
  11098. return ((x = Math.exp(2 * x)) - 1) / (x + 1);
  11099. }
  11100. // p0 = [ux0, uy0, w0]
  11101. // p1 = [ux1, uy1, w1]
  11102. /* harmony default export */ __webpack_exports__["default"] = (function(p0, p1) {
  11103. var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
  11104. ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
  11105. dx = ux1 - ux0,
  11106. dy = uy1 - uy0,
  11107. d2 = dx * dx + dy * dy,
  11108. i,
  11109. S;
  11110. // Special case for u0 ≅ u1.
  11111. if (d2 < epsilon2) {
  11112. S = Math.log(w1 / w0) / rho;
  11113. i = function(t) {
  11114. return [
  11115. ux0 + t * dx,
  11116. uy0 + t * dy,
  11117. w0 * Math.exp(rho * t * S)
  11118. ];
  11119. }
  11120. }
  11121. // General case.
  11122. else {
  11123. var d1 = Math.sqrt(d2),
  11124. b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),
  11125. b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),
  11126. r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),
  11127. r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
  11128. S = (r1 - r0) / rho;
  11129. i = function(t) {
  11130. var s = t * S,
  11131. coshr0 = cosh(r0),
  11132. u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));
  11133. return [
  11134. ux0 + u * dx,
  11135. uy0 + u * dy,
  11136. w0 * coshr0 / cosh(rho * s + r0)
  11137. ];
  11138. }
  11139. }
  11140. i.duration = S * 1000;
  11141. return i;
  11142. });
  11143. /***/ }),
  11144. /***/ "./node_modules/d3-path/src/index.js":
  11145. /*!*******************************************!*\
  11146. !*** ./node_modules/d3-path/src/index.js ***!
  11147. \*******************************************/
  11148. /*! exports provided: path */
  11149. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11150. "use strict";
  11151. __webpack_require__.r(__webpack_exports__);
  11152. /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./path */ "./node_modules/d3-path/src/path.js");
  11153. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "path", function() { return _path__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  11154. /***/ }),
  11155. /***/ "./node_modules/d3-path/src/path.js":
  11156. /*!******************************************!*\
  11157. !*** ./node_modules/d3-path/src/path.js ***!
  11158. \******************************************/
  11159. /*! exports provided: default */
  11160. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11161. "use strict";
  11162. __webpack_require__.r(__webpack_exports__);
  11163. var pi = Math.PI,
  11164. tau = 2 * pi,
  11165. epsilon = 1e-6,
  11166. tauEpsilon = tau - epsilon;
  11167. function Path() {
  11168. this._x0 = this._y0 = // start of current subpath
  11169. this._x1 = this._y1 = null; // end of current subpath
  11170. this._ = "";
  11171. }
  11172. function path() {
  11173. return new Path;
  11174. }
  11175. Path.prototype = path.prototype = {
  11176. constructor: Path,
  11177. moveTo: function(x, y) {
  11178. this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y);
  11179. },
  11180. closePath: function() {
  11181. if (this._x1 !== null) {
  11182. this._x1 = this._x0, this._y1 = this._y0;
  11183. this._ += "Z";
  11184. }
  11185. },
  11186. lineTo: function(x, y) {
  11187. this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y);
  11188. },
  11189. quadraticCurveTo: function(x1, y1, x, y) {
  11190. this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
  11191. },
  11192. bezierCurveTo: function(x1, y1, x2, y2, x, y) {
  11193. this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
  11194. },
  11195. arcTo: function(x1, y1, x2, y2, r) {
  11196. x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
  11197. var x0 = this._x1,
  11198. y0 = this._y1,
  11199. x21 = x2 - x1,
  11200. y21 = y2 - y1,
  11201. x01 = x0 - x1,
  11202. y01 = y0 - y1,
  11203. l01_2 = x01 * x01 + y01 * y01;
  11204. // Is the radius negative? Error.
  11205. if (r < 0) throw new Error("negative radius: " + r);
  11206. // Is this path empty? Move to (x1,y1).
  11207. if (this._x1 === null) {
  11208. this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1);
  11209. }
  11210. // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
  11211. else if (!(l01_2 > epsilon));
  11212. // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
  11213. // Equivalently, is (x1,y1) coincident with (x2,y2)?
  11214. // Or, is the radius zero? Line to (x1,y1).
  11215. else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
  11216. this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
  11217. }
  11218. // Otherwise, draw an arc!
  11219. else {
  11220. var x20 = x2 - x0,
  11221. y20 = y2 - y0,
  11222. l21_2 = x21 * x21 + y21 * y21,
  11223. l20_2 = x20 * x20 + y20 * y20,
  11224. l21 = Math.sqrt(l21_2),
  11225. l01 = Math.sqrt(l01_2),
  11226. l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
  11227. t01 = l / l01,
  11228. t21 = l / l21;
  11229. // If the start tangent is not coincident with (x0,y0), line to.
  11230. if (Math.abs(t01 - 1) > epsilon) {
  11231. this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
  11232. }
  11233. this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21);
  11234. }
  11235. },
  11236. arc: function(x, y, r, a0, a1, ccw) {
  11237. x = +x, y = +y, r = +r;
  11238. var dx = r * Math.cos(a0),
  11239. dy = r * Math.sin(a0),
  11240. x0 = x + dx,
  11241. y0 = y + dy,
  11242. cw = 1 ^ ccw,
  11243. da = ccw ? a0 - a1 : a1 - a0;
  11244. // Is the radius negative? Error.
  11245. if (r < 0) throw new Error("negative radius: " + r);
  11246. // Is this path empty? Move to (x0,y0).
  11247. if (this._x1 === null) {
  11248. this._ += "M" + x0 + "," + y0;
  11249. }
  11250. // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
  11251. else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
  11252. this._ += "L" + x0 + "," + y0;
  11253. }
  11254. // Is this arc empty? We’re done.
  11255. if (!r) return;
  11256. // Does the angle go the wrong way? Flip the direction.
  11257. if (da < 0) da = da % tau + tau;
  11258. // Is this a complete circle? Draw two arcs to complete the circle.
  11259. if (da > tauEpsilon) {
  11260. this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0);
  11261. }
  11262. // Is this arc non-empty? Draw an arc!
  11263. else if (da > epsilon) {
  11264. this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1));
  11265. }
  11266. },
  11267. rect: function(x, y, w, h) {
  11268. this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z";
  11269. },
  11270. toString: function() {
  11271. return this._;
  11272. }
  11273. };
  11274. /* harmony default export */ __webpack_exports__["default"] = (path);
  11275. /***/ }),
  11276. /***/ "./node_modules/d3-polygon/src/area.js":
  11277. /*!*********************************************!*\
  11278. !*** ./node_modules/d3-polygon/src/area.js ***!
  11279. \*********************************************/
  11280. /*! exports provided: default */
  11281. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11282. "use strict";
  11283. __webpack_require__.r(__webpack_exports__);
  11284. /* harmony default export */ __webpack_exports__["default"] = (function(polygon) {
  11285. var i = -1,
  11286. n = polygon.length,
  11287. a,
  11288. b = polygon[n - 1],
  11289. area = 0;
  11290. while (++i < n) {
  11291. a = b;
  11292. b = polygon[i];
  11293. area += a[1] * b[0] - a[0] * b[1];
  11294. }
  11295. return area / 2;
  11296. });
  11297. /***/ }),
  11298. /***/ "./node_modules/d3-polygon/src/centroid.js":
  11299. /*!*************************************************!*\
  11300. !*** ./node_modules/d3-polygon/src/centroid.js ***!
  11301. \*************************************************/
  11302. /*! exports provided: default */
  11303. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11304. "use strict";
  11305. __webpack_require__.r(__webpack_exports__);
  11306. /* harmony default export */ __webpack_exports__["default"] = (function(polygon) {
  11307. var i = -1,
  11308. n = polygon.length,
  11309. x = 0,
  11310. y = 0,
  11311. a,
  11312. b = polygon[n - 1],
  11313. c,
  11314. k = 0;
  11315. while (++i < n) {
  11316. a = b;
  11317. b = polygon[i];
  11318. k += c = a[0] * b[1] - b[0] * a[1];
  11319. x += (a[0] + b[0]) * c;
  11320. y += (a[1] + b[1]) * c;
  11321. }
  11322. return k *= 3, [x / k, y / k];
  11323. });
  11324. /***/ }),
  11325. /***/ "./node_modules/d3-polygon/src/contains.js":
  11326. /*!*************************************************!*\
  11327. !*** ./node_modules/d3-polygon/src/contains.js ***!
  11328. \*************************************************/
  11329. /*! exports provided: default */
  11330. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11331. "use strict";
  11332. __webpack_require__.r(__webpack_exports__);
  11333. /* harmony default export */ __webpack_exports__["default"] = (function(polygon, point) {
  11334. var n = polygon.length,
  11335. p = polygon[n - 1],
  11336. x = point[0], y = point[1],
  11337. x0 = p[0], y0 = p[1],
  11338. x1, y1,
  11339. inside = false;
  11340. for (var i = 0; i < n; ++i) {
  11341. p = polygon[i], x1 = p[0], y1 = p[1];
  11342. if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;
  11343. x0 = x1, y0 = y1;
  11344. }
  11345. return inside;
  11346. });
  11347. /***/ }),
  11348. /***/ "./node_modules/d3-polygon/src/cross.js":
  11349. /*!**********************************************!*\
  11350. !*** ./node_modules/d3-polygon/src/cross.js ***!
  11351. \**********************************************/
  11352. /*! exports provided: default */
  11353. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11354. "use strict";
  11355. __webpack_require__.r(__webpack_exports__);
  11356. // Returns the 2D cross product of AB and AC vectors, i.e., the z-component of
  11357. // the 3D cross product in a quadrant I Cartesian coordinate system (+x is
  11358. // right, +y is up). Returns a positive value if ABC is counter-clockwise,
  11359. // negative if clockwise, and zero if the points are collinear.
  11360. /* harmony default export */ __webpack_exports__["default"] = (function(a, b, c) {
  11361. return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
  11362. });
  11363. /***/ }),
  11364. /***/ "./node_modules/d3-polygon/src/hull.js":
  11365. /*!*********************************************!*\
  11366. !*** ./node_modules/d3-polygon/src/hull.js ***!
  11367. \*********************************************/
  11368. /*! exports provided: default */
  11369. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11370. "use strict";
  11371. __webpack_require__.r(__webpack_exports__);
  11372. /* harmony import */ var _cross__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cross */ "./node_modules/d3-polygon/src/cross.js");
  11373. function lexicographicOrder(a, b) {
  11374. return a[0] - b[0] || a[1] - b[1];
  11375. }
  11376. // Computes the upper convex hull per the monotone chain algorithm.
  11377. // Assumes points.length >= 3, is sorted by x, unique in y.
  11378. // Returns an array of indices into points in left-to-right order.
  11379. function computeUpperHullIndexes(points) {
  11380. var n = points.length,
  11381. indexes = [0, 1],
  11382. size = 2;
  11383. for (var i = 2; i < n; ++i) {
  11384. while (size > 1 && Object(_cross__WEBPACK_IMPORTED_MODULE_0__["default"])(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;
  11385. indexes[size++] = i;
  11386. }
  11387. return indexes.slice(0, size); // remove popped points
  11388. }
  11389. /* harmony default export */ __webpack_exports__["default"] = (function(points) {
  11390. if ((n = points.length) < 3) return null;
  11391. var i,
  11392. n,
  11393. sortedPoints = new Array(n),
  11394. flippedPoints = new Array(n);
  11395. for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];
  11396. sortedPoints.sort(lexicographicOrder);
  11397. for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];
  11398. var upperIndexes = computeUpperHullIndexes(sortedPoints),
  11399. lowerIndexes = computeUpperHullIndexes(flippedPoints);
  11400. // Construct the hull polygon, removing possible duplicate endpoints.
  11401. var skipLeft = lowerIndexes[0] === upperIndexes[0],
  11402. skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],
  11403. hull = [];
  11404. // Add upper hull in right-to-l order.
  11405. // Then add lower hull in left-to-right order.
  11406. for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);
  11407. for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);
  11408. return hull;
  11409. });
  11410. /***/ }),
  11411. /***/ "./node_modules/d3-polygon/src/index.js":
  11412. /*!**********************************************!*\
  11413. !*** ./node_modules/d3-polygon/src/index.js ***!
  11414. \**********************************************/
  11415. /*! exports provided: polygonArea, polygonCentroid, polygonHull, polygonContains, polygonLength */
  11416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11417. "use strict";
  11418. __webpack_require__.r(__webpack_exports__);
  11419. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./area */ "./node_modules/d3-polygon/src/area.js");
  11420. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonArea", function() { return _area__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  11421. /* harmony import */ var _centroid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./centroid */ "./node_modules/d3-polygon/src/centroid.js");
  11422. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonCentroid", function() { return _centroid__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  11423. /* harmony import */ var _hull__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hull */ "./node_modules/d3-polygon/src/hull.js");
  11424. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonHull", function() { return _hull__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  11425. /* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./contains */ "./node_modules/d3-polygon/src/contains.js");
  11426. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonContains", function() { return _contains__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  11427. /* harmony import */ var _length__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./length */ "./node_modules/d3-polygon/src/length.js");
  11428. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonLength", function() { return _length__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  11429. /***/ }),
  11430. /***/ "./node_modules/d3-polygon/src/length.js":
  11431. /*!***********************************************!*\
  11432. !*** ./node_modules/d3-polygon/src/length.js ***!
  11433. \***********************************************/
  11434. /*! exports provided: default */
  11435. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11436. "use strict";
  11437. __webpack_require__.r(__webpack_exports__);
  11438. /* harmony default export */ __webpack_exports__["default"] = (function(polygon) {
  11439. var i = -1,
  11440. n = polygon.length,
  11441. b = polygon[n - 1],
  11442. xa,
  11443. ya,
  11444. xb = b[0],
  11445. yb = b[1],
  11446. perimeter = 0;
  11447. while (++i < n) {
  11448. xa = xb;
  11449. ya = yb;
  11450. b = polygon[i];
  11451. xb = b[0];
  11452. yb = b[1];
  11453. xa -= xb;
  11454. ya -= yb;
  11455. perimeter += Math.sqrt(xa * xa + ya * ya);
  11456. }
  11457. return perimeter;
  11458. });
  11459. /***/ }),
  11460. /***/ "./node_modules/d3-quadtree/src/add.js":
  11461. /*!*********************************************!*\
  11462. !*** ./node_modules/d3-quadtree/src/add.js ***!
  11463. \*********************************************/
  11464. /*! exports provided: default, addAll */
  11465. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11466. "use strict";
  11467. __webpack_require__.r(__webpack_exports__);
  11468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addAll", function() { return addAll; });
  11469. /* harmony default export */ __webpack_exports__["default"] = (function(d) {
  11470. var x = +this._x.call(null, d),
  11471. y = +this._y.call(null, d);
  11472. return add(this.cover(x, y), x, y, d);
  11473. });
  11474. function add(tree, x, y, d) {
  11475. if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points
  11476. var parent,
  11477. node = tree._root,
  11478. leaf = {data: d},
  11479. x0 = tree._x0,
  11480. y0 = tree._y0,
  11481. x1 = tree._x1,
  11482. y1 = tree._y1,
  11483. xm,
  11484. ym,
  11485. xp,
  11486. yp,
  11487. right,
  11488. bottom,
  11489. i,
  11490. j;
  11491. // If the tree is empty, initialize the root as a leaf.
  11492. if (!node) return tree._root = leaf, tree;
  11493. // Find the existing leaf for the new point, or add it.
  11494. while (node.length) {
  11495. if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
  11496. if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
  11497. if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;
  11498. }
  11499. // Is the new point is exactly coincident with the existing point?
  11500. xp = +tree._x.call(null, node.data);
  11501. yp = +tree._y.call(null, node.data);
  11502. if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;
  11503. // Otherwise, split the leaf node until the old and new point are separated.
  11504. do {
  11505. parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);
  11506. if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
  11507. if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
  11508. } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));
  11509. return parent[j] = node, parent[i] = leaf, tree;
  11510. }
  11511. function addAll(data) {
  11512. var d, i, n = data.length,
  11513. x,
  11514. y,
  11515. xz = new Array(n),
  11516. yz = new Array(n),
  11517. x0 = Infinity,
  11518. y0 = Infinity,
  11519. x1 = -Infinity,
  11520. y1 = -Infinity;
  11521. // Compute the points and their extent.
  11522. for (i = 0; i < n; ++i) {
  11523. if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;
  11524. xz[i] = x;
  11525. yz[i] = y;
  11526. if (x < x0) x0 = x;
  11527. if (x > x1) x1 = x;
  11528. if (y < y0) y0 = y;
  11529. if (y > y1) y1 = y;
  11530. }
  11531. // If there were no (valid) points, inherit the existing extent.
  11532. if (x1 < x0) x0 = this._x0, x1 = this._x1;
  11533. if (y1 < y0) y0 = this._y0, y1 = this._y1;
  11534. // Expand the tree to cover the new points.
  11535. this.cover(x0, y0).cover(x1, y1);
  11536. // Add the new points.
  11537. for (i = 0; i < n; ++i) {
  11538. add(this, xz[i], yz[i], data[i]);
  11539. }
  11540. return this;
  11541. }
  11542. /***/ }),
  11543. /***/ "./node_modules/d3-quadtree/src/cover.js":
  11544. /*!***********************************************!*\
  11545. !*** ./node_modules/d3-quadtree/src/cover.js ***!
  11546. \***********************************************/
  11547. /*! exports provided: default */
  11548. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11549. "use strict";
  11550. __webpack_require__.r(__webpack_exports__);
  11551. /* harmony default export */ __webpack_exports__["default"] = (function(x, y) {
  11552. if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points
  11553. var x0 = this._x0,
  11554. y0 = this._y0,
  11555. x1 = this._x1,
  11556. y1 = this._y1;
  11557. // If the quadtree has no extent, initialize them.
  11558. // Integer extent are necessary so that if we later double the extent,
  11559. // the existing quadrant boundaries don’t change due to floating point error!
  11560. if (isNaN(x0)) {
  11561. x1 = (x0 = Math.floor(x)) + 1;
  11562. y1 = (y0 = Math.floor(y)) + 1;
  11563. }
  11564. // Otherwise, double repeatedly to cover.
  11565. else if (x0 > x || x > x1 || y0 > y || y > y1) {
  11566. var z = x1 - x0,
  11567. node = this._root,
  11568. parent,
  11569. i;
  11570. switch (i = (y < (y0 + y1) / 2) << 1 | (x < (x0 + x1) / 2)) {
  11571. case 0: {
  11572. do parent = new Array(4), parent[i] = node, node = parent;
  11573. while (z *= 2, x1 = x0 + z, y1 = y0 + z, x > x1 || y > y1);
  11574. break;
  11575. }
  11576. case 1: {
  11577. do parent = new Array(4), parent[i] = node, node = parent;
  11578. while (z *= 2, x0 = x1 - z, y1 = y0 + z, x0 > x || y > y1);
  11579. break;
  11580. }
  11581. case 2: {
  11582. do parent = new Array(4), parent[i] = node, node = parent;
  11583. while (z *= 2, x1 = x0 + z, y0 = y1 - z, x > x1 || y0 > y);
  11584. break;
  11585. }
  11586. case 3: {
  11587. do parent = new Array(4), parent[i] = node, node = parent;
  11588. while (z *= 2, x0 = x1 - z, y0 = y1 - z, x0 > x || y0 > y);
  11589. break;
  11590. }
  11591. }
  11592. if (this._root && this._root.length) this._root = node;
  11593. }
  11594. // If the quadtree covers the point already, just return.
  11595. else return this;
  11596. this._x0 = x0;
  11597. this._y0 = y0;
  11598. this._x1 = x1;
  11599. this._y1 = y1;
  11600. return this;
  11601. });
  11602. /***/ }),
  11603. /***/ "./node_modules/d3-quadtree/src/data.js":
  11604. /*!**********************************************!*\
  11605. !*** ./node_modules/d3-quadtree/src/data.js ***!
  11606. \**********************************************/
  11607. /*! exports provided: default */
  11608. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11609. "use strict";
  11610. __webpack_require__.r(__webpack_exports__);
  11611. /* harmony default export */ __webpack_exports__["default"] = (function() {
  11612. var data = [];
  11613. this.visit(function(node) {
  11614. if (!node.length) do data.push(node.data); while (node = node.next)
  11615. });
  11616. return data;
  11617. });
  11618. /***/ }),
  11619. /***/ "./node_modules/d3-quadtree/src/extent.js":
  11620. /*!************************************************!*\
  11621. !*** ./node_modules/d3-quadtree/src/extent.js ***!
  11622. \************************************************/
  11623. /*! exports provided: default */
  11624. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11625. "use strict";
  11626. __webpack_require__.r(__webpack_exports__);
  11627. /* harmony default export */ __webpack_exports__["default"] = (function(_) {
  11628. return arguments.length
  11629. ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])
  11630. : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];
  11631. });
  11632. /***/ }),
  11633. /***/ "./node_modules/d3-quadtree/src/find.js":
  11634. /*!**********************************************!*\
  11635. !*** ./node_modules/d3-quadtree/src/find.js ***!
  11636. \**********************************************/
  11637. /*! exports provided: default */
  11638. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11639. "use strict";
  11640. __webpack_require__.r(__webpack_exports__);
  11641. /* harmony import */ var _quad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad */ "./node_modules/d3-quadtree/src/quad.js");
  11642. /* harmony default export */ __webpack_exports__["default"] = (function(x, y, radius) {
  11643. var data,
  11644. x0 = this._x0,
  11645. y0 = this._y0,
  11646. x1,
  11647. y1,
  11648. x2,
  11649. y2,
  11650. x3 = this._x1,
  11651. y3 = this._y1,
  11652. quads = [],
  11653. node = this._root,
  11654. q,
  11655. i;
  11656. if (node) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node, x0, y0, x3, y3));
  11657. if (radius == null) radius = Infinity;
  11658. else {
  11659. x0 = x - radius, y0 = y - radius;
  11660. x3 = x + radius, y3 = y + radius;
  11661. radius *= radius;
  11662. }
  11663. while (q = quads.pop()) {
  11664. // Stop searching if this quadrant can’t contain a closer node.
  11665. if (!(node = q.node)
  11666. || (x1 = q.x0) > x3
  11667. || (y1 = q.y0) > y3
  11668. || (x2 = q.x1) < x0
  11669. || (y2 = q.y1) < y0) continue;
  11670. // Bisect the current quadrant.
  11671. if (node.length) {
  11672. var xm = (x1 + x2) / 2,
  11673. ym = (y1 + y2) / 2;
  11674. quads.push(
  11675. new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[3], xm, ym, x2, y2),
  11676. new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[2], x1, ym, xm, y2),
  11677. new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[1], xm, y1, x2, ym),
  11678. new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[0], x1, y1, xm, ym)
  11679. );
  11680. // Visit the closest quadrant first.
  11681. if (i = (y >= ym) << 1 | (x >= xm)) {
  11682. q = quads[quads.length - 1];
  11683. quads[quads.length - 1] = quads[quads.length - 1 - i];
  11684. quads[quads.length - 1 - i] = q;
  11685. }
  11686. }
  11687. // Visit this point. (Visiting coincident points isn’t necessary!)
  11688. else {
  11689. var dx = x - +this._x.call(null, node.data),
  11690. dy = y - +this._y.call(null, node.data),
  11691. d2 = dx * dx + dy * dy;
  11692. if (d2 < radius) {
  11693. var d = Math.sqrt(radius = d2);
  11694. x0 = x - d, y0 = y - d;
  11695. x3 = x + d, y3 = y + d;
  11696. data = node.data;
  11697. }
  11698. }
  11699. }
  11700. return data;
  11701. });
  11702. /***/ }),
  11703. /***/ "./node_modules/d3-quadtree/src/index.js":
  11704. /*!***********************************************!*\
  11705. !*** ./node_modules/d3-quadtree/src/index.js ***!
  11706. \***********************************************/
  11707. /*! exports provided: quadtree */
  11708. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11709. "use strict";
  11710. __webpack_require__.r(__webpack_exports__);
  11711. /* harmony import */ var _quadtree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quadtree */ "./node_modules/d3-quadtree/src/quadtree.js");
  11712. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quadtree", function() { return _quadtree__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  11713. /***/ }),
  11714. /***/ "./node_modules/d3-quadtree/src/quad.js":
  11715. /*!**********************************************!*\
  11716. !*** ./node_modules/d3-quadtree/src/quad.js ***!
  11717. \**********************************************/
  11718. /*! exports provided: default */
  11719. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11720. "use strict";
  11721. __webpack_require__.r(__webpack_exports__);
  11722. /* harmony default export */ __webpack_exports__["default"] = (function(node, x0, y0, x1, y1) {
  11723. this.node = node;
  11724. this.x0 = x0;
  11725. this.y0 = y0;
  11726. this.x1 = x1;
  11727. this.y1 = y1;
  11728. });
  11729. /***/ }),
  11730. /***/ "./node_modules/d3-quadtree/src/quadtree.js":
  11731. /*!**************************************************!*\
  11732. !*** ./node_modules/d3-quadtree/src/quadtree.js ***!
  11733. \**************************************************/
  11734. /*! exports provided: default */
  11735. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11736. "use strict";
  11737. __webpack_require__.r(__webpack_exports__);
  11738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quadtree; });
  11739. /* harmony import */ var _add__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add */ "./node_modules/d3-quadtree/src/add.js");
  11740. /* harmony import */ var _cover__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cover */ "./node_modules/d3-quadtree/src/cover.js");
  11741. /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data */ "./node_modules/d3-quadtree/src/data.js");
  11742. /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-quadtree/src/extent.js");
  11743. /* harmony import */ var _find__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./find */ "./node_modules/d3-quadtree/src/find.js");
  11744. /* harmony import */ var _remove__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./remove */ "./node_modules/d3-quadtree/src/remove.js");
  11745. /* harmony import */ var _root__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./root */ "./node_modules/d3-quadtree/src/root.js");
  11746. /* harmony import */ var _size__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./size */ "./node_modules/d3-quadtree/src/size.js");
  11747. /* harmony import */ var _visit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./visit */ "./node_modules/d3-quadtree/src/visit.js");
  11748. /* harmony import */ var _visitAfter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./visitAfter */ "./node_modules/d3-quadtree/src/visitAfter.js");
  11749. /* harmony import */ var _x__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./x */ "./node_modules/d3-quadtree/src/x.js");
  11750. /* harmony import */ var _y__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./y */ "./node_modules/d3-quadtree/src/y.js");
  11751. function quadtree(nodes, x, y) {
  11752. var tree = new Quadtree(x == null ? _x__WEBPACK_IMPORTED_MODULE_10__["defaultX"] : x, y == null ? _y__WEBPACK_IMPORTED_MODULE_11__["defaultY"] : y, NaN, NaN, NaN, NaN);
  11753. return nodes == null ? tree : tree.addAll(nodes);
  11754. }
  11755. function Quadtree(x, y, x0, y0, x1, y1) {
  11756. this._x = x;
  11757. this._y = y;
  11758. this._x0 = x0;
  11759. this._y0 = y0;
  11760. this._x1 = x1;
  11761. this._y1 = y1;
  11762. this._root = undefined;
  11763. }
  11764. function leaf_copy(leaf) {
  11765. var copy = {data: leaf.data}, next = copy;
  11766. while (leaf = leaf.next) next = next.next = {data: leaf.data};
  11767. return copy;
  11768. }
  11769. var treeProto = quadtree.prototype = Quadtree.prototype;
  11770. treeProto.copy = function() {
  11771. var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),
  11772. node = this._root,
  11773. nodes,
  11774. child;
  11775. if (!node) return copy;
  11776. if (!node.length) return copy._root = leaf_copy(node), copy;
  11777. nodes = [{source: node, target: copy._root = new Array(4)}];
  11778. while (node = nodes.pop()) {
  11779. for (var i = 0; i < 4; ++i) {
  11780. if (child = node.source[i]) {
  11781. if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});
  11782. else node.target[i] = leaf_copy(child);
  11783. }
  11784. }
  11785. }
  11786. return copy;
  11787. };
  11788. treeProto.add = _add__WEBPACK_IMPORTED_MODULE_0__["default"];
  11789. treeProto.addAll = _add__WEBPACK_IMPORTED_MODULE_0__["addAll"];
  11790. treeProto.cover = _cover__WEBPACK_IMPORTED_MODULE_1__["default"];
  11791. treeProto.data = _data__WEBPACK_IMPORTED_MODULE_2__["default"];
  11792. treeProto.extent = _extent__WEBPACK_IMPORTED_MODULE_3__["default"];
  11793. treeProto.find = _find__WEBPACK_IMPORTED_MODULE_4__["default"];
  11794. treeProto.remove = _remove__WEBPACK_IMPORTED_MODULE_5__["default"];
  11795. treeProto.removeAll = _remove__WEBPACK_IMPORTED_MODULE_5__["removeAll"];
  11796. treeProto.root = _root__WEBPACK_IMPORTED_MODULE_6__["default"];
  11797. treeProto.size = _size__WEBPACK_IMPORTED_MODULE_7__["default"];
  11798. treeProto.visit = _visit__WEBPACK_IMPORTED_MODULE_8__["default"];
  11799. treeProto.visitAfter = _visitAfter__WEBPACK_IMPORTED_MODULE_9__["default"];
  11800. treeProto.x = _x__WEBPACK_IMPORTED_MODULE_10__["default"];
  11801. treeProto.y = _y__WEBPACK_IMPORTED_MODULE_11__["default"];
  11802. /***/ }),
  11803. /***/ "./node_modules/d3-quadtree/src/remove.js":
  11804. /*!************************************************!*\
  11805. !*** ./node_modules/d3-quadtree/src/remove.js ***!
  11806. \************************************************/
  11807. /*! exports provided: default, removeAll */
  11808. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11809. "use strict";
  11810. __webpack_require__.r(__webpack_exports__);
  11811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAll", function() { return removeAll; });
  11812. /* harmony default export */ __webpack_exports__["default"] = (function(d) {
  11813. if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points
  11814. var parent,
  11815. node = this._root,
  11816. retainer,
  11817. previous,
  11818. next,
  11819. x0 = this._x0,
  11820. y0 = this._y0,
  11821. x1 = this._x1,
  11822. y1 = this._y1,
  11823. x,
  11824. y,
  11825. xm,
  11826. ym,
  11827. right,
  11828. bottom,
  11829. i,
  11830. j;
  11831. // If the tree is empty, initialize the root as a leaf.
  11832. if (!node) return this;
  11833. // Find the leaf node for the point.
  11834. // While descending, also retain the deepest parent with a non-removed sibling.
  11835. if (node.length) while (true) {
  11836. if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
  11837. if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
  11838. if (!(parent = node, node = node[i = bottom << 1 | right])) return this;
  11839. if (!node.length) break;
  11840. if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;
  11841. }
  11842. // Find the point to remove.
  11843. while (node.data !== d) if (!(previous = node, node = node.next)) return this;
  11844. if (next = node.next) delete node.next;
  11845. // If there are multiple coincident points, remove just the point.
  11846. if (previous) return (next ? previous.next = next : delete previous.next), this;
  11847. // If this is the root point, remove it.
  11848. if (!parent) return this._root = next, this;
  11849. // Remove this leaf.
  11850. next ? parent[i] = next : delete parent[i];
  11851. // If the parent now contains exactly one leaf, collapse superfluous parents.
  11852. if ((node = parent[0] || parent[1] || parent[2] || parent[3])
  11853. && node === (parent[3] || parent[2] || parent[1] || parent[0])
  11854. && !node.length) {
  11855. if (retainer) retainer[j] = node;
  11856. else this._root = node;
  11857. }
  11858. return this;
  11859. });
  11860. function removeAll(data) {
  11861. for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);
  11862. return this;
  11863. }
  11864. /***/ }),
  11865. /***/ "./node_modules/d3-quadtree/src/root.js":
  11866. /*!**********************************************!*\
  11867. !*** ./node_modules/d3-quadtree/src/root.js ***!
  11868. \**********************************************/
  11869. /*! exports provided: default */
  11870. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11871. "use strict";
  11872. __webpack_require__.r(__webpack_exports__);
  11873. /* harmony default export */ __webpack_exports__["default"] = (function() {
  11874. return this._root;
  11875. });
  11876. /***/ }),
  11877. /***/ "./node_modules/d3-quadtree/src/size.js":
  11878. /*!**********************************************!*\
  11879. !*** ./node_modules/d3-quadtree/src/size.js ***!
  11880. \**********************************************/
  11881. /*! exports provided: default */
  11882. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11883. "use strict";
  11884. __webpack_require__.r(__webpack_exports__);
  11885. /* harmony default export */ __webpack_exports__["default"] = (function() {
  11886. var size = 0;
  11887. this.visit(function(node) {
  11888. if (!node.length) do ++size; while (node = node.next)
  11889. });
  11890. return size;
  11891. });
  11892. /***/ }),
  11893. /***/ "./node_modules/d3-quadtree/src/visit.js":
  11894. /*!***********************************************!*\
  11895. !*** ./node_modules/d3-quadtree/src/visit.js ***!
  11896. \***********************************************/
  11897. /*! exports provided: default */
  11898. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11899. "use strict";
  11900. __webpack_require__.r(__webpack_exports__);
  11901. /* harmony import */ var _quad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad */ "./node_modules/d3-quadtree/src/quad.js");
  11902. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  11903. var quads = [], q, node = this._root, child, x0, y0, x1, y1;
  11904. if (node) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node, this._x0, this._y0, this._x1, this._y1));
  11905. while (q = quads.pop()) {
  11906. if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {
  11907. var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;
  11908. if (child = node[3]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, ym, x1, y1));
  11909. if (child = node[2]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, ym, xm, y1));
  11910. if (child = node[1]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, y0, x1, ym));
  11911. if (child = node[0]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, y0, xm, ym));
  11912. }
  11913. }
  11914. return this;
  11915. });
  11916. /***/ }),
  11917. /***/ "./node_modules/d3-quadtree/src/visitAfter.js":
  11918. /*!****************************************************!*\
  11919. !*** ./node_modules/d3-quadtree/src/visitAfter.js ***!
  11920. \****************************************************/
  11921. /*! exports provided: default */
  11922. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11923. "use strict";
  11924. __webpack_require__.r(__webpack_exports__);
  11925. /* harmony import */ var _quad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad */ "./node_modules/d3-quadtree/src/quad.js");
  11926. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  11927. var quads = [], next = [], q;
  11928. if (this._root) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](this._root, this._x0, this._y0, this._x1, this._y1));
  11929. while (q = quads.pop()) {
  11930. var node = q.node;
  11931. if (node.length) {
  11932. var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;
  11933. if (child = node[0]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, y0, xm, ym));
  11934. if (child = node[1]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, y0, x1, ym));
  11935. if (child = node[2]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, ym, xm, y1));
  11936. if (child = node[3]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, ym, x1, y1));
  11937. }
  11938. next.push(q);
  11939. }
  11940. while (q = next.pop()) {
  11941. callback(q.node, q.x0, q.y0, q.x1, q.y1);
  11942. }
  11943. return this;
  11944. });
  11945. /***/ }),
  11946. /***/ "./node_modules/d3-quadtree/src/x.js":
  11947. /*!*******************************************!*\
  11948. !*** ./node_modules/d3-quadtree/src/x.js ***!
  11949. \*******************************************/
  11950. /*! exports provided: defaultX, default */
  11951. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11952. "use strict";
  11953. __webpack_require__.r(__webpack_exports__);
  11954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultX", function() { return defaultX; });
  11955. function defaultX(d) {
  11956. return d[0];
  11957. }
  11958. /* harmony default export */ __webpack_exports__["default"] = (function(_) {
  11959. return arguments.length ? (this._x = _, this) : this._x;
  11960. });
  11961. /***/ }),
  11962. /***/ "./node_modules/d3-quadtree/src/y.js":
  11963. /*!*******************************************!*\
  11964. !*** ./node_modules/d3-quadtree/src/y.js ***!
  11965. \*******************************************/
  11966. /*! exports provided: defaultY, default */
  11967. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11968. "use strict";
  11969. __webpack_require__.r(__webpack_exports__);
  11970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultY", function() { return defaultY; });
  11971. function defaultY(d) {
  11972. return d[1];
  11973. }
  11974. /* harmony default export */ __webpack_exports__["default"] = (function(_) {
  11975. return arguments.length ? (this._y = _, this) : this._y;
  11976. });
  11977. /***/ }),
  11978. /***/ "./node_modules/d3-random/src/bates.js":
  11979. /*!*********************************************!*\
  11980. !*** ./node_modules/d3-random/src/bates.js ***!
  11981. \*********************************************/
  11982. /*! exports provided: default */
  11983. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11984. "use strict";
  11985. __webpack_require__.r(__webpack_exports__);
  11986. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  11987. /* harmony import */ var _irwinHall__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./irwinHall */ "./node_modules/d3-random/src/irwinHall.js");
  11988. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomBates(source) {
  11989. function randomBates(n) {
  11990. var randomIrwinHall = _irwinHall__WEBPACK_IMPORTED_MODULE_1__["default"].source(source)(n);
  11991. return function() {
  11992. return randomIrwinHall() / n;
  11993. };
  11994. }
  11995. randomBates.source = sourceRandomBates;
  11996. return randomBates;
  11997. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  11998. /***/ }),
  11999. /***/ "./node_modules/d3-random/src/defaultSource.js":
  12000. /*!*****************************************************!*\
  12001. !*** ./node_modules/d3-random/src/defaultSource.js ***!
  12002. \*****************************************************/
  12003. /*! exports provided: default */
  12004. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12005. "use strict";
  12006. __webpack_require__.r(__webpack_exports__);
  12007. /* harmony default export */ __webpack_exports__["default"] = (function() {
  12008. return Math.random();
  12009. });
  12010. /***/ }),
  12011. /***/ "./node_modules/d3-random/src/exponential.js":
  12012. /*!***************************************************!*\
  12013. !*** ./node_modules/d3-random/src/exponential.js ***!
  12014. \***************************************************/
  12015. /*! exports provided: default */
  12016. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12017. "use strict";
  12018. __webpack_require__.r(__webpack_exports__);
  12019. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12020. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomExponential(source) {
  12021. function randomExponential(lambda) {
  12022. return function() {
  12023. return -Math.log(1 - source()) / lambda;
  12024. };
  12025. }
  12026. randomExponential.source = sourceRandomExponential;
  12027. return randomExponential;
  12028. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12029. /***/ }),
  12030. /***/ "./node_modules/d3-random/src/index.js":
  12031. /*!*********************************************!*\
  12032. !*** ./node_modules/d3-random/src/index.js ***!
  12033. \*********************************************/
  12034. /*! exports provided: randomUniform, randomNormal, randomLogNormal, randomBates, randomIrwinHall, randomExponential */
  12035. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12036. "use strict";
  12037. __webpack_require__.r(__webpack_exports__);
  12038. /* harmony import */ var _uniform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uniform */ "./node_modules/d3-random/src/uniform.js");
  12039. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomUniform", function() { return _uniform__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  12040. /* harmony import */ var _normal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./normal */ "./node_modules/d3-random/src/normal.js");
  12041. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomNormal", function() { return _normal__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  12042. /* harmony import */ var _logNormal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logNormal */ "./node_modules/d3-random/src/logNormal.js");
  12043. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomLogNormal", function() { return _logNormal__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  12044. /* harmony import */ var _bates__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bates */ "./node_modules/d3-random/src/bates.js");
  12045. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomBates", function() { return _bates__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  12046. /* harmony import */ var _irwinHall__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./irwinHall */ "./node_modules/d3-random/src/irwinHall.js");
  12047. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomIrwinHall", function() { return _irwinHall__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  12048. /* harmony import */ var _exponential__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exponential */ "./node_modules/d3-random/src/exponential.js");
  12049. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomExponential", function() { return _exponential__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  12050. /***/ }),
  12051. /***/ "./node_modules/d3-random/src/irwinHall.js":
  12052. /*!*************************************************!*\
  12053. !*** ./node_modules/d3-random/src/irwinHall.js ***!
  12054. \*************************************************/
  12055. /*! exports provided: default */
  12056. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12057. "use strict";
  12058. __webpack_require__.r(__webpack_exports__);
  12059. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12060. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomIrwinHall(source) {
  12061. function randomIrwinHall(n) {
  12062. return function() {
  12063. for (var sum = 0, i = 0; i < n; ++i) sum += source();
  12064. return sum;
  12065. };
  12066. }
  12067. randomIrwinHall.source = sourceRandomIrwinHall;
  12068. return randomIrwinHall;
  12069. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12070. /***/ }),
  12071. /***/ "./node_modules/d3-random/src/logNormal.js":
  12072. /*!*************************************************!*\
  12073. !*** ./node_modules/d3-random/src/logNormal.js ***!
  12074. \*************************************************/
  12075. /*! exports provided: default */
  12076. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12077. "use strict";
  12078. __webpack_require__.r(__webpack_exports__);
  12079. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12080. /* harmony import */ var _normal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./normal */ "./node_modules/d3-random/src/normal.js");
  12081. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomLogNormal(source) {
  12082. function randomLogNormal() {
  12083. var randomNormal = _normal__WEBPACK_IMPORTED_MODULE_1__["default"].source(source).apply(this, arguments);
  12084. return function() {
  12085. return Math.exp(randomNormal());
  12086. };
  12087. }
  12088. randomLogNormal.source = sourceRandomLogNormal;
  12089. return randomLogNormal;
  12090. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12091. /***/ }),
  12092. /***/ "./node_modules/d3-random/src/normal.js":
  12093. /*!**********************************************!*\
  12094. !*** ./node_modules/d3-random/src/normal.js ***!
  12095. \**********************************************/
  12096. /*! exports provided: default */
  12097. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12098. "use strict";
  12099. __webpack_require__.r(__webpack_exports__);
  12100. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12101. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomNormal(source) {
  12102. function randomNormal(mu, sigma) {
  12103. var x, r;
  12104. mu = mu == null ? 0 : +mu;
  12105. sigma = sigma == null ? 1 : +sigma;
  12106. return function() {
  12107. var y;
  12108. // If available, use the second previously-generated uniform random.
  12109. if (x != null) y = x, x = null;
  12110. // Otherwise, generate a new x and y.
  12111. else do {
  12112. x = source() * 2 - 1;
  12113. y = source() * 2 - 1;
  12114. r = x * x + y * y;
  12115. } while (!r || r > 1);
  12116. return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);
  12117. };
  12118. }
  12119. randomNormal.source = sourceRandomNormal;
  12120. return randomNormal;
  12121. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12122. /***/ }),
  12123. /***/ "./node_modules/d3-random/src/uniform.js":
  12124. /*!***********************************************!*\
  12125. !*** ./node_modules/d3-random/src/uniform.js ***!
  12126. \***********************************************/
  12127. /*! exports provided: default */
  12128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12129. "use strict";
  12130. __webpack_require__.r(__webpack_exports__);
  12131. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12132. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomUniform(source) {
  12133. function randomUniform(min, max) {
  12134. min = min == null ? 0 : +min;
  12135. max = max == null ? 1 : +max;
  12136. if (arguments.length === 1) max = min, min = 0;
  12137. else max -= min;
  12138. return function() {
  12139. return source() * max + min;
  12140. };
  12141. }
  12142. randomUniform.source = sourceRandomUniform;
  12143. return randomUniform;
  12144. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12145. /***/ }),
  12146. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Accent.js":
  12147. /*!*******************************************************************!*\
  12148. !*** ./node_modules/d3-scale-chromatic/src/categorical/Accent.js ***!
  12149. \*******************************************************************/
  12150. /*! exports provided: default */
  12151. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12152. "use strict";
  12153. __webpack_require__.r(__webpack_exports__);
  12154. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12155. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"));
  12156. /***/ }),
  12157. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js":
  12158. /*!******************************************************************!*\
  12159. !*** ./node_modules/d3-scale-chromatic/src/categorical/Dark2.js ***!
  12160. \******************************************************************/
  12161. /*! exports provided: default */
  12162. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12163. "use strict";
  12164. __webpack_require__.r(__webpack_exports__);
  12165. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12166. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"));
  12167. /***/ }),
  12168. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Paired.js":
  12169. /*!*******************************************************************!*\
  12170. !*** ./node_modules/d3-scale-chromatic/src/categorical/Paired.js ***!
  12171. \*******************************************************************/
  12172. /*! exports provided: default */
  12173. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12174. "use strict";
  12175. __webpack_require__.r(__webpack_exports__);
  12176. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12177. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"));
  12178. /***/ }),
  12179. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js":
  12180. /*!********************************************************************!*\
  12181. !*** ./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js ***!
  12182. \********************************************************************/
  12183. /*! exports provided: default */
  12184. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12185. "use strict";
  12186. __webpack_require__.r(__webpack_exports__);
  12187. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12188. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"));
  12189. /***/ }),
  12190. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js":
  12191. /*!********************************************************************!*\
  12192. !*** ./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js ***!
  12193. \********************************************************************/
  12194. /*! exports provided: default */
  12195. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12196. "use strict";
  12197. __webpack_require__.r(__webpack_exports__);
  12198. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12199. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"));
  12200. /***/ }),
  12201. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Set1.js":
  12202. /*!*****************************************************************!*\
  12203. !*** ./node_modules/d3-scale-chromatic/src/categorical/Set1.js ***!
  12204. \*****************************************************************/
  12205. /*! exports provided: default */
  12206. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12207. "use strict";
  12208. __webpack_require__.r(__webpack_exports__);
  12209. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12210. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"));
  12211. /***/ }),
  12212. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Set2.js":
  12213. /*!*****************************************************************!*\
  12214. !*** ./node_modules/d3-scale-chromatic/src/categorical/Set2.js ***!
  12215. \*****************************************************************/
  12216. /*! exports provided: default */
  12217. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12218. "use strict";
  12219. __webpack_require__.r(__webpack_exports__);
  12220. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12221. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"));
  12222. /***/ }),
  12223. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Set3.js":
  12224. /*!*****************************************************************!*\
  12225. !*** ./node_modules/d3-scale-chromatic/src/categorical/Set3.js ***!
  12226. \*****************************************************************/
  12227. /*! exports provided: default */
  12228. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12229. "use strict";
  12230. __webpack_require__.r(__webpack_exports__);
  12231. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12232. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"));
  12233. /***/ }),
  12234. /***/ "./node_modules/d3-scale-chromatic/src/categorical/category10.js":
  12235. /*!***********************************************************************!*\
  12236. !*** ./node_modules/d3-scale-chromatic/src/categorical/category10.js ***!
  12237. \***********************************************************************/
  12238. /*! exports provided: default */
  12239. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12240. "use strict";
  12241. __webpack_require__.r(__webpack_exports__);
  12242. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12243. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"));
  12244. /***/ }),
  12245. /***/ "./node_modules/d3-scale-chromatic/src/colors.js":
  12246. /*!*******************************************************!*\
  12247. !*** ./node_modules/d3-scale-chromatic/src/colors.js ***!
  12248. \*******************************************************/
  12249. /*! exports provided: default */
  12250. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12251. "use strict";
  12252. __webpack_require__.r(__webpack_exports__);
  12253. /* harmony default export */ __webpack_exports__["default"] = (function(specifier) {
  12254. var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;
  12255. while (i < n) colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
  12256. return colors;
  12257. });
  12258. /***/ }),
  12259. /***/ "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js":
  12260. /*!***************************************************************!*\
  12261. !*** ./node_modules/d3-scale-chromatic/src/diverging/BrBG.js ***!
  12262. \***************************************************************/
  12263. /*! exports provided: scheme, default */
  12264. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12265. "use strict";
  12266. __webpack_require__.r(__webpack_exports__);
  12267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12268. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12269. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12270. var scheme = new Array(3).concat(
  12271. "d8b365f5f5f55ab4ac",
  12272. "a6611adfc27d80cdc1018571",
  12273. "a6611adfc27df5f5f580cdc1018571",
  12274. "8c510ad8b365f6e8c3c7eae55ab4ac01665e",
  12275. "8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e",
  12276. "8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
  12277. "8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e",
  12278. "5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30",
  12279. "5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30"
  12280. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12281. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12282. /***/ }),
  12283. /***/ "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js":
  12284. /*!***************************************************************!*\
  12285. !*** ./node_modules/d3-scale-chromatic/src/diverging/PRGn.js ***!
  12286. \***************************************************************/
  12287. /*! exports provided: scheme, default */
  12288. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12289. "use strict";
  12290. __webpack_require__.r(__webpack_exports__);
  12291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12292. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12293. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12294. var scheme = new Array(3).concat(
  12295. "af8dc3f7f7f77fbf7b",
  12296. "7b3294c2a5cfa6dba0008837",
  12297. "7b3294c2a5cff7f7f7a6dba0008837",
  12298. "762a83af8dc3e7d4e8d9f0d37fbf7b1b7837",
  12299. "762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837",
  12300. "762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837",
  12301. "762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
  12302. "40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b",
  12303. "40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b"
  12304. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12305. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12306. /***/ }),
  12307. /***/ "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js":
  12308. /*!***************************************************************!*\
  12309. !*** ./node_modules/d3-scale-chromatic/src/diverging/PiYG.js ***!
  12310. \***************************************************************/
  12311. /*! exports provided: scheme, default */
  12312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12313. "use strict";
  12314. __webpack_require__.r(__webpack_exports__);
  12315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12316. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12317. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12318. var scheme = new Array(3).concat(
  12319. "e9a3c9f7f7f7a1d76a",
  12320. "d01c8bf1b6dab8e1864dac26",
  12321. "d01c8bf1b6daf7f7f7b8e1864dac26",
  12322. "c51b7de9a3c9fde0efe6f5d0a1d76a4d9221",
  12323. "c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221",
  12324. "c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221",
  12325. "c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221",
  12326. "8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
  12327. "8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419"
  12328. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12329. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12330. /***/ }),
  12331. /***/ "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js":
  12332. /*!***************************************************************!*\
  12333. !*** ./node_modules/d3-scale-chromatic/src/diverging/PuOr.js ***!
  12334. \***************************************************************/
  12335. /*! exports provided: scheme, default */
  12336. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12337. "use strict";
  12338. __webpack_require__.r(__webpack_exports__);
  12339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12340. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12341. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12342. var scheme = new Array(3).concat(
  12343. "998ec3f7f7f7f1a340",
  12344. "5e3c99b2abd2fdb863e66101",
  12345. "5e3c99b2abd2f7f7f7fdb863e66101",
  12346. "542788998ec3d8daebfee0b6f1a340b35806",
  12347. "542788998ec3d8daebf7f7f7fee0b6f1a340b35806",
  12348. "5427888073acb2abd2d8daebfee0b6fdb863e08214b35806",
  12349. "5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806",
  12350. "2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08",
  12351. "2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08"
  12352. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12353. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12354. /***/ }),
  12355. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js":
  12356. /*!***************************************************************!*\
  12357. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdBu.js ***!
  12358. \***************************************************************/
  12359. /*! exports provided: scheme, default */
  12360. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12361. "use strict";
  12362. __webpack_require__.r(__webpack_exports__);
  12363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12364. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12365. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12366. var scheme = new Array(3).concat(
  12367. "ef8a62f7f7f767a9cf",
  12368. "ca0020f4a58292c5de0571b0",
  12369. "ca0020f4a582f7f7f792c5de0571b0",
  12370. "b2182bef8a62fddbc7d1e5f067a9cf2166ac",
  12371. "b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac",
  12372. "b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac",
  12373. "b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac",
  12374. "67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061",
  12375. "67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061"
  12376. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12377. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12378. /***/ }),
  12379. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js":
  12380. /*!***************************************************************!*\
  12381. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdGy.js ***!
  12382. \***************************************************************/
  12383. /*! exports provided: scheme, default */
  12384. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12385. "use strict";
  12386. __webpack_require__.r(__webpack_exports__);
  12387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12388. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12389. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12390. var scheme = new Array(3).concat(
  12391. "ef8a62ffffff999999",
  12392. "ca0020f4a582bababa404040",
  12393. "ca0020f4a582ffffffbababa404040",
  12394. "b2182bef8a62fddbc7e0e0e09999994d4d4d",
  12395. "b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d",
  12396. "b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d",
  12397. "b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d",
  12398. "67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a",
  12399. "67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a"
  12400. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12401. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12402. /***/ }),
  12403. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js":
  12404. /*!*****************************************************************!*\
  12405. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js ***!
  12406. \*****************************************************************/
  12407. /*! exports provided: scheme, default */
  12408. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12409. "use strict";
  12410. __webpack_require__.r(__webpack_exports__);
  12411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12412. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12413. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12414. var scheme = new Array(3).concat(
  12415. "fc8d59ffffbf91bfdb",
  12416. "d7191cfdae61abd9e92c7bb6",
  12417. "d7191cfdae61ffffbfabd9e92c7bb6",
  12418. "d73027fc8d59fee090e0f3f891bfdb4575b4",
  12419. "d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4",
  12420. "d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4",
  12421. "d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4",
  12422. "a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695",
  12423. "a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695"
  12424. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12425. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12426. /***/ }),
  12427. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js":
  12428. /*!*****************************************************************!*\
  12429. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js ***!
  12430. \*****************************************************************/
  12431. /*! exports provided: scheme, default */
  12432. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12433. "use strict";
  12434. __webpack_require__.r(__webpack_exports__);
  12435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12436. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12437. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12438. var scheme = new Array(3).concat(
  12439. "fc8d59ffffbf91cf60",
  12440. "d7191cfdae61a6d96a1a9641",
  12441. "d7191cfdae61ffffbfa6d96a1a9641",
  12442. "d73027fc8d59fee08bd9ef8b91cf601a9850",
  12443. "d73027fc8d59fee08bffffbfd9ef8b91cf601a9850",
  12444. "d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
  12445. "d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850",
  12446. "a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837",
  12447. "a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837"
  12448. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12449. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12450. /***/ }),
  12451. /***/ "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js":
  12452. /*!*******************************************************************!*\
  12453. !*** ./node_modules/d3-scale-chromatic/src/diverging/Spectral.js ***!
  12454. \*******************************************************************/
  12455. /*! exports provided: scheme, default */
  12456. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12457. "use strict";
  12458. __webpack_require__.r(__webpack_exports__);
  12459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12460. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12461. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12462. var scheme = new Array(3).concat(
  12463. "fc8d59ffffbf99d594",
  12464. "d7191cfdae61abdda42b83ba",
  12465. "d7191cfdae61ffffbfabdda42b83ba",
  12466. "d53e4ffc8d59fee08be6f59899d5943288bd",
  12467. "d53e4ffc8d59fee08bffffbfe6f59899d5943288bd",
  12468. "d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd",
  12469. "d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
  12470. "9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2",
  12471. "9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2"
  12472. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12473. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12474. /***/ }),
  12475. /***/ "./node_modules/d3-scale-chromatic/src/index.js":
  12476. /*!******************************************************!*\
  12477. !*** ./node_modules/d3-scale-chromatic/src/index.js ***!
  12478. \******************************************************/
  12479. /*! exports provided: schemeCategory10, schemeAccent, schemeDark2, schemePaired, schemePastel1, schemePastel2, schemeSet1, schemeSet2, schemeSet3, interpolateBrBG, schemeBrBG, interpolatePRGn, schemePRGn, interpolatePiYG, schemePiYG, interpolatePuOr, schemePuOr, interpolateRdBu, schemeRdBu, interpolateRdGy, schemeRdGy, interpolateRdYlBu, schemeRdYlBu, interpolateRdYlGn, schemeRdYlGn, interpolateSpectral, schemeSpectral, interpolateBuGn, schemeBuGn, interpolateBuPu, schemeBuPu, interpolateGnBu, schemeGnBu, interpolateOrRd, schemeOrRd, interpolatePuBuGn, schemePuBuGn, interpolatePuBu, schemePuBu, interpolatePuRd, schemePuRd, interpolateRdPu, schemeRdPu, interpolateYlGnBu, schemeYlGnBu, interpolateYlGn, schemeYlGn, interpolateYlOrBr, schemeYlOrBr, interpolateYlOrRd, schemeYlOrRd, interpolateBlues, schemeBlues, interpolateGreens, schemeGreens, interpolateGreys, schemeGreys, interpolatePurples, schemePurples, interpolateReds, schemeReds, interpolateOranges, schemeOranges, interpolateCubehelixDefault, interpolateRainbow, interpolateWarm, interpolateCool, interpolateSinebow, interpolateViridis, interpolateMagma, interpolateInferno, interpolatePlasma */
  12480. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12481. "use strict";
  12482. __webpack_require__.r(__webpack_exports__);
  12483. /* harmony import */ var _categorical_category10__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./categorical/category10 */ "./node_modules/d3-scale-chromatic/src/categorical/category10.js");
  12484. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { return _categorical_category10__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  12485. /* harmony import */ var _categorical_Accent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./categorical/Accent */ "./node_modules/d3-scale-chromatic/src/categorical/Accent.js");
  12486. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeAccent", function() { return _categorical_Accent__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  12487. /* harmony import */ var _categorical_Dark2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./categorical/Dark2 */ "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js");
  12488. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeDark2", function() { return _categorical_Dark2__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  12489. /* harmony import */ var _categorical_Paired__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./categorical/Paired */ "./node_modules/d3-scale-chromatic/src/categorical/Paired.js");
  12490. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePaired", function() { return _categorical_Paired__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  12491. /* harmony import */ var _categorical_Pastel1__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./categorical/Pastel1 */ "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js");
  12492. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel1", function() { return _categorical_Pastel1__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  12493. /* harmony import */ var _categorical_Pastel2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./categorical/Pastel2 */ "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js");
  12494. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel2", function() { return _categorical_Pastel2__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  12495. /* harmony import */ var _categorical_Set1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./categorical/Set1 */ "./node_modules/d3-scale-chromatic/src/categorical/Set1.js");
  12496. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet1", function() { return _categorical_Set1__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  12497. /* harmony import */ var _categorical_Set2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./categorical/Set2 */ "./node_modules/d3-scale-chromatic/src/categorical/Set2.js");
  12498. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet2", function() { return _categorical_Set2__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  12499. /* harmony import */ var _categorical_Set3__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./categorical/Set3 */ "./node_modules/d3-scale-chromatic/src/categorical/Set3.js");
  12500. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet3", function() { return _categorical_Set3__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  12501. /* harmony import */ var _diverging_BrBG__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diverging/BrBG */ "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js");
  12502. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBrBG", function() { return _diverging_BrBG__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  12503. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBrBG", function() { return _diverging_BrBG__WEBPACK_IMPORTED_MODULE_9__["scheme"]; });
  12504. /* harmony import */ var _diverging_PRGn__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diverging/PRGn */ "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js");
  12505. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePRGn", function() { return _diverging_PRGn__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  12506. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePRGn", function() { return _diverging_PRGn__WEBPACK_IMPORTED_MODULE_10__["scheme"]; });
  12507. /* harmony import */ var _diverging_PiYG__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diverging/PiYG */ "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js");
  12508. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePiYG", function() { return _diverging_PiYG__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  12509. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePiYG", function() { return _diverging_PiYG__WEBPACK_IMPORTED_MODULE_11__["scheme"]; });
  12510. /* harmony import */ var _diverging_PuOr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diverging/PuOr */ "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js");
  12511. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuOr", function() { return _diverging_PuOr__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  12512. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuOr", function() { return _diverging_PuOr__WEBPACK_IMPORTED_MODULE_12__["scheme"]; });
  12513. /* harmony import */ var _diverging_RdBu__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diverging/RdBu */ "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js");
  12514. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdBu", function() { return _diverging_RdBu__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  12515. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdBu", function() { return _diverging_RdBu__WEBPACK_IMPORTED_MODULE_13__["scheme"]; });
  12516. /* harmony import */ var _diverging_RdGy__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diverging/RdGy */ "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js");
  12517. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdGy", function() { return _diverging_RdGy__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  12518. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdGy", function() { return _diverging_RdGy__WEBPACK_IMPORTED_MODULE_14__["scheme"]; });
  12519. /* harmony import */ var _diverging_RdYlBu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diverging/RdYlBu */ "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js");
  12520. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlBu", function() { return _diverging_RdYlBu__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  12521. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlBu", function() { return _diverging_RdYlBu__WEBPACK_IMPORTED_MODULE_15__["scheme"]; });
  12522. /* harmony import */ var _diverging_RdYlGn__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diverging/RdYlGn */ "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js");
  12523. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlGn", function() { return _diverging_RdYlGn__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  12524. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlGn", function() { return _diverging_RdYlGn__WEBPACK_IMPORTED_MODULE_16__["scheme"]; });
  12525. /* harmony import */ var _diverging_Spectral__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diverging/Spectral */ "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js");
  12526. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSpectral", function() { return _diverging_Spectral__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  12527. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSpectral", function() { return _diverging_Spectral__WEBPACK_IMPORTED_MODULE_17__["scheme"]; });
  12528. /* harmony import */ var _sequential_multi_BuGn__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./sequential-multi/BuGn */ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js");
  12529. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuGn", function() { return _sequential_multi_BuGn__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  12530. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuGn", function() { return _sequential_multi_BuGn__WEBPACK_IMPORTED_MODULE_18__["scheme"]; });
  12531. /* harmony import */ var _sequential_multi_BuPu__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./sequential-multi/BuPu */ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js");
  12532. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuPu", function() { return _sequential_multi_BuPu__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  12533. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuPu", function() { return _sequential_multi_BuPu__WEBPACK_IMPORTED_MODULE_19__["scheme"]; });
  12534. /* harmony import */ var _sequential_multi_GnBu__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./sequential-multi/GnBu */ "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js");
  12535. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGnBu", function() { return _sequential_multi_GnBu__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  12536. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGnBu", function() { return _sequential_multi_GnBu__WEBPACK_IMPORTED_MODULE_20__["scheme"]; });
  12537. /* harmony import */ var _sequential_multi_OrRd__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./sequential-multi/OrRd */ "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js");
  12538. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOrRd", function() { return _sequential_multi_OrRd__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  12539. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOrRd", function() { return _sequential_multi_OrRd__WEBPACK_IMPORTED_MODULE_21__["scheme"]; });
  12540. /* harmony import */ var _sequential_multi_PuBuGn__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sequential-multi/PuBuGn */ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js");
  12541. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBuGn", function() { return _sequential_multi_PuBuGn__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  12542. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBuGn", function() { return _sequential_multi_PuBuGn__WEBPACK_IMPORTED_MODULE_22__["scheme"]; });
  12543. /* harmony import */ var _sequential_multi_PuBu__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./sequential-multi/PuBu */ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js");
  12544. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBu", function() { return _sequential_multi_PuBu__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  12545. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBu", function() { return _sequential_multi_PuBu__WEBPACK_IMPORTED_MODULE_23__["scheme"]; });
  12546. /* harmony import */ var _sequential_multi_PuRd__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./sequential-multi/PuRd */ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js");
  12547. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuRd", function() { return _sequential_multi_PuRd__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  12548. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuRd", function() { return _sequential_multi_PuRd__WEBPACK_IMPORTED_MODULE_24__["scheme"]; });
  12549. /* harmony import */ var _sequential_multi_RdPu__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./sequential-multi/RdPu */ "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js");
  12550. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdPu", function() { return _sequential_multi_RdPu__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  12551. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdPu", function() { return _sequential_multi_RdPu__WEBPACK_IMPORTED_MODULE_25__["scheme"]; });
  12552. /* harmony import */ var _sequential_multi_YlGnBu__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./sequential-multi/YlGnBu */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js");
  12553. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGnBu", function() { return _sequential_multi_YlGnBu__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  12554. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGnBu", function() { return _sequential_multi_YlGnBu__WEBPACK_IMPORTED_MODULE_26__["scheme"]; });
  12555. /* harmony import */ var _sequential_multi_YlGn__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./sequential-multi/YlGn */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js");
  12556. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGn", function() { return _sequential_multi_YlGn__WEBPACK_IMPORTED_MODULE_27__["default"]; });
  12557. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGn", function() { return _sequential_multi_YlGn__WEBPACK_IMPORTED_MODULE_27__["scheme"]; });
  12558. /* harmony import */ var _sequential_multi_YlOrBr__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./sequential-multi/YlOrBr */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js");
  12559. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrBr", function() { return _sequential_multi_YlOrBr__WEBPACK_IMPORTED_MODULE_28__["default"]; });
  12560. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrBr", function() { return _sequential_multi_YlOrBr__WEBPACK_IMPORTED_MODULE_28__["scheme"]; });
  12561. /* harmony import */ var _sequential_multi_YlOrRd__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./sequential-multi/YlOrRd */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js");
  12562. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrRd", function() { return _sequential_multi_YlOrRd__WEBPACK_IMPORTED_MODULE_29__["default"]; });
  12563. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrRd", function() { return _sequential_multi_YlOrRd__WEBPACK_IMPORTED_MODULE_29__["scheme"]; });
  12564. /* harmony import */ var _sequential_single_Blues__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./sequential-single/Blues */ "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js");
  12565. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBlues", function() { return _sequential_single_Blues__WEBPACK_IMPORTED_MODULE_30__["default"]; });
  12566. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBlues", function() { return _sequential_single_Blues__WEBPACK_IMPORTED_MODULE_30__["scheme"]; });
  12567. /* harmony import */ var _sequential_single_Greens__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./sequential-single/Greens */ "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js");
  12568. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreens", function() { return _sequential_single_Greens__WEBPACK_IMPORTED_MODULE_31__["default"]; });
  12569. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreens", function() { return _sequential_single_Greens__WEBPACK_IMPORTED_MODULE_31__["scheme"]; });
  12570. /* harmony import */ var _sequential_single_Greys__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./sequential-single/Greys */ "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js");
  12571. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreys", function() { return _sequential_single_Greys__WEBPACK_IMPORTED_MODULE_32__["default"]; });
  12572. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreys", function() { return _sequential_single_Greys__WEBPACK_IMPORTED_MODULE_32__["scheme"]; });
  12573. /* harmony import */ var _sequential_single_Purples__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./sequential-single/Purples */ "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js");
  12574. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePurples", function() { return _sequential_single_Purples__WEBPACK_IMPORTED_MODULE_33__["default"]; });
  12575. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePurples", function() { return _sequential_single_Purples__WEBPACK_IMPORTED_MODULE_33__["scheme"]; });
  12576. /* harmony import */ var _sequential_single_Reds__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./sequential-single/Reds */ "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js");
  12577. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateReds", function() { return _sequential_single_Reds__WEBPACK_IMPORTED_MODULE_34__["default"]; });
  12578. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeReds", function() { return _sequential_single_Reds__WEBPACK_IMPORTED_MODULE_34__["scheme"]; });
  12579. /* harmony import */ var _sequential_single_Oranges__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./sequential-single/Oranges */ "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js");
  12580. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOranges", function() { return _sequential_single_Oranges__WEBPACK_IMPORTED_MODULE_35__["default"]; });
  12581. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOranges", function() { return _sequential_single_Oranges__WEBPACK_IMPORTED_MODULE_35__["scheme"]; });
  12582. /* harmony import */ var _sequential_multi_cubehelix__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./sequential-multi/cubehelix */ "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js");
  12583. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { return _sequential_multi_cubehelix__WEBPACK_IMPORTED_MODULE_36__["default"]; });
  12584. /* harmony import */ var _sequential_multi_rainbow__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./sequential-multi/rainbow */ "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js");
  12585. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { return _sequential_multi_rainbow__WEBPACK_IMPORTED_MODULE_37__["default"]; });
  12586. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { return _sequential_multi_rainbow__WEBPACK_IMPORTED_MODULE_37__["warm"]; });
  12587. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { return _sequential_multi_rainbow__WEBPACK_IMPORTED_MODULE_37__["cool"]; });
  12588. /* harmony import */ var _sequential_multi_sinebow__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./sequential-multi/sinebow */ "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js");
  12589. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSinebow", function() { return _sequential_multi_sinebow__WEBPACK_IMPORTED_MODULE_38__["default"]; });
  12590. /* harmony import */ var _sequential_multi_viridis__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./sequential-multi/viridis */ "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js");
  12591. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { return _sequential_multi_viridis__WEBPACK_IMPORTED_MODULE_39__["default"]; });
  12592. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { return _sequential_multi_viridis__WEBPACK_IMPORTED_MODULE_39__["magma"]; });
  12593. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { return _sequential_multi_viridis__WEBPACK_IMPORTED_MODULE_39__["inferno"]; });
  12594. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { return _sequential_multi_viridis__WEBPACK_IMPORTED_MODULE_39__["plasma"]; });
  12595. /***/ }),
  12596. /***/ "./node_modules/d3-scale-chromatic/src/ramp.js":
  12597. /*!*****************************************************!*\
  12598. !*** ./node_modules/d3-scale-chromatic/src/ramp.js ***!
  12599. \*****************************************************/
  12600. /*! exports provided: default */
  12601. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12602. "use strict";
  12603. __webpack_require__.r(__webpack_exports__);
  12604. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  12605. /* harmony default export */ __webpack_exports__["default"] = (function(scheme) {
  12606. return Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateRgbBasis"])(scheme[scheme.length - 1]);
  12607. });
  12608. /***/ }),
  12609. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js":
  12610. /*!**********************************************************************!*\
  12611. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js ***!
  12612. \**********************************************************************/
  12613. /*! exports provided: scheme, default */
  12614. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12615. "use strict";
  12616. __webpack_require__.r(__webpack_exports__);
  12617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12618. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12619. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12620. var scheme = new Array(3).concat(
  12621. "e5f5f999d8c92ca25f",
  12622. "edf8fbb2e2e266c2a4238b45",
  12623. "edf8fbb2e2e266c2a42ca25f006d2c",
  12624. "edf8fbccece699d8c966c2a42ca25f006d2c",
  12625. "edf8fbccece699d8c966c2a441ae76238b45005824",
  12626. "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824",
  12627. "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b"
  12628. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12629. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12630. /***/ }),
  12631. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js":
  12632. /*!**********************************************************************!*\
  12633. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js ***!
  12634. \**********************************************************************/
  12635. /*! exports provided: scheme, default */
  12636. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12637. "use strict";
  12638. __webpack_require__.r(__webpack_exports__);
  12639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12640. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12641. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12642. var scheme = new Array(3).concat(
  12643. "e0ecf49ebcda8856a7",
  12644. "edf8fbb3cde38c96c688419d",
  12645. "edf8fbb3cde38c96c68856a7810f7c",
  12646. "edf8fbbfd3e69ebcda8c96c68856a7810f7c",
  12647. "edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b",
  12648. "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b",
  12649. "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b"
  12650. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12651. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12652. /***/ }),
  12653. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js":
  12654. /*!**********************************************************************!*\
  12655. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js ***!
  12656. \**********************************************************************/
  12657. /*! exports provided: scheme, default */
  12658. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12659. "use strict";
  12660. __webpack_require__.r(__webpack_exports__);
  12661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12662. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12663. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12664. var scheme = new Array(3).concat(
  12665. "e0f3dba8ddb543a2ca",
  12666. "f0f9e8bae4bc7bccc42b8cbe",
  12667. "f0f9e8bae4bc7bccc443a2ca0868ac",
  12668. "f0f9e8ccebc5a8ddb57bccc443a2ca0868ac",
  12669. "f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e",
  12670. "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
  12671. "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081"
  12672. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12673. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12674. /***/ }),
  12675. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js":
  12676. /*!**********************************************************************!*\
  12677. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js ***!
  12678. \**********************************************************************/
  12679. /*! exports provided: scheme, default */
  12680. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12681. "use strict";
  12682. __webpack_require__.r(__webpack_exports__);
  12683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12684. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12685. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12686. var scheme = new Array(3).concat(
  12687. "fee8c8fdbb84e34a33",
  12688. "fef0d9fdcc8afc8d59d7301f",
  12689. "fef0d9fdcc8afc8d59e34a33b30000",
  12690. "fef0d9fdd49efdbb84fc8d59e34a33b30000",
  12691. "fef0d9fdd49efdbb84fc8d59ef6548d7301f990000",
  12692. "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000",
  12693. "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000"
  12694. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12695. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12696. /***/ }),
  12697. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js":
  12698. /*!**********************************************************************!*\
  12699. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js ***!
  12700. \**********************************************************************/
  12701. /*! exports provided: scheme, default */
  12702. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12703. "use strict";
  12704. __webpack_require__.r(__webpack_exports__);
  12705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12706. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12707. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12708. var scheme = new Array(3).concat(
  12709. "ece7f2a6bddb2b8cbe",
  12710. "f1eef6bdc9e174a9cf0570b0",
  12711. "f1eef6bdc9e174a9cf2b8cbe045a8d",
  12712. "f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d",
  12713. "f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b",
  12714. "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b",
  12715. "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858"
  12716. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12717. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12718. /***/ }),
  12719. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js":
  12720. /*!************************************************************************!*\
  12721. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js ***!
  12722. \************************************************************************/
  12723. /*! exports provided: scheme, default */
  12724. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12725. "use strict";
  12726. __webpack_require__.r(__webpack_exports__);
  12727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12728. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12729. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12730. var scheme = new Array(3).concat(
  12731. "ece2f0a6bddb1c9099",
  12732. "f6eff7bdc9e167a9cf02818a",
  12733. "f6eff7bdc9e167a9cf1c9099016c59",
  12734. "f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
  12735. "f6eff7d0d1e6a6bddb67a9cf3690c002818a016450",
  12736. "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450",
  12737. "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636"
  12738. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12739. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12740. /***/ }),
  12741. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js":
  12742. /*!**********************************************************************!*\
  12743. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js ***!
  12744. \**********************************************************************/
  12745. /*! exports provided: scheme, default */
  12746. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12747. "use strict";
  12748. __webpack_require__.r(__webpack_exports__);
  12749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12750. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12751. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12752. var scheme = new Array(3).concat(
  12753. "e7e1efc994c7dd1c77",
  12754. "f1eef6d7b5d8df65b0ce1256",
  12755. "f1eef6d7b5d8df65b0dd1c77980043",
  12756. "f1eef6d4b9dac994c7df65b0dd1c77980043",
  12757. "f1eef6d4b9dac994c7df65b0e7298ace125691003f",
  12758. "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f",
  12759. "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f"
  12760. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12761. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12762. /***/ }),
  12763. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js":
  12764. /*!**********************************************************************!*\
  12765. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js ***!
  12766. \**********************************************************************/
  12767. /*! exports provided: scheme, default */
  12768. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12769. "use strict";
  12770. __webpack_require__.r(__webpack_exports__);
  12771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12772. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12773. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12774. var scheme = new Array(3).concat(
  12775. "fde0ddfa9fb5c51b8a",
  12776. "feebe2fbb4b9f768a1ae017e",
  12777. "feebe2fbb4b9f768a1c51b8a7a0177",
  12778. "feebe2fcc5c0fa9fb5f768a1c51b8a7a0177",
  12779. "feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177",
  12780. "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
  12781. "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a"
  12782. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12783. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12784. /***/ }),
  12785. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js":
  12786. /*!**********************************************************************!*\
  12787. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js ***!
  12788. \**********************************************************************/
  12789. /*! exports provided: scheme, default */
  12790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12791. "use strict";
  12792. __webpack_require__.r(__webpack_exports__);
  12793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12794. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12795. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12796. var scheme = new Array(3).concat(
  12797. "f7fcb9addd8e31a354",
  12798. "ffffccc2e69978c679238443",
  12799. "ffffccc2e69978c67931a354006837",
  12800. "ffffccd9f0a3addd8e78c67931a354006837",
  12801. "ffffccd9f0a3addd8e78c67941ab5d238443005a32",
  12802. "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32",
  12803. "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529"
  12804. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12805. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12806. /***/ }),
  12807. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js":
  12808. /*!************************************************************************!*\
  12809. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js ***!
  12810. \************************************************************************/
  12811. /*! exports provided: scheme, default */
  12812. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12813. "use strict";
  12814. __webpack_require__.r(__webpack_exports__);
  12815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12816. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12817. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12818. var scheme = new Array(3).concat(
  12819. "edf8b17fcdbb2c7fb8",
  12820. "ffffcca1dab441b6c4225ea8",
  12821. "ffffcca1dab441b6c42c7fb8253494",
  12822. "ffffccc7e9b47fcdbb41b6c42c7fb8253494",
  12823. "ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84",
  12824. "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84",
  12825. "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58"
  12826. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12827. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12828. /***/ }),
  12829. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js":
  12830. /*!************************************************************************!*\
  12831. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js ***!
  12832. \************************************************************************/
  12833. /*! exports provided: scheme, default */
  12834. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12835. "use strict";
  12836. __webpack_require__.r(__webpack_exports__);
  12837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12838. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12839. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12840. var scheme = new Array(3).concat(
  12841. "fff7bcfec44fd95f0e",
  12842. "ffffd4fed98efe9929cc4c02",
  12843. "ffffd4fed98efe9929d95f0e993404",
  12844. "ffffd4fee391fec44ffe9929d95f0e993404",
  12845. "ffffd4fee391fec44ffe9929ec7014cc4c028c2d04",
  12846. "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04",
  12847. "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506"
  12848. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12849. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12850. /***/ }),
  12851. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js":
  12852. /*!************************************************************************!*\
  12853. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js ***!
  12854. \************************************************************************/
  12855. /*! exports provided: scheme, default */
  12856. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12857. "use strict";
  12858. __webpack_require__.r(__webpack_exports__);
  12859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12860. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12861. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12862. var scheme = new Array(3).concat(
  12863. "ffeda0feb24cf03b20",
  12864. "ffffb2fecc5cfd8d3ce31a1c",
  12865. "ffffb2fecc5cfd8d3cf03b20bd0026",
  12866. "ffffb2fed976feb24cfd8d3cf03b20bd0026",
  12867. "ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026",
  12868. "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026",
  12869. "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026"
  12870. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12871. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12872. /***/ }),
  12873. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js":
  12874. /*!***************************************************************************!*\
  12875. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js ***!
  12876. \***************************************************************************/
  12877. /*! exports provided: default */
  12878. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12879. "use strict";
  12880. __webpack_require__.r(__webpack_exports__);
  12881. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  12882. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  12883. /* harmony default export */ __webpack_exports__["default"] = (Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(300, 0.5, 0.0), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(-240, 0.5, 1.0)));
  12884. /***/ }),
  12885. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js":
  12886. /*!*************************************************************************!*\
  12887. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js ***!
  12888. \*************************************************************************/
  12889. /*! exports provided: warm, cool, default */
  12890. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12891. "use strict";
  12892. __webpack_require__.r(__webpack_exports__);
  12893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warm", function() { return warm; });
  12894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cool", function() { return cool; });
  12895. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  12896. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  12897. var warm = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(-100, 0.75, 0.35), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(80, 1.50, 0.8));
  12898. var cool = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(260, 0.75, 0.35), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(80, 1.50, 0.8));
  12899. var c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])();
  12900. /* harmony default export */ __webpack_exports__["default"] = (function(t) {
  12901. if (t < 0 || t > 1) t -= Math.floor(t);
  12902. var ts = Math.abs(t - 0.5);
  12903. c.h = 360 * t - 100;
  12904. c.s = 1.5 - 1.5 * ts;
  12905. c.l = 0.8 - 0.9 * ts;
  12906. return c + "";
  12907. });
  12908. /***/ }),
  12909. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js":
  12910. /*!*************************************************************************!*\
  12911. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js ***!
  12912. \*************************************************************************/
  12913. /*! exports provided: default */
  12914. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12915. "use strict";
  12916. __webpack_require__.r(__webpack_exports__);
  12917. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  12918. var c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(),
  12919. pi_1_3 = Math.PI / 3,
  12920. pi_2_3 = Math.PI * 2 / 3;
  12921. /* harmony default export */ __webpack_exports__["default"] = (function(t) {
  12922. var x;
  12923. t = (0.5 - t) * Math.PI;
  12924. c.r = 255 * (x = Math.sin(t)) * x;
  12925. c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;
  12926. c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;
  12927. return c + "";
  12928. });
  12929. /***/ }),
  12930. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js":
  12931. /*!*************************************************************************!*\
  12932. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js ***!
  12933. \*************************************************************************/
  12934. /*! exports provided: default, magma, inferno, plasma */
  12935. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12936. "use strict";
  12937. __webpack_require__.r(__webpack_exports__);
  12938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "magma", function() { return magma; });
  12939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inferno", function() { return inferno; });
  12940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "plasma", function() { return plasma; });
  12941. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12942. function ramp(range) {
  12943. var n = range.length;
  12944. return function(t) {
  12945. return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
  12946. };
  12947. }
  12948. /* harmony default export */ __webpack_exports__["default"] = (ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")));
  12949. var magma = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
  12950. var inferno = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
  12951. var plasma = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
  12952. /***/ }),
  12953. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js":
  12954. /*!************************************************************************!*\
  12955. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js ***!
  12956. \************************************************************************/
  12957. /*! exports provided: scheme, default */
  12958. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12959. "use strict";
  12960. __webpack_require__.r(__webpack_exports__);
  12961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12962. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12963. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12964. var scheme = new Array(3).concat(
  12965. "deebf79ecae13182bd",
  12966. "eff3ffbdd7e76baed62171b5",
  12967. "eff3ffbdd7e76baed63182bd08519c",
  12968. "eff3ffc6dbef9ecae16baed63182bd08519c",
  12969. "eff3ffc6dbef9ecae16baed64292c62171b5084594",
  12970. "f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
  12971. "f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b"
  12972. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12973. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12974. /***/ }),
  12975. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js":
  12976. /*!*************************************************************************!*\
  12977. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js ***!
  12978. \*************************************************************************/
  12979. /*! exports provided: scheme, default */
  12980. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12981. "use strict";
  12982. __webpack_require__.r(__webpack_exports__);
  12983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12984. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12985. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12986. var scheme = new Array(3).concat(
  12987. "e5f5e0a1d99b31a354",
  12988. "edf8e9bae4b374c476238b45",
  12989. "edf8e9bae4b374c47631a354006d2c",
  12990. "edf8e9c7e9c0a1d99b74c47631a354006d2c",
  12991. "edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32",
  12992. "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32",
  12993. "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b"
  12994. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12995. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12996. /***/ }),
  12997. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js":
  12998. /*!************************************************************************!*\
  12999. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js ***!
  13000. \************************************************************************/
  13001. /*! exports provided: scheme, default */
  13002. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13003. "use strict";
  13004. __webpack_require__.r(__webpack_exports__);
  13005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13006. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13007. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13008. var scheme = new Array(3).concat(
  13009. "f0f0f0bdbdbd636363",
  13010. "f7f7f7cccccc969696525252",
  13011. "f7f7f7cccccc969696636363252525",
  13012. "f7f7f7d9d9d9bdbdbd969696636363252525",
  13013. "f7f7f7d9d9d9bdbdbd969696737373525252252525",
  13014. "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525",
  13015. "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000"
  13016. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13017. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13018. /***/ }),
  13019. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js":
  13020. /*!**************************************************************************!*\
  13021. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js ***!
  13022. \**************************************************************************/
  13023. /*! exports provided: scheme, default */
  13024. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13025. "use strict";
  13026. __webpack_require__.r(__webpack_exports__);
  13027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13028. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13029. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13030. var scheme = new Array(3).concat(
  13031. "fee6cefdae6be6550d",
  13032. "feeddefdbe85fd8d3cd94701",
  13033. "feeddefdbe85fd8d3ce6550da63603",
  13034. "feeddefdd0a2fdae6bfd8d3ce6550da63603",
  13035. "feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04",
  13036. "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
  13037. "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704"
  13038. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13039. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13040. /***/ }),
  13041. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js":
  13042. /*!**************************************************************************!*\
  13043. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js ***!
  13044. \**************************************************************************/
  13045. /*! exports provided: scheme, default */
  13046. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13047. "use strict";
  13048. __webpack_require__.r(__webpack_exports__);
  13049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13050. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13051. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13052. var scheme = new Array(3).concat(
  13053. "efedf5bcbddc756bb1",
  13054. "f2f0f7cbc9e29e9ac86a51a3",
  13055. "f2f0f7cbc9e29e9ac8756bb154278f",
  13056. "f2f0f7dadaebbcbddc9e9ac8756bb154278f",
  13057. "f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486",
  13058. "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486",
  13059. "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d"
  13060. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13061. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13062. /***/ }),
  13063. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js":
  13064. /*!***********************************************************************!*\
  13065. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js ***!
  13066. \***********************************************************************/
  13067. /*! exports provided: scheme, default */
  13068. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13069. "use strict";
  13070. __webpack_require__.r(__webpack_exports__);
  13071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13072. /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13073. /* harmony import */ var _ramp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13074. var scheme = new Array(3).concat(
  13075. "fee0d2fc9272de2d26",
  13076. "fee5d9fcae91fb6a4acb181d",
  13077. "fee5d9fcae91fb6a4ade2d26a50f15",
  13078. "fee5d9fcbba1fc9272fb6a4ade2d26a50f15",
  13079. "fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d",
  13080. "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d",
  13081. "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d"
  13082. ).map(_colors__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13083. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13084. /***/ }),
  13085. /***/ "./node_modules/d3-scale/src/array.js":
  13086. /*!********************************************!*\
  13087. !*** ./node_modules/d3-scale/src/array.js ***!
  13088. \********************************************/
  13089. /*! exports provided: map, slice */
  13090. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13091. "use strict";
  13092. __webpack_require__.r(__webpack_exports__);
  13093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; });
  13094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  13095. var array = Array.prototype;
  13096. var map = array.map;
  13097. var slice = array.slice;
  13098. /***/ }),
  13099. /***/ "./node_modules/d3-scale/src/band.js":
  13100. /*!*******************************************!*\
  13101. !*** ./node_modules/d3-scale/src/band.js ***!
  13102. \*******************************************/
  13103. /*! exports provided: default, point */
  13104. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13105. "use strict";
  13106. __webpack_require__.r(__webpack_exports__);
  13107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return band; });
  13108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  13109. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13110. /* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ordinal */ "./node_modules/d3-scale/src/ordinal.js");
  13111. function band() {
  13112. var scale = Object(_ordinal__WEBPACK_IMPORTED_MODULE_1__["default"])().unknown(undefined),
  13113. domain = scale.domain,
  13114. ordinalRange = scale.range,
  13115. range = [0, 1],
  13116. step,
  13117. bandwidth,
  13118. round = false,
  13119. paddingInner = 0,
  13120. paddingOuter = 0,
  13121. align = 0.5;
  13122. delete scale.unknown;
  13123. function rescale() {
  13124. var n = domain().length,
  13125. reverse = range[1] < range[0],
  13126. start = range[reverse - 0],
  13127. stop = range[1 - reverse];
  13128. step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);
  13129. if (round) step = Math.floor(step);
  13130. start += (stop - start - step * (n - paddingInner)) * align;
  13131. bandwidth = step * (1 - paddingInner);
  13132. if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);
  13133. var values = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n).map(function(i) { return start + step * i; });
  13134. return ordinalRange(reverse ? values.reverse() : values);
  13135. }
  13136. scale.domain = function(_) {
  13137. return arguments.length ? (domain(_), rescale()) : domain();
  13138. };
  13139. scale.range = function(_) {
  13140. return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();
  13141. };
  13142. scale.rangeRound = function(_) {
  13143. return range = [+_[0], +_[1]], round = true, rescale();
  13144. };
  13145. scale.bandwidth = function() {
  13146. return bandwidth;
  13147. };
  13148. scale.step = function() {
  13149. return step;
  13150. };
  13151. scale.round = function(_) {
  13152. return arguments.length ? (round = !!_, rescale()) : round;
  13153. };
  13154. scale.padding = function(_) {
  13155. return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingInner;
  13156. };
  13157. scale.paddingInner = function(_) {
  13158. return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner;
  13159. };
  13160. scale.paddingOuter = function(_) {
  13161. return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter;
  13162. };
  13163. scale.align = function(_) {
  13164. return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;
  13165. };
  13166. scale.copy = function() {
  13167. return band()
  13168. .domain(domain())
  13169. .range(range)
  13170. .round(round)
  13171. .paddingInner(paddingInner)
  13172. .paddingOuter(paddingOuter)
  13173. .align(align);
  13174. };
  13175. return rescale();
  13176. }
  13177. function pointish(scale) {
  13178. var copy = scale.copy;
  13179. scale.padding = scale.paddingOuter;
  13180. delete scale.paddingInner;
  13181. delete scale.paddingOuter;
  13182. scale.copy = function() {
  13183. return pointish(copy());
  13184. };
  13185. return scale;
  13186. }
  13187. function point() {
  13188. return pointish(band().paddingInner(1));
  13189. }
  13190. /***/ }),
  13191. /***/ "./node_modules/d3-scale/src/constant.js":
  13192. /*!***********************************************!*\
  13193. !*** ./node_modules/d3-scale/src/constant.js ***!
  13194. \***********************************************/
  13195. /*! exports provided: default */
  13196. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13197. "use strict";
  13198. __webpack_require__.r(__webpack_exports__);
  13199. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  13200. return function() {
  13201. return x;
  13202. };
  13203. });
  13204. /***/ }),
  13205. /***/ "./node_modules/d3-scale/src/continuous.js":
  13206. /*!*************************************************!*\
  13207. !*** ./node_modules/d3-scale/src/continuous.js ***!
  13208. \*************************************************/
  13209. /*! exports provided: deinterpolateLinear, copy, default */
  13210. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13211. "use strict";
  13212. __webpack_require__.r(__webpack_exports__);
  13213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deinterpolateLinear", function() { return deinterpolateLinear; });
  13214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function() { return copy; });
  13215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return continuous; });
  13216. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13217. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  13218. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13219. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js");
  13220. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js");
  13221. var unit = [0, 1];
  13222. function deinterpolateLinear(a, b) {
  13223. return (b -= (a = +a))
  13224. ? function(x) { return (x - a) / b; }
  13225. : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(b);
  13226. }
  13227. function deinterpolateClamp(deinterpolate) {
  13228. return function(a, b) {
  13229. var d = deinterpolate(a = +a, b = +b);
  13230. return function(x) { return x <= a ? 0 : x >= b ? 1 : d(x); };
  13231. };
  13232. }
  13233. function reinterpolateClamp(reinterpolate) {
  13234. return function(a, b) {
  13235. var r = reinterpolate(a = +a, b = +b);
  13236. return function(t) { return t <= 0 ? a : t >= 1 ? b : r(t); };
  13237. };
  13238. }
  13239. function bimap(domain, range, deinterpolate, reinterpolate) {
  13240. var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
  13241. if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0);
  13242. else d0 = deinterpolate(d0, d1), r0 = reinterpolate(r0, r1);
  13243. return function(x) { return r0(d0(x)); };
  13244. }
  13245. function polymap(domain, range, deinterpolate, reinterpolate) {
  13246. var j = Math.min(domain.length, range.length) - 1,
  13247. d = new Array(j),
  13248. r = new Array(j),
  13249. i = -1;
  13250. // Reverse descending domains.
  13251. if (domain[j] < domain[0]) {
  13252. domain = domain.slice().reverse();
  13253. range = range.slice().reverse();
  13254. }
  13255. while (++i < j) {
  13256. d[i] = deinterpolate(domain[i], domain[i + 1]);
  13257. r[i] = reinterpolate(range[i], range[i + 1]);
  13258. }
  13259. return function(x) {
  13260. var i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 1, j) - 1;
  13261. return r[i](d[i](x));
  13262. };
  13263. }
  13264. function copy(source, target) {
  13265. return target
  13266. .domain(source.domain())
  13267. .range(source.range())
  13268. .interpolate(source.interpolate())
  13269. .clamp(source.clamp());
  13270. }
  13271. // deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
  13272. // reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b].
  13273. function continuous(deinterpolate, reinterpolate) {
  13274. var domain = unit,
  13275. range = unit,
  13276. interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolate"],
  13277. clamp = false,
  13278. piecewise,
  13279. output,
  13280. input;
  13281. function rescale() {
  13282. piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;
  13283. output = input = null;
  13284. return scale;
  13285. }
  13286. function scale(x) {
  13287. return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate) : deinterpolate, interpolate)))(+x);
  13288. }
  13289. scale.invert = function(y) {
  13290. return (input || (input = piecewise(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y);
  13291. };
  13292. scale.domain = function(_) {
  13293. return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_2__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_4__["default"]), rescale()) : domain.slice();
  13294. };
  13295. scale.range = function(_) {
  13296. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), rescale()) : range.slice();
  13297. };
  13298. scale.rangeRound = function(_) {
  13299. return range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRound"], rescale();
  13300. };
  13301. scale.clamp = function(_) {
  13302. return arguments.length ? (clamp = !!_, rescale()) : clamp;
  13303. };
  13304. scale.interpolate = function(_) {
  13305. return arguments.length ? (interpolate = _, rescale()) : interpolate;
  13306. };
  13307. return rescale();
  13308. }
  13309. /***/ }),
  13310. /***/ "./node_modules/d3-scale/src/diverging.js":
  13311. /*!************************************************!*\
  13312. !*** ./node_modules/d3-scale/src/diverging.js ***!
  13313. \************************************************/
  13314. /*! exports provided: default */
  13315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13316. "use strict";
  13317. __webpack_require__.r(__webpack_exports__);
  13318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return diverging; });
  13319. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13320. function diverging(interpolator) {
  13321. var x0 = 0,
  13322. x1 = 0.5,
  13323. x2 = 1,
  13324. k10 = 1,
  13325. k21 = 1,
  13326. clamp = false;
  13327. function scale(x) {
  13328. var t = 0.5 + ((x = +x) - x1) * (x < x1 ? k10 : k21);
  13329. return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t);
  13330. }
  13331. scale.domain = function(_) {
  13332. return arguments.length ? (x0 = +_[0], x1 = +_[1], x2 = +_[2], k10 = x0 === x1 ? 0 : 0.5 / (x1 - x0), k21 = x1 === x2 ? 0 : 0.5 / (x2 - x1), scale) : [x0, x1, x2];
  13333. };
  13334. scale.clamp = function(_) {
  13335. return arguments.length ? (clamp = !!_, scale) : clamp;
  13336. };
  13337. scale.interpolator = function(_) {
  13338. return arguments.length ? (interpolator = _, scale) : interpolator;
  13339. };
  13340. scale.copy = function() {
  13341. return diverging(interpolator).domain([x0, x1, x2]).clamp(clamp);
  13342. };
  13343. return Object(_linear__WEBPACK_IMPORTED_MODULE_0__["linearish"])(scale);
  13344. }
  13345. /***/ }),
  13346. /***/ "./node_modules/d3-scale/src/identity.js":
  13347. /*!***********************************************!*\
  13348. !*** ./node_modules/d3-scale/src/identity.js ***!
  13349. \***********************************************/
  13350. /*! exports provided: default */
  13351. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13352. "use strict";
  13353. __webpack_require__.r(__webpack_exports__);
  13354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return identity; });
  13355. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13356. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13357. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js");
  13358. function identity() {
  13359. var domain = [0, 1];
  13360. function scale(x) {
  13361. return +x;
  13362. }
  13363. scale.invert = scale;
  13364. scale.domain = scale.range = function(_) {
  13365. return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_2__["default"]), scale) : domain.slice();
  13366. };
  13367. scale.copy = function() {
  13368. return identity().domain(domain);
  13369. };
  13370. return Object(_linear__WEBPACK_IMPORTED_MODULE_1__["linearish"])(scale);
  13371. }
  13372. /***/ }),
  13373. /***/ "./node_modules/d3-scale/src/index.js":
  13374. /*!********************************************!*\
  13375. !*** ./node_modules/d3-scale/src/index.js ***!
  13376. \********************************************/
  13377. /*! exports provided: scaleBand, scalePoint, scaleIdentity, scaleLinear, scaleLog, scaleOrdinal, scaleImplicit, scalePow, scaleSqrt, scaleQuantile, scaleQuantize, scaleThreshold, scaleTime, scaleUtc, scaleSequential, scaleDiverging */
  13378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13379. "use strict";
  13380. __webpack_require__.r(__webpack_exports__);
  13381. /* harmony import */ var _band__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band */ "./node_modules/d3-scale/src/band.js");
  13382. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleBand", function() { return _band__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  13383. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePoint", function() { return _band__WEBPACK_IMPORTED_MODULE_0__["point"]; });
  13384. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-scale/src/identity.js");
  13385. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { return _identity__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  13386. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13387. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { return _linear__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  13388. /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "./node_modules/d3-scale/src/log.js");
  13389. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLog", function() { return _log__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  13390. /* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ordinal */ "./node_modules/d3-scale/src/ordinal.js");
  13391. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { return _ordinal__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  13392. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { return _ordinal__WEBPACK_IMPORTED_MODULE_4__["implicit"]; });
  13393. /* harmony import */ var _pow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pow */ "./node_modules/d3-scale/src/pow.js");
  13394. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePow", function() { return _pow__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  13395. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { return _pow__WEBPACK_IMPORTED_MODULE_5__["sqrt"]; });
  13396. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-scale/src/quantile.js");
  13397. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { return _quantile__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  13398. /* harmony import */ var _quantize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./quantize */ "./node_modules/d3-scale/src/quantize.js");
  13399. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { return _quantize__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  13400. /* harmony import */ var _threshold__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./threshold */ "./node_modules/d3-scale/src/threshold.js");
  13401. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { return _threshold__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  13402. /* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./time */ "./node_modules/d3-scale/src/time.js");
  13403. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleTime", function() { return _time__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  13404. /* harmony import */ var _utcTime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utcTime */ "./node_modules/d3-scale/src/utcTime.js");
  13405. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { return _utcTime__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  13406. /* harmony import */ var _sequential__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./sequential */ "./node_modules/d3-scale/src/sequential.js");
  13407. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { return _sequential__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  13408. /* harmony import */ var _diverging__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diverging */ "./node_modules/d3-scale/src/diverging.js");
  13409. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDiverging", function() { return _diverging__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  13410. /***/ }),
  13411. /***/ "./node_modules/d3-scale/src/linear.js":
  13412. /*!*********************************************!*\
  13413. !*** ./node_modules/d3-scale/src/linear.js ***!
  13414. \*********************************************/
  13415. /*! exports provided: linearish, default */
  13416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13417. "use strict";
  13418. __webpack_require__.r(__webpack_exports__);
  13419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linearish", function() { return linearish; });
  13420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return linear; });
  13421. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13422. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  13423. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13424. /* harmony import */ var _tickFormat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tickFormat */ "./node_modules/d3-scale/src/tickFormat.js");
  13425. function linearish(scale) {
  13426. var domain = scale.domain;
  13427. scale.ticks = function(count) {
  13428. var d = domain();
  13429. return Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(d[0], d[d.length - 1], count == null ? 10 : count);
  13430. };
  13431. scale.tickFormat = function(count, specifier) {
  13432. return Object(_tickFormat__WEBPACK_IMPORTED_MODULE_3__["default"])(domain(), count, specifier);
  13433. };
  13434. scale.nice = function(count) {
  13435. if (count == null) count = 10;
  13436. var d = domain(),
  13437. i0 = 0,
  13438. i1 = d.length - 1,
  13439. start = d[i0],
  13440. stop = d[i1],
  13441. step;
  13442. if (stop < start) {
  13443. step = start, start = stop, stop = step;
  13444. step = i0, i0 = i1, i1 = step;
  13445. }
  13446. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count);
  13447. if (step > 0) {
  13448. start = Math.floor(start / step) * step;
  13449. stop = Math.ceil(stop / step) * step;
  13450. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count);
  13451. } else if (step < 0) {
  13452. start = Math.ceil(start * step) / step;
  13453. stop = Math.floor(stop * step) / step;
  13454. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count);
  13455. }
  13456. if (step > 0) {
  13457. d[i0] = Math.floor(start / step) * step;
  13458. d[i1] = Math.ceil(stop / step) * step;
  13459. domain(d);
  13460. } else if (step < 0) {
  13461. d[i0] = Math.ceil(start * step) / step;
  13462. d[i1] = Math.floor(stop * step) / step;
  13463. domain(d);
  13464. }
  13465. return scale;
  13466. };
  13467. return scale;
  13468. }
  13469. function linear() {
  13470. var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_2__["deinterpolateLinear"], d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]);
  13471. scale.copy = function() {
  13472. return Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["copy"])(scale, linear());
  13473. };
  13474. return linearish(scale);
  13475. }
  13476. /***/ }),
  13477. /***/ "./node_modules/d3-scale/src/log.js":
  13478. /*!******************************************!*\
  13479. !*** ./node_modules/d3-scale/src/log.js ***!
  13480. \******************************************/
  13481. /*! exports provided: default */
  13482. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13483. "use strict";
  13484. __webpack_require__.r(__webpack_exports__);
  13485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return log; });
  13486. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13487. /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js");
  13488. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js");
  13489. /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js");
  13490. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13491. function deinterpolate(a, b) {
  13492. return (b = Math.log(b / a))
  13493. ? function(x) { return Math.log(x / a) / b; }
  13494. : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(b);
  13495. }
  13496. function reinterpolate(a, b) {
  13497. return a < 0
  13498. ? function(t) { return -Math.pow(-b, t) * Math.pow(-a, 1 - t); }
  13499. : function(t) { return Math.pow(b, t) * Math.pow(a, 1 - t); };
  13500. }
  13501. function pow10(x) {
  13502. return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x;
  13503. }
  13504. function powp(base) {
  13505. return base === 10 ? pow10
  13506. : base === Math.E ? Math.exp
  13507. : function(x) { return Math.pow(base, x); };
  13508. }
  13509. function logp(base) {
  13510. return base === Math.E ? Math.log
  13511. : base === 10 && Math.log10
  13512. || base === 2 && Math.log2
  13513. || (base = Math.log(base), function(x) { return Math.log(x) / base; });
  13514. }
  13515. function reflect(f) {
  13516. return function(x) {
  13517. return -f(-x);
  13518. };
  13519. }
  13520. function log() {
  13521. var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["default"])(deinterpolate, reinterpolate).domain([1, 10]),
  13522. domain = scale.domain,
  13523. base = 10,
  13524. logs = logp(10),
  13525. pows = powp(10);
  13526. function rescale() {
  13527. logs = logp(base), pows = powp(base);
  13528. if (domain()[0] < 0) logs = reflect(logs), pows = reflect(pows);
  13529. return scale;
  13530. }
  13531. scale.base = function(_) {
  13532. return arguments.length ? (base = +_, rescale()) : base;
  13533. };
  13534. scale.domain = function(_) {
  13535. return arguments.length ? (domain(_), rescale()) : domain();
  13536. };
  13537. scale.ticks = function(count) {
  13538. var d = domain(),
  13539. u = d[0],
  13540. v = d[d.length - 1],
  13541. r;
  13542. if (r = v < u) i = u, u = v, v = i;
  13543. var i = logs(u),
  13544. j = logs(v),
  13545. p,
  13546. k,
  13547. t,
  13548. n = count == null ? 10 : +count,
  13549. z = [];
  13550. if (!(base % 1) && j - i < n) {
  13551. i = Math.round(i) - 1, j = Math.round(j) + 1;
  13552. if (u > 0) for (; i < j; ++i) {
  13553. for (k = 1, p = pows(i); k < base; ++k) {
  13554. t = p * k;
  13555. if (t < u) continue;
  13556. if (t > v) break;
  13557. z.push(t);
  13558. }
  13559. } else for (; i < j; ++i) {
  13560. for (k = base - 1, p = pows(i); k >= 1; --k) {
  13561. t = p * k;
  13562. if (t < u) continue;
  13563. if (t > v) break;
  13564. z.push(t);
  13565. }
  13566. }
  13567. } else {
  13568. z = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(i, j, Math.min(j - i, n)).map(pows);
  13569. }
  13570. return r ? z.reverse() : z;
  13571. };
  13572. scale.tickFormat = function(count, specifier) {
  13573. if (specifier == null) specifier = base === 10 ? ".0e" : ",";
  13574. if (typeof specifier !== "function") specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier);
  13575. if (count === Infinity) return specifier;
  13576. if (count == null) count = 10;
  13577. var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?
  13578. return function(d) {
  13579. var i = d / pows(Math.round(logs(d)));
  13580. if (i * base < base - 0.5) i *= base;
  13581. return i <= k ? specifier(d) : "";
  13582. };
  13583. };
  13584. scale.nice = function() {
  13585. return domain(Object(_nice__WEBPACK_IMPORTED_MODULE_3__["default"])(domain(), {
  13586. floor: function(x) { return pows(Math.floor(logs(x))); },
  13587. ceil: function(x) { return pows(Math.ceil(logs(x))); }
  13588. }));
  13589. };
  13590. scale.copy = function() {
  13591. return Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, log().base(base));
  13592. };
  13593. return scale;
  13594. }
  13595. /***/ }),
  13596. /***/ "./node_modules/d3-scale/src/nice.js":
  13597. /*!*******************************************!*\
  13598. !*** ./node_modules/d3-scale/src/nice.js ***!
  13599. \*******************************************/
  13600. /*! exports provided: default */
  13601. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13602. "use strict";
  13603. __webpack_require__.r(__webpack_exports__);
  13604. /* harmony default export */ __webpack_exports__["default"] = (function(domain, interval) {
  13605. domain = domain.slice();
  13606. var i0 = 0,
  13607. i1 = domain.length - 1,
  13608. x0 = domain[i0],
  13609. x1 = domain[i1],
  13610. t;
  13611. if (x1 < x0) {
  13612. t = i0, i0 = i1, i1 = t;
  13613. t = x0, x0 = x1, x1 = t;
  13614. }
  13615. domain[i0] = interval.floor(x0);
  13616. domain[i1] = interval.ceil(x1);
  13617. return domain;
  13618. });
  13619. /***/ }),
  13620. /***/ "./node_modules/d3-scale/src/number.js":
  13621. /*!*********************************************!*\
  13622. !*** ./node_modules/d3-scale/src/number.js ***!
  13623. \*********************************************/
  13624. /*! exports provided: default */
  13625. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13626. "use strict";
  13627. __webpack_require__.r(__webpack_exports__);
  13628. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  13629. return +x;
  13630. });
  13631. /***/ }),
  13632. /***/ "./node_modules/d3-scale/src/ordinal.js":
  13633. /*!**********************************************!*\
  13634. !*** ./node_modules/d3-scale/src/ordinal.js ***!
  13635. \**********************************************/
  13636. /*! exports provided: implicit, default */
  13637. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13638. "use strict";
  13639. __webpack_require__.r(__webpack_exports__);
  13640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "implicit", function() { return implicit; });
  13641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ordinal; });
  13642. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  13643. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13644. var implicit = {name: "implicit"};
  13645. function ordinal(range) {
  13646. var index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])(),
  13647. domain = [],
  13648. unknown = implicit;
  13649. range = range == null ? [] : _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(range);
  13650. function scale(d) {
  13651. var key = d + "", i = index.get(key);
  13652. if (!i) {
  13653. if (unknown !== implicit) return unknown;
  13654. index.set(key, i = domain.push(d));
  13655. }
  13656. return range[(i - 1) % range.length];
  13657. }
  13658. scale.domain = function(_) {
  13659. if (!arguments.length) return domain.slice();
  13660. domain = [], index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])();
  13661. var i = -1, n = _.length, d, key;
  13662. while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d));
  13663. return scale;
  13664. };
  13665. scale.range = function(_) {
  13666. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), scale) : range.slice();
  13667. };
  13668. scale.unknown = function(_) {
  13669. return arguments.length ? (unknown = _, scale) : unknown;
  13670. };
  13671. scale.copy = function() {
  13672. return ordinal()
  13673. .domain(domain)
  13674. .range(range)
  13675. .unknown(unknown);
  13676. };
  13677. return scale;
  13678. }
  13679. /***/ }),
  13680. /***/ "./node_modules/d3-scale/src/pow.js":
  13681. /*!******************************************!*\
  13682. !*** ./node_modules/d3-scale/src/pow.js ***!
  13683. \******************************************/
  13684. /*! exports provided: default, sqrt */
  13685. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13686. "use strict";
  13687. __webpack_require__.r(__webpack_exports__);
  13688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pow; });
  13689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; });
  13690. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js");
  13691. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13692. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13693. function raise(x, exponent) {
  13694. return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);
  13695. }
  13696. function pow() {
  13697. var exponent = 1,
  13698. scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(deinterpolate, reinterpolate),
  13699. domain = scale.domain;
  13700. function deinterpolate(a, b) {
  13701. return (b = raise(b, exponent) - (a = raise(a, exponent)))
  13702. ? function(x) { return (raise(x, exponent) - a) / b; }
  13703. : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(b);
  13704. }
  13705. function reinterpolate(a, b) {
  13706. b = raise(b, exponent) - (a = raise(a, exponent));
  13707. return function(t) { return raise(a + b * t, 1 / exponent); };
  13708. }
  13709. scale.exponent = function(_) {
  13710. return arguments.length ? (exponent = +_, domain(domain())) : exponent;
  13711. };
  13712. scale.copy = function() {
  13713. return Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["copy"])(scale, pow().exponent(exponent));
  13714. };
  13715. return Object(_linear__WEBPACK_IMPORTED_MODULE_1__["linearish"])(scale);
  13716. }
  13717. function sqrt() {
  13718. return pow().exponent(0.5);
  13719. }
  13720. /***/ }),
  13721. /***/ "./node_modules/d3-scale/src/quantile.js":
  13722. /*!***********************************************!*\
  13723. !*** ./node_modules/d3-scale/src/quantile.js ***!
  13724. \***********************************************/
  13725. /*! exports provided: default */
  13726. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13727. "use strict";
  13728. __webpack_require__.r(__webpack_exports__);
  13729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantile; });
  13730. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13731. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13732. function quantile() {
  13733. var domain = [],
  13734. range = [],
  13735. thresholds = [];
  13736. function rescale() {
  13737. var i = 0, n = Math.max(1, range.length);
  13738. thresholds = new Array(n - 1);
  13739. while (++i < n) thresholds[i - 1] = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["quantile"])(domain, i / n);
  13740. return scale;
  13741. }
  13742. function scale(x) {
  13743. if (!isNaN(x = +x)) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(thresholds, x)];
  13744. }
  13745. scale.invertExtent = function(y) {
  13746. var i = range.indexOf(y);
  13747. return i < 0 ? [NaN, NaN] : [
  13748. i > 0 ? thresholds[i - 1] : domain[0],
  13749. i < thresholds.length ? thresholds[i] : domain[domain.length - 1]
  13750. ];
  13751. };
  13752. scale.domain = function(_) {
  13753. if (!arguments.length) return domain.slice();
  13754. domain = [];
  13755. for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);
  13756. domain.sort(d3_array__WEBPACK_IMPORTED_MODULE_0__["ascending"]);
  13757. return rescale();
  13758. };
  13759. scale.range = function(_) {
  13760. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), rescale()) : range.slice();
  13761. };
  13762. scale.quantiles = function() {
  13763. return thresholds.slice();
  13764. };
  13765. scale.copy = function() {
  13766. return quantile()
  13767. .domain(domain)
  13768. .range(range);
  13769. };
  13770. return scale;
  13771. }
  13772. /***/ }),
  13773. /***/ "./node_modules/d3-scale/src/quantize.js":
  13774. /*!***********************************************!*\
  13775. !*** ./node_modules/d3-scale/src/quantize.js ***!
  13776. \***********************************************/
  13777. /*! exports provided: default */
  13778. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13779. "use strict";
  13780. __webpack_require__.r(__webpack_exports__);
  13781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantize; });
  13782. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13783. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13784. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13785. function quantize() {
  13786. var x0 = 0,
  13787. x1 = 1,
  13788. n = 1,
  13789. domain = [0.5],
  13790. range = [0, 1];
  13791. function scale(x) {
  13792. if (x <= x) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)];
  13793. }
  13794. function rescale() {
  13795. var i = -1;
  13796. domain = new Array(n);
  13797. while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);
  13798. return scale;
  13799. }
  13800. scale.domain = function(_) {
  13801. return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];
  13802. };
  13803. scale.range = function(_) {
  13804. return arguments.length ? (n = (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_)).length - 1, rescale()) : range.slice();
  13805. };
  13806. scale.invertExtent = function(y) {
  13807. var i = range.indexOf(y);
  13808. return i < 0 ? [NaN, NaN]
  13809. : i < 1 ? [x0, domain[0]]
  13810. : i >= n ? [domain[n - 1], x1]
  13811. : [domain[i - 1], domain[i]];
  13812. };
  13813. scale.copy = function() {
  13814. return quantize()
  13815. .domain([x0, x1])
  13816. .range(range);
  13817. };
  13818. return Object(_linear__WEBPACK_IMPORTED_MODULE_2__["linearish"])(scale);
  13819. }
  13820. /***/ }),
  13821. /***/ "./node_modules/d3-scale/src/sequential.js":
  13822. /*!*************************************************!*\
  13823. !*** ./node_modules/d3-scale/src/sequential.js ***!
  13824. \*************************************************/
  13825. /*! exports provided: default */
  13826. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13827. "use strict";
  13828. __webpack_require__.r(__webpack_exports__);
  13829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sequential; });
  13830. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13831. function sequential(interpolator) {
  13832. var x0 = 0,
  13833. x1 = 1,
  13834. k10 = 1,
  13835. clamp = false;
  13836. function scale(x) {
  13837. var t = (x - x0) * k10;
  13838. return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t);
  13839. }
  13840. scale.domain = function(_) {
  13841. return arguments.length ? (x0 = +_[0], x1 = +_[1], k10 = x0 === x1 ? 0 : 1 / (x1 - x0), scale) : [x0, x1];
  13842. };
  13843. scale.clamp = function(_) {
  13844. return arguments.length ? (clamp = !!_, scale) : clamp;
  13845. };
  13846. scale.interpolator = function(_) {
  13847. return arguments.length ? (interpolator = _, scale) : interpolator;
  13848. };
  13849. scale.copy = function() {
  13850. return sequential(interpolator).domain([x0, x1]).clamp(clamp);
  13851. };
  13852. return Object(_linear__WEBPACK_IMPORTED_MODULE_0__["linearish"])(scale);
  13853. }
  13854. /***/ }),
  13855. /***/ "./node_modules/d3-scale/src/threshold.js":
  13856. /*!************************************************!*\
  13857. !*** ./node_modules/d3-scale/src/threshold.js ***!
  13858. \************************************************/
  13859. /*! exports provided: default */
  13860. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13861. "use strict";
  13862. __webpack_require__.r(__webpack_exports__);
  13863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return threshold; });
  13864. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13865. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13866. function threshold() {
  13867. var domain = [0.5],
  13868. range = [0, 1],
  13869. n = 1;
  13870. function scale(x) {
  13871. if (x <= x) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)];
  13872. }
  13873. scale.domain = function(_) {
  13874. return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();
  13875. };
  13876. scale.range = function(_) {
  13877. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();
  13878. };
  13879. scale.invertExtent = function(y) {
  13880. var i = range.indexOf(y);
  13881. return [domain[i - 1], domain[i]];
  13882. };
  13883. scale.copy = function() {
  13884. return threshold()
  13885. .domain(domain)
  13886. .range(range);
  13887. };
  13888. return scale;
  13889. }
  13890. /***/ }),
  13891. /***/ "./node_modules/d3-scale/src/tickFormat.js":
  13892. /*!*************************************************!*\
  13893. !*** ./node_modules/d3-scale/src/tickFormat.js ***!
  13894. \*************************************************/
  13895. /*! exports provided: default */
  13896. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13897. "use strict";
  13898. __webpack_require__.r(__webpack_exports__);
  13899. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13900. /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js");
  13901. /* harmony default export */ __webpack_exports__["default"] = (function(domain, count, specifier) {
  13902. var start = domain[0],
  13903. stop = domain[domain.length - 1],
  13904. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, count == null ? 10 : count),
  13905. precision;
  13906. specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatSpecifier"])(specifier == null ? ",f" : specifier);
  13907. switch (specifier.type) {
  13908. case "s": {
  13909. var value = Math.max(Math.abs(start), Math.abs(stop));
  13910. if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionPrefix"])(step, value))) specifier.precision = precision;
  13911. return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatPrefix"])(specifier, value);
  13912. }
  13913. case "":
  13914. case "e":
  13915. case "g":
  13916. case "p":
  13917. case "r": {
  13918. if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionRound"])(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
  13919. break;
  13920. }
  13921. case "f":
  13922. case "%": {
  13923. if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionFixed"])(step))) specifier.precision = precision - (specifier.type === "%") * 2;
  13924. break;
  13925. }
  13926. }
  13927. return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier);
  13928. });
  13929. /***/ }),
  13930. /***/ "./node_modules/d3-scale/src/time.js":
  13931. /*!*******************************************!*\
  13932. !*** ./node_modules/d3-scale/src/time.js ***!
  13933. \*******************************************/
  13934. /*! exports provided: calendar, default */
  13935. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13936. "use strict";
  13937. __webpack_require__.r(__webpack_exports__);
  13938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calendar", function() { return calendar; });
  13939. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13940. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  13941. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  13942. /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js");
  13943. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13944. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13945. /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js");
  13946. var durationSecond = 1000,
  13947. durationMinute = durationSecond * 60,
  13948. durationHour = durationMinute * 60,
  13949. durationDay = durationHour * 24,
  13950. durationWeek = durationDay * 7,
  13951. durationMonth = durationDay * 30,
  13952. durationYear = durationDay * 365;
  13953. function date(t) {
  13954. return new Date(t);
  13955. }
  13956. function number(t) {
  13957. return t instanceof Date ? +t : +new Date(+t);
  13958. }
  13959. function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
  13960. var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_5__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_5__["deinterpolateLinear"], d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]),
  13961. invert = scale.invert,
  13962. domain = scale.domain;
  13963. var formatMillisecond = format(".%L"),
  13964. formatSecond = format(":%S"),
  13965. formatMinute = format("%I:%M"),
  13966. formatHour = format("%I %p"),
  13967. formatDay = format("%a %d"),
  13968. formatWeek = format("%b %d"),
  13969. formatMonth = format("%B"),
  13970. formatYear = format("%Y");
  13971. var tickIntervals = [
  13972. [second, 1, durationSecond],
  13973. [second, 5, 5 * durationSecond],
  13974. [second, 15, 15 * durationSecond],
  13975. [second, 30, 30 * durationSecond],
  13976. [minute, 1, durationMinute],
  13977. [minute, 5, 5 * durationMinute],
  13978. [minute, 15, 15 * durationMinute],
  13979. [minute, 30, 30 * durationMinute],
  13980. [ hour, 1, durationHour ],
  13981. [ hour, 3, 3 * durationHour ],
  13982. [ hour, 6, 6 * durationHour ],
  13983. [ hour, 12, 12 * durationHour ],
  13984. [ day, 1, durationDay ],
  13985. [ day, 2, 2 * durationDay ],
  13986. [ week, 1, durationWeek ],
  13987. [ month, 1, durationMonth ],
  13988. [ month, 3, 3 * durationMonth ],
  13989. [ year, 1, durationYear ]
  13990. ];
  13991. function tickFormat(date) {
  13992. return (second(date) < date ? formatMillisecond
  13993. : minute(date) < date ? formatSecond
  13994. : hour(date) < date ? formatMinute
  13995. : day(date) < date ? formatHour
  13996. : month(date) < date ? (week(date) < date ? formatDay : formatWeek)
  13997. : year(date) < date ? formatMonth
  13998. : formatYear)(date);
  13999. }
  14000. function tickInterval(interval, start, stop, step) {
  14001. if (interval == null) interval = 10;
  14002. // If a desired tick count is specified, pick a reasonable tick interval
  14003. // based on the extent of the domain and a rough estimate of tick size.
  14004. // Otherwise, assume interval is already a time interval and use it.
  14005. if (typeof interval === "number") {
  14006. var target = Math.abs(stop - start) / interval,
  14007. i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisector"])(function(i) { return i[2]; }).right(tickIntervals, target);
  14008. if (i === tickIntervals.length) {
  14009. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start / durationYear, stop / durationYear, interval);
  14010. interval = year;
  14011. } else if (i) {
  14012. i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
  14013. step = i[1];
  14014. interval = i[0];
  14015. } else {
  14016. step = Math.max(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, interval), 1);
  14017. interval = millisecond;
  14018. }
  14019. }
  14020. return step == null ? interval : interval.every(step);
  14021. }
  14022. scale.invert = function(y) {
  14023. return new Date(invert(y));
  14024. };
  14025. scale.domain = function(_) {
  14026. return arguments.length ? domain(_array__WEBPACK_IMPORTED_MODULE_4__["map"].call(_, number)) : domain().map(date);
  14027. };
  14028. scale.ticks = function(interval, step) {
  14029. var d = domain(),
  14030. t0 = d[0],
  14031. t1 = d[d.length - 1],
  14032. r = t1 < t0,
  14033. t;
  14034. if (r) t = t0, t0 = t1, t1 = t;
  14035. t = tickInterval(interval, t0, t1, step);
  14036. t = t ? t.range(t0, t1 + 1) : []; // inclusive stop
  14037. return r ? t.reverse() : t;
  14038. };
  14039. scale.tickFormat = function(count, specifier) {
  14040. return specifier == null ? tickFormat : format(specifier);
  14041. };
  14042. scale.nice = function(interval, step) {
  14043. var d = domain();
  14044. return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
  14045. ? domain(Object(_nice__WEBPACK_IMPORTED_MODULE_6__["default"])(d, interval))
  14046. : scale;
  14047. };
  14048. scale.copy = function() {
  14049. return Object(_continuous__WEBPACK_IMPORTED_MODULE_5__["copy"])(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));
  14050. };
  14051. return scale;
  14052. }
  14053. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14054. return calendar(d3_time__WEBPACK_IMPORTED_MODULE_2__["timeYear"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMonth"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeWeek"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeDay"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeHour"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMinute"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeSecond"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMillisecond"], d3_time_format__WEBPACK_IMPORTED_MODULE_3__["timeFormat"]).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]);
  14055. });
  14056. /***/ }),
  14057. /***/ "./node_modules/d3-scale/src/utcTime.js":
  14058. /*!**********************************************!*\
  14059. !*** ./node_modules/d3-scale/src/utcTime.js ***!
  14060. \**********************************************/
  14061. /*! exports provided: default */
  14062. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14063. "use strict";
  14064. __webpack_require__.r(__webpack_exports__);
  14065. /* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./time */ "./node_modules/d3-scale/src/time.js");
  14066. /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js");
  14067. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  14068. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14069. return Object(_time__WEBPACK_IMPORTED_MODULE_0__["calendar"])(d3_time__WEBPACK_IMPORTED_MODULE_2__["utcYear"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMonth"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcWeek"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcDay"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcHour"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMinute"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcSecond"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMillisecond"], d3_time_format__WEBPACK_IMPORTED_MODULE_1__["utcFormat"]).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]);
  14070. });
  14071. /***/ }),
  14072. /***/ "./node_modules/d3-selection/src/constant.js":
  14073. /*!***************************************************!*\
  14074. !*** ./node_modules/d3-selection/src/constant.js ***!
  14075. \***************************************************/
  14076. /*! exports provided: default */
  14077. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14078. "use strict";
  14079. __webpack_require__.r(__webpack_exports__);
  14080. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  14081. return function() {
  14082. return x;
  14083. };
  14084. });
  14085. /***/ }),
  14086. /***/ "./node_modules/d3-selection/src/create.js":
  14087. /*!*************************************************!*\
  14088. !*** ./node_modules/d3-selection/src/create.js ***!
  14089. \*************************************************/
  14090. /*! exports provided: default */
  14091. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14092. "use strict";
  14093. __webpack_require__.r(__webpack_exports__);
  14094. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./creator */ "./node_modules/d3-selection/src/creator.js");
  14095. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/select.js");
  14096. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14097. return Object(_select__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name).call(document.documentElement));
  14098. });
  14099. /***/ }),
  14100. /***/ "./node_modules/d3-selection/src/creator.js":
  14101. /*!**************************************************!*\
  14102. !*** ./node_modules/d3-selection/src/creator.js ***!
  14103. \**************************************************/
  14104. /*! exports provided: default */
  14105. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14106. "use strict";
  14107. __webpack_require__.r(__webpack_exports__);
  14108. /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./namespace */ "./node_modules/d3-selection/src/namespace.js");
  14109. /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js");
  14110. function creatorInherit(name) {
  14111. return function() {
  14112. var document = this.ownerDocument,
  14113. uri = this.namespaceURI;
  14114. return uri === _namespaces__WEBPACK_IMPORTED_MODULE_1__["xhtml"] && document.documentElement.namespaceURI === _namespaces__WEBPACK_IMPORTED_MODULE_1__["xhtml"]
  14115. ? document.createElement(name)
  14116. : document.createElementNS(uri, name);
  14117. };
  14118. }
  14119. function creatorFixed(fullname) {
  14120. return function() {
  14121. return this.ownerDocument.createElementNS(fullname.space, fullname.local);
  14122. };
  14123. }
  14124. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14125. var fullname = Object(_namespace__WEBPACK_IMPORTED_MODULE_0__["default"])(name);
  14126. return (fullname.local
  14127. ? creatorFixed
  14128. : creatorInherit)(fullname);
  14129. });
  14130. /***/ }),
  14131. /***/ "./node_modules/d3-selection/src/index.js":
  14132. /*!************************************************!*\
  14133. !*** ./node_modules/d3-selection/src/index.js ***!
  14134. \************************************************/
  14135. /*! exports provided: create, creator, local, matcher, mouse, namespace, namespaces, clientPoint, select, selectAll, selection, selector, selectorAll, style, touch, touches, window, event, customEvent */
  14136. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14137. "use strict";
  14138. __webpack_require__.r(__webpack_exports__);
  14139. /* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create */ "./node_modules/d3-selection/src/create.js");
  14140. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return _create__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  14141. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./creator */ "./node_modules/d3-selection/src/creator.js");
  14142. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "creator", function() { return _creator__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  14143. /* harmony import */ var _local__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./local */ "./node_modules/d3-selection/src/local.js");
  14144. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "local", function() { return _local__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  14145. /* harmony import */ var _matcher__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./matcher */ "./node_modules/d3-selection/src/matcher.js");
  14146. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matcher", function() { return _matcher__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  14147. /* harmony import */ var _mouse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mouse */ "./node_modules/d3-selection/src/mouse.js");
  14148. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mouse", function() { return _mouse__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  14149. /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./namespace */ "./node_modules/d3-selection/src/namespace.js");
  14150. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespace", function() { return _namespace__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  14151. /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js");
  14152. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespaces", function() { return _namespaces__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  14153. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  14154. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clientPoint", function() { return _point__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  14155. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/select.js");
  14156. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _select__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  14157. /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-selection/src/selectAll.js");
  14158. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectAll", function() { return _selectAll__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  14159. /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js");
  14160. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selection", function() { return _selection_index__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  14161. /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./selector */ "./node_modules/d3-selection/src/selector.js");
  14162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selector", function() { return _selector__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  14163. /* harmony import */ var _selectorAll__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./selectorAll */ "./node_modules/d3-selection/src/selectorAll.js");
  14164. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectorAll", function() { return _selectorAll__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  14165. /* harmony import */ var _selection_style__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./selection/style */ "./node_modules/d3-selection/src/selection/style.js");
  14166. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "style", function() { return _selection_style__WEBPACK_IMPORTED_MODULE_13__["styleValue"]; });
  14167. /* harmony import */ var _touch__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./touch */ "./node_modules/d3-selection/src/touch.js");
  14168. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touch", function() { return _touch__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  14169. /* harmony import */ var _touches__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./touches */ "./node_modules/d3-selection/src/touches.js");
  14170. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touches", function() { return _touches__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  14171. /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./window */ "./node_modules/d3-selection/src/window.js");
  14172. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _window__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  14173. /* harmony import */ var _selection_on__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./selection/on */ "./node_modules/d3-selection/src/selection/on.js");
  14174. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "event", function() { return _selection_on__WEBPACK_IMPORTED_MODULE_17__["event"]; });
  14175. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return _selection_on__WEBPACK_IMPORTED_MODULE_17__["customEvent"]; });
  14176. /***/ }),
  14177. /***/ "./node_modules/d3-selection/src/local.js":
  14178. /*!************************************************!*\
  14179. !*** ./node_modules/d3-selection/src/local.js ***!
  14180. \************************************************/
  14181. /*! exports provided: default */
  14182. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14183. "use strict";
  14184. __webpack_require__.r(__webpack_exports__);
  14185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return local; });
  14186. var nextId = 0;
  14187. function local() {
  14188. return new Local;
  14189. }
  14190. function Local() {
  14191. this._ = "@" + (++nextId).toString(36);
  14192. }
  14193. Local.prototype = local.prototype = {
  14194. constructor: Local,
  14195. get: function(node) {
  14196. var id = this._;
  14197. while (!(id in node)) if (!(node = node.parentNode)) return;
  14198. return node[id];
  14199. },
  14200. set: function(node, value) {
  14201. return node[this._] = value;
  14202. },
  14203. remove: function(node) {
  14204. return this._ in node && delete node[this._];
  14205. },
  14206. toString: function() {
  14207. return this._;
  14208. }
  14209. };
  14210. /***/ }),
  14211. /***/ "./node_modules/d3-selection/src/matcher.js":
  14212. /*!**************************************************!*\
  14213. !*** ./node_modules/d3-selection/src/matcher.js ***!
  14214. \**************************************************/
  14215. /*! exports provided: default */
  14216. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14217. "use strict";
  14218. __webpack_require__.r(__webpack_exports__);
  14219. var matcher = function(selector) {
  14220. return function() {
  14221. return this.matches(selector);
  14222. };
  14223. };
  14224. if (typeof document !== "undefined") {
  14225. var element = document.documentElement;
  14226. if (!element.matches) {
  14227. var vendorMatches = element.webkitMatchesSelector
  14228. || element.msMatchesSelector
  14229. || element.mozMatchesSelector
  14230. || element.oMatchesSelector;
  14231. matcher = function(selector) {
  14232. return function() {
  14233. return vendorMatches.call(this, selector);
  14234. };
  14235. };
  14236. }
  14237. }
  14238. /* harmony default export */ __webpack_exports__["default"] = (matcher);
  14239. /***/ }),
  14240. /***/ "./node_modules/d3-selection/src/mouse.js":
  14241. /*!************************************************!*\
  14242. !*** ./node_modules/d3-selection/src/mouse.js ***!
  14243. \************************************************/
  14244. /*! exports provided: default */
  14245. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14246. "use strict";
  14247. __webpack_require__.r(__webpack_exports__);
  14248. /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js");
  14249. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  14250. /* harmony default export */ __webpack_exports__["default"] = (function(node) {
  14251. var event = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])();
  14252. if (event.changedTouches) event = event.changedTouches[0];
  14253. return Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, event);
  14254. });
  14255. /***/ }),
  14256. /***/ "./node_modules/d3-selection/src/namespace.js":
  14257. /*!****************************************************!*\
  14258. !*** ./node_modules/d3-selection/src/namespace.js ***!
  14259. \****************************************************/
  14260. /*! exports provided: default */
  14261. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14262. "use strict";
  14263. __webpack_require__.r(__webpack_exports__);
  14264. /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js");
  14265. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14266. var prefix = name += "", i = prefix.indexOf(":");
  14267. if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
  14268. return _namespaces__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProperty(prefix) ? {space: _namespaces__WEBPACK_IMPORTED_MODULE_0__["default"][prefix], local: name} : name;
  14269. });
  14270. /***/ }),
  14271. /***/ "./node_modules/d3-selection/src/namespaces.js":
  14272. /*!*****************************************************!*\
  14273. !*** ./node_modules/d3-selection/src/namespaces.js ***!
  14274. \*****************************************************/
  14275. /*! exports provided: xhtml, default */
  14276. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14277. "use strict";
  14278. __webpack_require__.r(__webpack_exports__);
  14279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xhtml", function() { return xhtml; });
  14280. var xhtml = "http://www.w3.org/1999/xhtml";
  14281. /* harmony default export */ __webpack_exports__["default"] = ({
  14282. svg: "http://www.w3.org/2000/svg",
  14283. xhtml: xhtml,
  14284. xlink: "http://www.w3.org/1999/xlink",
  14285. xml: "http://www.w3.org/XML/1998/namespace",
  14286. xmlns: "http://www.w3.org/2000/xmlns/"
  14287. });
  14288. /***/ }),
  14289. /***/ "./node_modules/d3-selection/src/point.js":
  14290. /*!************************************************!*\
  14291. !*** ./node_modules/d3-selection/src/point.js ***!
  14292. \************************************************/
  14293. /*! exports provided: default */
  14294. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14295. "use strict";
  14296. __webpack_require__.r(__webpack_exports__);
  14297. /* harmony default export */ __webpack_exports__["default"] = (function(node, event) {
  14298. var svg = node.ownerSVGElement || node;
  14299. if (svg.createSVGPoint) {
  14300. var point = svg.createSVGPoint();
  14301. point.x = event.clientX, point.y = event.clientY;
  14302. point = point.matrixTransform(node.getScreenCTM().inverse());
  14303. return [point.x, point.y];
  14304. }
  14305. var rect = node.getBoundingClientRect();
  14306. return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
  14307. });
  14308. /***/ }),
  14309. /***/ "./node_modules/d3-selection/src/select.js":
  14310. /*!*************************************************!*\
  14311. !*** ./node_modules/d3-selection/src/select.js ***!
  14312. \*************************************************/
  14313. /*! exports provided: default */
  14314. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14315. "use strict";
  14316. __webpack_require__.r(__webpack_exports__);
  14317. /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js");
  14318. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  14319. return typeof selector === "string"
  14320. ? new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([[document.querySelector(selector)]], [document.documentElement])
  14321. : new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([[selector]], _selection_index__WEBPACK_IMPORTED_MODULE_0__["root"]);
  14322. });
  14323. /***/ }),
  14324. /***/ "./node_modules/d3-selection/src/selectAll.js":
  14325. /*!****************************************************!*\
  14326. !*** ./node_modules/d3-selection/src/selectAll.js ***!
  14327. \****************************************************/
  14328. /*! exports provided: default */
  14329. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14330. "use strict";
  14331. __webpack_require__.r(__webpack_exports__);
  14332. /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js");
  14333. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  14334. return typeof selector === "string"
  14335. ? new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([document.querySelectorAll(selector)], [document.documentElement])
  14336. : new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([selector == null ? [] : selector], _selection_index__WEBPACK_IMPORTED_MODULE_0__["root"]);
  14337. });
  14338. /***/ }),
  14339. /***/ "./node_modules/d3-selection/src/selection/append.js":
  14340. /*!***********************************************************!*\
  14341. !*** ./node_modules/d3-selection/src/selection/append.js ***!
  14342. \***********************************************************/
  14343. /*! exports provided: default */
  14344. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14345. "use strict";
  14346. __webpack_require__.r(__webpack_exports__);
  14347. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../creator */ "./node_modules/d3-selection/src/creator.js");
  14348. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14349. var create = typeof name === "function" ? name : Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name);
  14350. return this.select(function() {
  14351. return this.appendChild(create.apply(this, arguments));
  14352. });
  14353. });
  14354. /***/ }),
  14355. /***/ "./node_modules/d3-selection/src/selection/attr.js":
  14356. /*!*********************************************************!*\
  14357. !*** ./node_modules/d3-selection/src/selection/attr.js ***!
  14358. \*********************************************************/
  14359. /*! exports provided: default */
  14360. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14361. "use strict";
  14362. __webpack_require__.r(__webpack_exports__);
  14363. /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../namespace */ "./node_modules/d3-selection/src/namespace.js");
  14364. function attrRemove(name) {
  14365. return function() {
  14366. this.removeAttribute(name);
  14367. };
  14368. }
  14369. function attrRemoveNS(fullname) {
  14370. return function() {
  14371. this.removeAttributeNS(fullname.space, fullname.local);
  14372. };
  14373. }
  14374. function attrConstant(name, value) {
  14375. return function() {
  14376. this.setAttribute(name, value);
  14377. };
  14378. }
  14379. function attrConstantNS(fullname, value) {
  14380. return function() {
  14381. this.setAttributeNS(fullname.space, fullname.local, value);
  14382. };
  14383. }
  14384. function attrFunction(name, value) {
  14385. return function() {
  14386. var v = value.apply(this, arguments);
  14387. if (v == null) this.removeAttribute(name);
  14388. else this.setAttribute(name, v);
  14389. };
  14390. }
  14391. function attrFunctionNS(fullname, value) {
  14392. return function() {
  14393. var v = value.apply(this, arguments);
  14394. if (v == null) this.removeAttributeNS(fullname.space, fullname.local);
  14395. else this.setAttributeNS(fullname.space, fullname.local, v);
  14396. };
  14397. }
  14398. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  14399. var fullname = Object(_namespace__WEBPACK_IMPORTED_MODULE_0__["default"])(name);
  14400. if (arguments.length < 2) {
  14401. var node = this.node();
  14402. return fullname.local
  14403. ? node.getAttributeNS(fullname.space, fullname.local)
  14404. : node.getAttribute(fullname);
  14405. }
  14406. return this.each((value == null
  14407. ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === "function"
  14408. ? (fullname.local ? attrFunctionNS : attrFunction)
  14409. : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));
  14410. });
  14411. /***/ }),
  14412. /***/ "./node_modules/d3-selection/src/selection/call.js":
  14413. /*!*********************************************************!*\
  14414. !*** ./node_modules/d3-selection/src/selection/call.js ***!
  14415. \*********************************************************/
  14416. /*! exports provided: default */
  14417. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14418. "use strict";
  14419. __webpack_require__.r(__webpack_exports__);
  14420. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14421. var callback = arguments[0];
  14422. arguments[0] = this;
  14423. callback.apply(null, arguments);
  14424. return this;
  14425. });
  14426. /***/ }),
  14427. /***/ "./node_modules/d3-selection/src/selection/classed.js":
  14428. /*!************************************************************!*\
  14429. !*** ./node_modules/d3-selection/src/selection/classed.js ***!
  14430. \************************************************************/
  14431. /*! exports provided: default */
  14432. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14433. "use strict";
  14434. __webpack_require__.r(__webpack_exports__);
  14435. function classArray(string) {
  14436. return string.trim().split(/^|\s+/);
  14437. }
  14438. function classList(node) {
  14439. return node.classList || new ClassList(node);
  14440. }
  14441. function ClassList(node) {
  14442. this._node = node;
  14443. this._names = classArray(node.getAttribute("class") || "");
  14444. }
  14445. ClassList.prototype = {
  14446. add: function(name) {
  14447. var i = this._names.indexOf(name);
  14448. if (i < 0) {
  14449. this._names.push(name);
  14450. this._node.setAttribute("class", this._names.join(" "));
  14451. }
  14452. },
  14453. remove: function(name) {
  14454. var i = this._names.indexOf(name);
  14455. if (i >= 0) {
  14456. this._names.splice(i, 1);
  14457. this._node.setAttribute("class", this._names.join(" "));
  14458. }
  14459. },
  14460. contains: function(name) {
  14461. return this._names.indexOf(name) >= 0;
  14462. }
  14463. };
  14464. function classedAdd(node, names) {
  14465. var list = classList(node), i = -1, n = names.length;
  14466. while (++i < n) list.add(names[i]);
  14467. }
  14468. function classedRemove(node, names) {
  14469. var list = classList(node), i = -1, n = names.length;
  14470. while (++i < n) list.remove(names[i]);
  14471. }
  14472. function classedTrue(names) {
  14473. return function() {
  14474. classedAdd(this, names);
  14475. };
  14476. }
  14477. function classedFalse(names) {
  14478. return function() {
  14479. classedRemove(this, names);
  14480. };
  14481. }
  14482. function classedFunction(names, value) {
  14483. return function() {
  14484. (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);
  14485. };
  14486. }
  14487. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  14488. var names = classArray(name + "");
  14489. if (arguments.length < 2) {
  14490. var list = classList(this.node()), i = -1, n = names.length;
  14491. while (++i < n) if (!list.contains(names[i])) return false;
  14492. return true;
  14493. }
  14494. return this.each((typeof value === "function"
  14495. ? classedFunction : value
  14496. ? classedTrue
  14497. : classedFalse)(names, value));
  14498. });
  14499. /***/ }),
  14500. /***/ "./node_modules/d3-selection/src/selection/clone.js":
  14501. /*!**********************************************************!*\
  14502. !*** ./node_modules/d3-selection/src/selection/clone.js ***!
  14503. \**********************************************************/
  14504. /*! exports provided: default */
  14505. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14506. "use strict";
  14507. __webpack_require__.r(__webpack_exports__);
  14508. function selection_cloneShallow() {
  14509. return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling);
  14510. }
  14511. function selection_cloneDeep() {
  14512. return this.parentNode.insertBefore(this.cloneNode(true), this.nextSibling);
  14513. }
  14514. /* harmony default export */ __webpack_exports__["default"] = (function(deep) {
  14515. return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
  14516. });
  14517. /***/ }),
  14518. /***/ "./node_modules/d3-selection/src/selection/data.js":
  14519. /*!*********************************************************!*\
  14520. !*** ./node_modules/d3-selection/src/selection/data.js ***!
  14521. \*********************************************************/
  14522. /*! exports provided: default */
  14523. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14524. "use strict";
  14525. __webpack_require__.r(__webpack_exports__);
  14526. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  14527. /* harmony import */ var _enter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./enter */ "./node_modules/d3-selection/src/selection/enter.js");
  14528. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-selection/src/constant.js");
  14529. var keyPrefix = "$"; // Protect against keys like “__proto__”.
  14530. function bindIndex(parent, group, enter, update, exit, data) {
  14531. var i = 0,
  14532. node,
  14533. groupLength = group.length,
  14534. dataLength = data.length;
  14535. // Put any non-null nodes that fit into update.
  14536. // Put any null nodes into enter.
  14537. // Put any remaining data into enter.
  14538. for (; i < dataLength; ++i) {
  14539. if (node = group[i]) {
  14540. node.__data__ = data[i];
  14541. update[i] = node;
  14542. } else {
  14543. enter[i] = new _enter__WEBPACK_IMPORTED_MODULE_1__["EnterNode"](parent, data[i]);
  14544. }
  14545. }
  14546. // Put any non-null nodes that don’t fit into exit.
  14547. for (; i < groupLength; ++i) {
  14548. if (node = group[i]) {
  14549. exit[i] = node;
  14550. }
  14551. }
  14552. }
  14553. function bindKey(parent, group, enter, update, exit, data, key) {
  14554. var i,
  14555. node,
  14556. nodeByKeyValue = {},
  14557. groupLength = group.length,
  14558. dataLength = data.length,
  14559. keyValues = new Array(groupLength),
  14560. keyValue;
  14561. // Compute the key for each node.
  14562. // If multiple nodes have the same key, the duplicates are added to exit.
  14563. for (i = 0; i < groupLength; ++i) {
  14564. if (node = group[i]) {
  14565. keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);
  14566. if (keyValue in nodeByKeyValue) {
  14567. exit[i] = node;
  14568. } else {
  14569. nodeByKeyValue[keyValue] = node;
  14570. }
  14571. }
  14572. }
  14573. // Compute the key for each datum.
  14574. // If there a node associated with this key, join and add it to update.
  14575. // If there is not (or the key is a duplicate), add it to enter.
  14576. for (i = 0; i < dataLength; ++i) {
  14577. keyValue = keyPrefix + key.call(parent, data[i], i, data);
  14578. if (node = nodeByKeyValue[keyValue]) {
  14579. update[i] = node;
  14580. node.__data__ = data[i];
  14581. nodeByKeyValue[keyValue] = null;
  14582. } else {
  14583. enter[i] = new _enter__WEBPACK_IMPORTED_MODULE_1__["EnterNode"](parent, data[i]);
  14584. }
  14585. }
  14586. // Add any remaining nodes that were not bound to data to exit.
  14587. for (i = 0; i < groupLength; ++i) {
  14588. if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {
  14589. exit[i] = node;
  14590. }
  14591. }
  14592. }
  14593. /* harmony default export */ __webpack_exports__["default"] = (function(value, key) {
  14594. if (!value) {
  14595. data = new Array(this.size()), j = -1;
  14596. this.each(function(d) { data[++j] = d; });
  14597. return data;
  14598. }
  14599. var bind = key ? bindKey : bindIndex,
  14600. parents = this._parents,
  14601. groups = this._groups;
  14602. if (typeof value !== "function") value = Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(value);
  14603. for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
  14604. var parent = parents[j],
  14605. group = groups[j],
  14606. groupLength = group.length,
  14607. data = value.call(parent, parent && parent.__data__, j, parents),
  14608. dataLength = data.length,
  14609. enterGroup = enter[j] = new Array(dataLength),
  14610. updateGroup = update[j] = new Array(dataLength),
  14611. exitGroup = exit[j] = new Array(groupLength);
  14612. bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
  14613. // Now connect the enter nodes to their following update node, such that
  14614. // appendChild can insert the materialized enter node before this node,
  14615. // rather than at the end of the parent node.
  14616. for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
  14617. if (previous = enterGroup[i0]) {
  14618. if (i0 >= i1) i1 = i0 + 1;
  14619. while (!(next = updateGroup[i1]) && ++i1 < dataLength);
  14620. previous._next = next || null;
  14621. }
  14622. }
  14623. }
  14624. update = new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](update, parents);
  14625. update._enter = enter;
  14626. update._exit = exit;
  14627. return update;
  14628. });
  14629. /***/ }),
  14630. /***/ "./node_modules/d3-selection/src/selection/datum.js":
  14631. /*!**********************************************************!*\
  14632. !*** ./node_modules/d3-selection/src/selection/datum.js ***!
  14633. \**********************************************************/
  14634. /*! exports provided: default */
  14635. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14636. "use strict";
  14637. __webpack_require__.r(__webpack_exports__);
  14638. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  14639. return arguments.length
  14640. ? this.property("__data__", value)
  14641. : this.node().__data__;
  14642. });
  14643. /***/ }),
  14644. /***/ "./node_modules/d3-selection/src/selection/dispatch.js":
  14645. /*!*************************************************************!*\
  14646. !*** ./node_modules/d3-selection/src/selection/dispatch.js ***!
  14647. \*************************************************************/
  14648. /*! exports provided: default */
  14649. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14650. "use strict";
  14651. __webpack_require__.r(__webpack_exports__);
  14652. /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../window */ "./node_modules/d3-selection/src/window.js");
  14653. function dispatchEvent(node, type, params) {
  14654. var window = Object(_window__WEBPACK_IMPORTED_MODULE_0__["default"])(node),
  14655. event = window.CustomEvent;
  14656. if (typeof event === "function") {
  14657. event = new event(type, params);
  14658. } else {
  14659. event = window.document.createEvent("Event");
  14660. if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
  14661. else event.initEvent(type, false, false);
  14662. }
  14663. node.dispatchEvent(event);
  14664. }
  14665. function dispatchConstant(type, params) {
  14666. return function() {
  14667. return dispatchEvent(this, type, params);
  14668. };
  14669. }
  14670. function dispatchFunction(type, params) {
  14671. return function() {
  14672. return dispatchEvent(this, type, params.apply(this, arguments));
  14673. };
  14674. }
  14675. /* harmony default export */ __webpack_exports__["default"] = (function(type, params) {
  14676. return this.each((typeof params === "function"
  14677. ? dispatchFunction
  14678. : dispatchConstant)(type, params));
  14679. });
  14680. /***/ }),
  14681. /***/ "./node_modules/d3-selection/src/selection/each.js":
  14682. /*!*********************************************************!*\
  14683. !*** ./node_modules/d3-selection/src/selection/each.js ***!
  14684. \*********************************************************/
  14685. /*! exports provided: default */
  14686. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14687. "use strict";
  14688. __webpack_require__.r(__webpack_exports__);
  14689. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  14690. for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
  14691. for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
  14692. if (node = group[i]) callback.call(node, node.__data__, i, group);
  14693. }
  14694. }
  14695. return this;
  14696. });
  14697. /***/ }),
  14698. /***/ "./node_modules/d3-selection/src/selection/empty.js":
  14699. /*!**********************************************************!*\
  14700. !*** ./node_modules/d3-selection/src/selection/empty.js ***!
  14701. \**********************************************************/
  14702. /*! exports provided: default */
  14703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14704. "use strict";
  14705. __webpack_require__.r(__webpack_exports__);
  14706. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14707. return !this.node();
  14708. });
  14709. /***/ }),
  14710. /***/ "./node_modules/d3-selection/src/selection/enter.js":
  14711. /*!**********************************************************!*\
  14712. !*** ./node_modules/d3-selection/src/selection/enter.js ***!
  14713. \**********************************************************/
  14714. /*! exports provided: default, EnterNode */
  14715. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14716. "use strict";
  14717. __webpack_require__.r(__webpack_exports__);
  14718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnterNode", function() { return EnterNode; });
  14719. /* harmony import */ var _sparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sparse */ "./node_modules/d3-selection/src/selection/sparse.js");
  14720. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  14721. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14722. return new _index__WEBPACK_IMPORTED_MODULE_1__["Selection"](this._enter || this._groups.map(_sparse__WEBPACK_IMPORTED_MODULE_0__["default"]), this._parents);
  14723. });
  14724. function EnterNode(parent, datum) {
  14725. this.ownerDocument = parent.ownerDocument;
  14726. this.namespaceURI = parent.namespaceURI;
  14727. this._next = null;
  14728. this._parent = parent;
  14729. this.__data__ = datum;
  14730. }
  14731. EnterNode.prototype = {
  14732. constructor: EnterNode,
  14733. appendChild: function(child) { return this._parent.insertBefore(child, this._next); },
  14734. insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },
  14735. querySelector: function(selector) { return this._parent.querySelector(selector); },
  14736. querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }
  14737. };
  14738. /***/ }),
  14739. /***/ "./node_modules/d3-selection/src/selection/exit.js":
  14740. /*!*********************************************************!*\
  14741. !*** ./node_modules/d3-selection/src/selection/exit.js ***!
  14742. \*********************************************************/
  14743. /*! exports provided: default */
  14744. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14745. "use strict";
  14746. __webpack_require__.r(__webpack_exports__);
  14747. /* harmony import */ var _sparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sparse */ "./node_modules/d3-selection/src/selection/sparse.js");
  14748. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  14749. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14750. return new _index__WEBPACK_IMPORTED_MODULE_1__["Selection"](this._exit || this._groups.map(_sparse__WEBPACK_IMPORTED_MODULE_0__["default"]), this._parents);
  14751. });
  14752. /***/ }),
  14753. /***/ "./node_modules/d3-selection/src/selection/filter.js":
  14754. /*!***********************************************************!*\
  14755. !*** ./node_modules/d3-selection/src/selection/filter.js ***!
  14756. \***********************************************************/
  14757. /*! exports provided: default */
  14758. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14759. "use strict";
  14760. __webpack_require__.r(__webpack_exports__);
  14761. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  14762. /* harmony import */ var _matcher__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../matcher */ "./node_modules/d3-selection/src/matcher.js");
  14763. /* harmony default export */ __webpack_exports__["default"] = (function(match) {
  14764. if (typeof match !== "function") match = Object(_matcher__WEBPACK_IMPORTED_MODULE_1__["default"])(match);
  14765. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  14766. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
  14767. if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
  14768. subgroup.push(node);
  14769. }
  14770. }
  14771. }
  14772. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, this._parents);
  14773. });
  14774. /***/ }),
  14775. /***/ "./node_modules/d3-selection/src/selection/html.js":
  14776. /*!*********************************************************!*\
  14777. !*** ./node_modules/d3-selection/src/selection/html.js ***!
  14778. \*********************************************************/
  14779. /*! exports provided: default */
  14780. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14781. "use strict";
  14782. __webpack_require__.r(__webpack_exports__);
  14783. function htmlRemove() {
  14784. this.innerHTML = "";
  14785. }
  14786. function htmlConstant(value) {
  14787. return function() {
  14788. this.innerHTML = value;
  14789. };
  14790. }
  14791. function htmlFunction(value) {
  14792. return function() {
  14793. var v = value.apply(this, arguments);
  14794. this.innerHTML = v == null ? "" : v;
  14795. };
  14796. }
  14797. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  14798. return arguments.length
  14799. ? this.each(value == null
  14800. ? htmlRemove : (typeof value === "function"
  14801. ? htmlFunction
  14802. : htmlConstant)(value))
  14803. : this.node().innerHTML;
  14804. });
  14805. /***/ }),
  14806. /***/ "./node_modules/d3-selection/src/selection/index.js":
  14807. /*!**********************************************************!*\
  14808. !*** ./node_modules/d3-selection/src/selection/index.js ***!
  14809. \**********************************************************/
  14810. /*! exports provided: root, Selection, default */
  14811. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14812. "use strict";
  14813. __webpack_require__.r(__webpack_exports__);
  14814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "root", function() { return root; });
  14815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return Selection; });
  14816. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/selection/select.js");
  14817. /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-selection/src/selection/selectAll.js");
  14818. /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./filter */ "./node_modules/d3-selection/src/selection/filter.js");
  14819. /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./data */ "./node_modules/d3-selection/src/selection/data.js");
  14820. /* harmony import */ var _enter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./enter */ "./node_modules/d3-selection/src/selection/enter.js");
  14821. /* harmony import */ var _exit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exit */ "./node_modules/d3-selection/src/selection/exit.js");
  14822. /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-selection/src/selection/merge.js");
  14823. /* harmony import */ var _order__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./order */ "./node_modules/d3-selection/src/selection/order.js");
  14824. /* harmony import */ var _sort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sort */ "./node_modules/d3-selection/src/selection/sort.js");
  14825. /* harmony import */ var _call__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./call */ "./node_modules/d3-selection/src/selection/call.js");
  14826. /* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./nodes */ "./node_modules/d3-selection/src/selection/nodes.js");
  14827. /* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node */ "./node_modules/d3-selection/src/selection/node.js");
  14828. /* harmony import */ var _size__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./size */ "./node_modules/d3-selection/src/selection/size.js");
  14829. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./empty */ "./node_modules/d3-selection/src/selection/empty.js");
  14830. /* harmony import */ var _each__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./each */ "./node_modules/d3-selection/src/selection/each.js");
  14831. /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./attr */ "./node_modules/d3-selection/src/selection/attr.js");
  14832. /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./style */ "./node_modules/d3-selection/src/selection/style.js");
  14833. /* harmony import */ var _property__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./property */ "./node_modules/d3-selection/src/selection/property.js");
  14834. /* harmony import */ var _classed__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./classed */ "./node_modules/d3-selection/src/selection/classed.js");
  14835. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./text */ "./node_modules/d3-selection/src/selection/text.js");
  14836. /* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./html */ "./node_modules/d3-selection/src/selection/html.js");
  14837. /* harmony import */ var _raise__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./raise */ "./node_modules/d3-selection/src/selection/raise.js");
  14838. /* harmony import */ var _lower__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./lower */ "./node_modules/d3-selection/src/selection/lower.js");
  14839. /* harmony import */ var _append__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./append */ "./node_modules/d3-selection/src/selection/append.js");
  14840. /* harmony import */ var _insert__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./insert */ "./node_modules/d3-selection/src/selection/insert.js");
  14841. /* harmony import */ var _remove__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./remove */ "./node_modules/d3-selection/src/selection/remove.js");
  14842. /* harmony import */ var _clone__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./clone */ "./node_modules/d3-selection/src/selection/clone.js");
  14843. /* harmony import */ var _datum__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./datum */ "./node_modules/d3-selection/src/selection/datum.js");
  14844. /* harmony import */ var _on__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./on */ "./node_modules/d3-selection/src/selection/on.js");
  14845. /* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./dispatch */ "./node_modules/d3-selection/src/selection/dispatch.js");
  14846. var root = [null];
  14847. function Selection(groups, parents) {
  14848. this._groups = groups;
  14849. this._parents = parents;
  14850. }
  14851. function selection() {
  14852. return new Selection([[document.documentElement]], root);
  14853. }
  14854. Selection.prototype = selection.prototype = {
  14855. constructor: Selection,
  14856. select: _select__WEBPACK_IMPORTED_MODULE_0__["default"],
  14857. selectAll: _selectAll__WEBPACK_IMPORTED_MODULE_1__["default"],
  14858. filter: _filter__WEBPACK_IMPORTED_MODULE_2__["default"],
  14859. data: _data__WEBPACK_IMPORTED_MODULE_3__["default"],
  14860. enter: _enter__WEBPACK_IMPORTED_MODULE_4__["default"],
  14861. exit: _exit__WEBPACK_IMPORTED_MODULE_5__["default"],
  14862. merge: _merge__WEBPACK_IMPORTED_MODULE_6__["default"],
  14863. order: _order__WEBPACK_IMPORTED_MODULE_7__["default"],
  14864. sort: _sort__WEBPACK_IMPORTED_MODULE_8__["default"],
  14865. call: _call__WEBPACK_IMPORTED_MODULE_9__["default"],
  14866. nodes: _nodes__WEBPACK_IMPORTED_MODULE_10__["default"],
  14867. node: _node__WEBPACK_IMPORTED_MODULE_11__["default"],
  14868. size: _size__WEBPACK_IMPORTED_MODULE_12__["default"],
  14869. empty: _empty__WEBPACK_IMPORTED_MODULE_13__["default"],
  14870. each: _each__WEBPACK_IMPORTED_MODULE_14__["default"],
  14871. attr: _attr__WEBPACK_IMPORTED_MODULE_15__["default"],
  14872. style: _style__WEBPACK_IMPORTED_MODULE_16__["default"],
  14873. property: _property__WEBPACK_IMPORTED_MODULE_17__["default"],
  14874. classed: _classed__WEBPACK_IMPORTED_MODULE_18__["default"],
  14875. text: _text__WEBPACK_IMPORTED_MODULE_19__["default"],
  14876. html: _html__WEBPACK_IMPORTED_MODULE_20__["default"],
  14877. raise: _raise__WEBPACK_IMPORTED_MODULE_21__["default"],
  14878. lower: _lower__WEBPACK_IMPORTED_MODULE_22__["default"],
  14879. append: _append__WEBPACK_IMPORTED_MODULE_23__["default"],
  14880. insert: _insert__WEBPACK_IMPORTED_MODULE_24__["default"],
  14881. remove: _remove__WEBPACK_IMPORTED_MODULE_25__["default"],
  14882. clone: _clone__WEBPACK_IMPORTED_MODULE_26__["default"],
  14883. datum: _datum__WEBPACK_IMPORTED_MODULE_27__["default"],
  14884. on: _on__WEBPACK_IMPORTED_MODULE_28__["default"],
  14885. dispatch: _dispatch__WEBPACK_IMPORTED_MODULE_29__["default"]
  14886. };
  14887. /* harmony default export */ __webpack_exports__["default"] = (selection);
  14888. /***/ }),
  14889. /***/ "./node_modules/d3-selection/src/selection/insert.js":
  14890. /*!***********************************************************!*\
  14891. !*** ./node_modules/d3-selection/src/selection/insert.js ***!
  14892. \***********************************************************/
  14893. /*! exports provided: default */
  14894. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14895. "use strict";
  14896. __webpack_require__.r(__webpack_exports__);
  14897. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../creator */ "./node_modules/d3-selection/src/creator.js");
  14898. /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selector */ "./node_modules/d3-selection/src/selector.js");
  14899. function constantNull() {
  14900. return null;
  14901. }
  14902. /* harmony default export */ __webpack_exports__["default"] = (function(name, before) {
  14903. var create = typeof name === "function" ? name : Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name),
  14904. select = before == null ? constantNull : typeof before === "function" ? before : Object(_selector__WEBPACK_IMPORTED_MODULE_1__["default"])(before);
  14905. return this.select(function() {
  14906. return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
  14907. });
  14908. });
  14909. /***/ }),
  14910. /***/ "./node_modules/d3-selection/src/selection/lower.js":
  14911. /*!**********************************************************!*\
  14912. !*** ./node_modules/d3-selection/src/selection/lower.js ***!
  14913. \**********************************************************/
  14914. /*! exports provided: default */
  14915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14916. "use strict";
  14917. __webpack_require__.r(__webpack_exports__);
  14918. function lower() {
  14919. if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);
  14920. }
  14921. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14922. return this.each(lower);
  14923. });
  14924. /***/ }),
  14925. /***/ "./node_modules/d3-selection/src/selection/merge.js":
  14926. /*!**********************************************************!*\
  14927. !*** ./node_modules/d3-selection/src/selection/merge.js ***!
  14928. \**********************************************************/
  14929. /*! exports provided: default */
  14930. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14931. "use strict";
  14932. __webpack_require__.r(__webpack_exports__);
  14933. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  14934. /* harmony default export */ __webpack_exports__["default"] = (function(selection) {
  14935. for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
  14936. for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
  14937. if (node = group0[i] || group1[i]) {
  14938. merge[i] = node;
  14939. }
  14940. }
  14941. }
  14942. for (; j < m0; ++j) {
  14943. merges[j] = groups0[j];
  14944. }
  14945. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](merges, this._parents);
  14946. });
  14947. /***/ }),
  14948. /***/ "./node_modules/d3-selection/src/selection/node.js":
  14949. /*!*********************************************************!*\
  14950. !*** ./node_modules/d3-selection/src/selection/node.js ***!
  14951. \*********************************************************/
  14952. /*! exports provided: default */
  14953. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14954. "use strict";
  14955. __webpack_require__.r(__webpack_exports__);
  14956. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14957. for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
  14958. for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
  14959. var node = group[i];
  14960. if (node) return node;
  14961. }
  14962. }
  14963. return null;
  14964. });
  14965. /***/ }),
  14966. /***/ "./node_modules/d3-selection/src/selection/nodes.js":
  14967. /*!**********************************************************!*\
  14968. !*** ./node_modules/d3-selection/src/selection/nodes.js ***!
  14969. \**********************************************************/
  14970. /*! exports provided: default */
  14971. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14972. "use strict";
  14973. __webpack_require__.r(__webpack_exports__);
  14974. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14975. var nodes = new Array(this.size()), i = -1;
  14976. this.each(function() { nodes[++i] = this; });
  14977. return nodes;
  14978. });
  14979. /***/ }),
  14980. /***/ "./node_modules/d3-selection/src/selection/on.js":
  14981. /*!*******************************************************!*\
  14982. !*** ./node_modules/d3-selection/src/selection/on.js ***!
  14983. \*******************************************************/
  14984. /*! exports provided: event, default, customEvent */
  14985. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14986. "use strict";
  14987. __webpack_require__.r(__webpack_exports__);
  14988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "event", function() { return event; });
  14989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return customEvent; });
  14990. var filterEvents = {};
  14991. var event = null;
  14992. if (typeof document !== "undefined") {
  14993. var element = document.documentElement;
  14994. if (!("onmouseenter" in element)) {
  14995. filterEvents = {mouseenter: "mouseover", mouseleave: "mouseout"};
  14996. }
  14997. }
  14998. function filterContextListener(listener, index, group) {
  14999. listener = contextListener(listener, index, group);
  15000. return function(event) {
  15001. var related = event.relatedTarget;
  15002. if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {
  15003. listener.call(this, event);
  15004. }
  15005. };
  15006. }
  15007. function contextListener(listener, index, group) {
  15008. return function(event1) {
  15009. var event0 = event; // Events can be reentrant (e.g., focus).
  15010. event = event1;
  15011. try {
  15012. listener.call(this, this.__data__, index, group);
  15013. } finally {
  15014. event = event0;
  15015. }
  15016. };
  15017. }
  15018. function parseTypenames(typenames) {
  15019. return typenames.trim().split(/^|\s+/).map(function(t) {
  15020. var name = "", i = t.indexOf(".");
  15021. if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
  15022. return {type: t, name: name};
  15023. });
  15024. }
  15025. function onRemove(typename) {
  15026. return function() {
  15027. var on = this.__on;
  15028. if (!on) return;
  15029. for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {
  15030. if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
  15031. this.removeEventListener(o.type, o.listener, o.capture);
  15032. } else {
  15033. on[++i] = o;
  15034. }
  15035. }
  15036. if (++i) on.length = i;
  15037. else delete this.__on;
  15038. };
  15039. }
  15040. function onAdd(typename, value, capture) {
  15041. var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;
  15042. return function(d, i, group) {
  15043. var on = this.__on, o, listener = wrap(value, i, group);
  15044. if (on) for (var j = 0, m = on.length; j < m; ++j) {
  15045. if ((o = on[j]).type === typename.type && o.name === typename.name) {
  15046. this.removeEventListener(o.type, o.listener, o.capture);
  15047. this.addEventListener(o.type, o.listener = listener, o.capture = capture);
  15048. o.value = value;
  15049. return;
  15050. }
  15051. }
  15052. this.addEventListener(typename.type, listener, capture);
  15053. o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};
  15054. if (!on) this.__on = [o];
  15055. else on.push(o);
  15056. };
  15057. }
  15058. /* harmony default export */ __webpack_exports__["default"] = (function(typename, value, capture) {
  15059. var typenames = parseTypenames(typename + ""), i, n = typenames.length, t;
  15060. if (arguments.length < 2) {
  15061. var on = this.node().__on;
  15062. if (on) for (var j = 0, m = on.length, o; j < m; ++j) {
  15063. for (i = 0, o = on[j]; i < n; ++i) {
  15064. if ((t = typenames[i]).type === o.type && t.name === o.name) {
  15065. return o.value;
  15066. }
  15067. }
  15068. }
  15069. return;
  15070. }
  15071. on = value ? onAdd : onRemove;
  15072. if (capture == null) capture = false;
  15073. for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));
  15074. return this;
  15075. });
  15076. function customEvent(event1, listener, that, args) {
  15077. var event0 = event;
  15078. event1.sourceEvent = event;
  15079. event = event1;
  15080. try {
  15081. return listener.apply(that, args);
  15082. } finally {
  15083. event = event0;
  15084. }
  15085. }
  15086. /***/ }),
  15087. /***/ "./node_modules/d3-selection/src/selection/order.js":
  15088. /*!**********************************************************!*\
  15089. !*** ./node_modules/d3-selection/src/selection/order.js ***!
  15090. \**********************************************************/
  15091. /*! exports provided: default */
  15092. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15093. "use strict";
  15094. __webpack_require__.r(__webpack_exports__);
  15095. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15096. for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {
  15097. for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {
  15098. if (node = group[i]) {
  15099. if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);
  15100. next = node;
  15101. }
  15102. }
  15103. }
  15104. return this;
  15105. });
  15106. /***/ }),
  15107. /***/ "./node_modules/d3-selection/src/selection/property.js":
  15108. /*!*************************************************************!*\
  15109. !*** ./node_modules/d3-selection/src/selection/property.js ***!
  15110. \*************************************************************/
  15111. /*! exports provided: default */
  15112. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15113. "use strict";
  15114. __webpack_require__.r(__webpack_exports__);
  15115. function propertyRemove(name) {
  15116. return function() {
  15117. delete this[name];
  15118. };
  15119. }
  15120. function propertyConstant(name, value) {
  15121. return function() {
  15122. this[name] = value;
  15123. };
  15124. }
  15125. function propertyFunction(name, value) {
  15126. return function() {
  15127. var v = value.apply(this, arguments);
  15128. if (v == null) delete this[name];
  15129. else this[name] = v;
  15130. };
  15131. }
  15132. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  15133. return arguments.length > 1
  15134. ? this.each((value == null
  15135. ? propertyRemove : typeof value === "function"
  15136. ? propertyFunction
  15137. : propertyConstant)(name, value))
  15138. : this.node()[name];
  15139. });
  15140. /***/ }),
  15141. /***/ "./node_modules/d3-selection/src/selection/raise.js":
  15142. /*!**********************************************************!*\
  15143. !*** ./node_modules/d3-selection/src/selection/raise.js ***!
  15144. \**********************************************************/
  15145. /*! exports provided: default */
  15146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15147. "use strict";
  15148. __webpack_require__.r(__webpack_exports__);
  15149. function raise() {
  15150. if (this.nextSibling) this.parentNode.appendChild(this);
  15151. }
  15152. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15153. return this.each(raise);
  15154. });
  15155. /***/ }),
  15156. /***/ "./node_modules/d3-selection/src/selection/remove.js":
  15157. /*!***********************************************************!*\
  15158. !*** ./node_modules/d3-selection/src/selection/remove.js ***!
  15159. \***********************************************************/
  15160. /*! exports provided: default */
  15161. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15162. "use strict";
  15163. __webpack_require__.r(__webpack_exports__);
  15164. function remove() {
  15165. var parent = this.parentNode;
  15166. if (parent) parent.removeChild(this);
  15167. }
  15168. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15169. return this.each(remove);
  15170. });
  15171. /***/ }),
  15172. /***/ "./node_modules/d3-selection/src/selection/select.js":
  15173. /*!***********************************************************!*\
  15174. !*** ./node_modules/d3-selection/src/selection/select.js ***!
  15175. \***********************************************************/
  15176. /*! exports provided: default */
  15177. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15178. "use strict";
  15179. __webpack_require__.r(__webpack_exports__);
  15180. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15181. /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selector */ "./node_modules/d3-selection/src/selector.js");
  15182. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  15183. if (typeof select !== "function") select = Object(_selector__WEBPACK_IMPORTED_MODULE_1__["default"])(select);
  15184. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  15185. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
  15186. if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
  15187. if ("__data__" in node) subnode.__data__ = node.__data__;
  15188. subgroup[i] = subnode;
  15189. }
  15190. }
  15191. }
  15192. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, this._parents);
  15193. });
  15194. /***/ }),
  15195. /***/ "./node_modules/d3-selection/src/selection/selectAll.js":
  15196. /*!**************************************************************!*\
  15197. !*** ./node_modules/d3-selection/src/selection/selectAll.js ***!
  15198. \**************************************************************/
  15199. /*! exports provided: default */
  15200. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15201. "use strict";
  15202. __webpack_require__.r(__webpack_exports__);
  15203. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15204. /* harmony import */ var _selectorAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selectorAll */ "./node_modules/d3-selection/src/selectorAll.js");
  15205. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  15206. if (typeof select !== "function") select = Object(_selectorAll__WEBPACK_IMPORTED_MODULE_1__["default"])(select);
  15207. for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
  15208. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  15209. if (node = group[i]) {
  15210. subgroups.push(select.call(node, node.__data__, i, group));
  15211. parents.push(node);
  15212. }
  15213. }
  15214. }
  15215. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, parents);
  15216. });
  15217. /***/ }),
  15218. /***/ "./node_modules/d3-selection/src/selection/size.js":
  15219. /*!*********************************************************!*\
  15220. !*** ./node_modules/d3-selection/src/selection/size.js ***!
  15221. \*********************************************************/
  15222. /*! exports provided: default */
  15223. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15224. "use strict";
  15225. __webpack_require__.r(__webpack_exports__);
  15226. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15227. var size = 0;
  15228. this.each(function() { ++size; });
  15229. return size;
  15230. });
  15231. /***/ }),
  15232. /***/ "./node_modules/d3-selection/src/selection/sort.js":
  15233. /*!*********************************************************!*\
  15234. !*** ./node_modules/d3-selection/src/selection/sort.js ***!
  15235. \*********************************************************/
  15236. /*! exports provided: default */
  15237. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15238. "use strict";
  15239. __webpack_require__.r(__webpack_exports__);
  15240. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15241. /* harmony default export */ __webpack_exports__["default"] = (function(compare) {
  15242. if (!compare) compare = ascending;
  15243. function compareNode(a, b) {
  15244. return a && b ? compare(a.__data__, b.__data__) : !a - !b;
  15245. }
  15246. for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {
  15247. for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {
  15248. if (node = group[i]) {
  15249. sortgroup[i] = node;
  15250. }
  15251. }
  15252. sortgroup.sort(compareNode);
  15253. }
  15254. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](sortgroups, this._parents).order();
  15255. });
  15256. function ascending(a, b) {
  15257. return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
  15258. }
  15259. /***/ }),
  15260. /***/ "./node_modules/d3-selection/src/selection/sparse.js":
  15261. /*!***********************************************************!*\
  15262. !*** ./node_modules/d3-selection/src/selection/sparse.js ***!
  15263. \***********************************************************/
  15264. /*! exports provided: default */
  15265. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15266. "use strict";
  15267. __webpack_require__.r(__webpack_exports__);
  15268. /* harmony default export */ __webpack_exports__["default"] = (function(update) {
  15269. return new Array(update.length);
  15270. });
  15271. /***/ }),
  15272. /***/ "./node_modules/d3-selection/src/selection/style.js":
  15273. /*!**********************************************************!*\
  15274. !*** ./node_modules/d3-selection/src/selection/style.js ***!
  15275. \**********************************************************/
  15276. /*! exports provided: default, styleValue */
  15277. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15278. "use strict";
  15279. __webpack_require__.r(__webpack_exports__);
  15280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styleValue", function() { return styleValue; });
  15281. /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../window */ "./node_modules/d3-selection/src/window.js");
  15282. function styleRemove(name) {
  15283. return function() {
  15284. this.style.removeProperty(name);
  15285. };
  15286. }
  15287. function styleConstant(name, value, priority) {
  15288. return function() {
  15289. this.style.setProperty(name, value, priority);
  15290. };
  15291. }
  15292. function styleFunction(name, value, priority) {
  15293. return function() {
  15294. var v = value.apply(this, arguments);
  15295. if (v == null) this.style.removeProperty(name);
  15296. else this.style.setProperty(name, v, priority);
  15297. };
  15298. }
  15299. /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) {
  15300. return arguments.length > 1
  15301. ? this.each((value == null
  15302. ? styleRemove : typeof value === "function"
  15303. ? styleFunction
  15304. : styleConstant)(name, value, priority == null ? "" : priority))
  15305. : styleValue(this.node(), name);
  15306. });
  15307. function styleValue(node, name) {
  15308. return node.style.getPropertyValue(name)
  15309. || Object(_window__WEBPACK_IMPORTED_MODULE_0__["default"])(node).getComputedStyle(node, null).getPropertyValue(name);
  15310. }
  15311. /***/ }),
  15312. /***/ "./node_modules/d3-selection/src/selection/text.js":
  15313. /*!*********************************************************!*\
  15314. !*** ./node_modules/d3-selection/src/selection/text.js ***!
  15315. \*********************************************************/
  15316. /*! exports provided: default */
  15317. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15318. "use strict";
  15319. __webpack_require__.r(__webpack_exports__);
  15320. function textRemove() {
  15321. this.textContent = "";
  15322. }
  15323. function textConstant(value) {
  15324. return function() {
  15325. this.textContent = value;
  15326. };
  15327. }
  15328. function textFunction(value) {
  15329. return function() {
  15330. var v = value.apply(this, arguments);
  15331. this.textContent = v == null ? "" : v;
  15332. };
  15333. }
  15334. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  15335. return arguments.length
  15336. ? this.each(value == null
  15337. ? textRemove : (typeof value === "function"
  15338. ? textFunction
  15339. : textConstant)(value))
  15340. : this.node().textContent;
  15341. });
  15342. /***/ }),
  15343. /***/ "./node_modules/d3-selection/src/selector.js":
  15344. /*!***************************************************!*\
  15345. !*** ./node_modules/d3-selection/src/selector.js ***!
  15346. \***************************************************/
  15347. /*! exports provided: default */
  15348. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15349. "use strict";
  15350. __webpack_require__.r(__webpack_exports__);
  15351. function none() {}
  15352. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  15353. return selector == null ? none : function() {
  15354. return this.querySelector(selector);
  15355. };
  15356. });
  15357. /***/ }),
  15358. /***/ "./node_modules/d3-selection/src/selectorAll.js":
  15359. /*!******************************************************!*\
  15360. !*** ./node_modules/d3-selection/src/selectorAll.js ***!
  15361. \******************************************************/
  15362. /*! exports provided: default */
  15363. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15364. "use strict";
  15365. __webpack_require__.r(__webpack_exports__);
  15366. function empty() {
  15367. return [];
  15368. }
  15369. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  15370. return selector == null ? empty : function() {
  15371. return this.querySelectorAll(selector);
  15372. };
  15373. });
  15374. /***/ }),
  15375. /***/ "./node_modules/d3-selection/src/sourceEvent.js":
  15376. /*!******************************************************!*\
  15377. !*** ./node_modules/d3-selection/src/sourceEvent.js ***!
  15378. \******************************************************/
  15379. /*! exports provided: default */
  15380. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15381. "use strict";
  15382. __webpack_require__.r(__webpack_exports__);
  15383. /* harmony import */ var _selection_on__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/on */ "./node_modules/d3-selection/src/selection/on.js");
  15384. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15385. var current = _selection_on__WEBPACK_IMPORTED_MODULE_0__["event"], source;
  15386. while (source = current.sourceEvent) current = source;
  15387. return current;
  15388. });
  15389. /***/ }),
  15390. /***/ "./node_modules/d3-selection/src/touch.js":
  15391. /*!************************************************!*\
  15392. !*** ./node_modules/d3-selection/src/touch.js ***!
  15393. \************************************************/
  15394. /*! exports provided: default */
  15395. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15396. "use strict";
  15397. __webpack_require__.r(__webpack_exports__);
  15398. /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js");
  15399. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  15400. /* harmony default export */ __webpack_exports__["default"] = (function(node, touches, identifier) {
  15401. if (arguments.length < 3) identifier = touches, touches = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])().changedTouches;
  15402. for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {
  15403. if ((touch = touches[i]).identifier === identifier) {
  15404. return Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, touch);
  15405. }
  15406. }
  15407. return null;
  15408. });
  15409. /***/ }),
  15410. /***/ "./node_modules/d3-selection/src/touches.js":
  15411. /*!**************************************************!*\
  15412. !*** ./node_modules/d3-selection/src/touches.js ***!
  15413. \**************************************************/
  15414. /*! exports provided: default */
  15415. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15416. "use strict";
  15417. __webpack_require__.r(__webpack_exports__);
  15418. /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js");
  15419. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  15420. /* harmony default export */ __webpack_exports__["default"] = (function(node, touches) {
  15421. if (touches == null) touches = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])().touches;
  15422. for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {
  15423. points[i] = Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, touches[i]);
  15424. }
  15425. return points;
  15426. });
  15427. /***/ }),
  15428. /***/ "./node_modules/d3-selection/src/window.js":
  15429. /*!*************************************************!*\
  15430. !*** ./node_modules/d3-selection/src/window.js ***!
  15431. \*************************************************/
  15432. /*! exports provided: default */
  15433. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15434. "use strict";
  15435. __webpack_require__.r(__webpack_exports__);
  15436. /* harmony default export */ __webpack_exports__["default"] = (function(node) {
  15437. return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node
  15438. || (node.document && node) // node is a Window
  15439. || node.defaultView; // node is a Document
  15440. });
  15441. /***/ }),
  15442. /***/ "./node_modules/d3-shape/src/arc.js":
  15443. /*!******************************************!*\
  15444. !*** ./node_modules/d3-shape/src/arc.js ***!
  15445. \******************************************/
  15446. /*! exports provided: default */
  15447. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15448. "use strict";
  15449. __webpack_require__.r(__webpack_exports__);
  15450. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  15451. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js");
  15452. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-shape/src/math.js");
  15453. function arcInnerRadius(d) {
  15454. return d.innerRadius;
  15455. }
  15456. function arcOuterRadius(d) {
  15457. return d.outerRadius;
  15458. }
  15459. function arcStartAngle(d) {
  15460. return d.startAngle;
  15461. }
  15462. function arcEndAngle(d) {
  15463. return d.endAngle;
  15464. }
  15465. function arcPadAngle(d) {
  15466. return d && d.padAngle; // Note: optional!
  15467. }
  15468. function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
  15469. var x10 = x1 - x0, y10 = y1 - y0,
  15470. x32 = x3 - x2, y32 = y3 - y2,
  15471. t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / (y32 * x10 - x32 * y10);
  15472. return [x0 + t * x10, y0 + t * y10];
  15473. }
  15474. // Compute perpendicular offset line of length rc.
  15475. // http://mathworld.wolfram.com/Circle-LineIntersection.html
  15476. function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
  15477. var x01 = x0 - x1,
  15478. y01 = y0 - y1,
  15479. lo = (cw ? rc : -rc) / Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(x01 * x01 + y01 * y01),
  15480. ox = lo * y01,
  15481. oy = -lo * x01,
  15482. x11 = x0 + ox,
  15483. y11 = y0 + oy,
  15484. x10 = x1 + ox,
  15485. y10 = y1 + oy,
  15486. x00 = (x11 + x10) / 2,
  15487. y00 = (y11 + y10) / 2,
  15488. dx = x10 - x11,
  15489. dy = y10 - y11,
  15490. d2 = dx * dx + dy * dy,
  15491. r = r1 - rc,
  15492. D = x11 * y10 - x10 * y11,
  15493. d = (dy < 0 ? -1 : 1) * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(Object(_math__WEBPACK_IMPORTED_MODULE_2__["max"])(0, r * r * d2 - D * D)),
  15494. cx0 = (D * dy - dx * d) / d2,
  15495. cy0 = (-D * dx - dy * d) / d2,
  15496. cx1 = (D * dy + dx * d) / d2,
  15497. cy1 = (-D * dx + dy * d) / d2,
  15498. dx0 = cx0 - x00,
  15499. dy0 = cy0 - y00,
  15500. dx1 = cx1 - x00,
  15501. dy1 = cy1 - y00;
  15502. // Pick the closer of the two intersection points.
  15503. // TODO Is there a faster way to determine which intersection to use?
  15504. if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
  15505. return {
  15506. cx: cx0,
  15507. cy: cy0,
  15508. x01: -ox,
  15509. y01: -oy,
  15510. x11: cx0 * (r1 / r - 1),
  15511. y11: cy0 * (r1 / r - 1)
  15512. };
  15513. }
  15514. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15515. var innerRadius = arcInnerRadius,
  15516. outerRadius = arcOuterRadius,
  15517. cornerRadius = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(0),
  15518. padRadius = null,
  15519. startAngle = arcStartAngle,
  15520. endAngle = arcEndAngle,
  15521. padAngle = arcPadAngle,
  15522. context = null;
  15523. function arc() {
  15524. var buffer,
  15525. r,
  15526. r0 = +innerRadius.apply(this, arguments),
  15527. r1 = +outerRadius.apply(this, arguments),
  15528. a0 = startAngle.apply(this, arguments) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  15529. a1 = endAngle.apply(this, arguments) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  15530. da = Object(_math__WEBPACK_IMPORTED_MODULE_2__["abs"])(a1 - a0),
  15531. cw = a1 > a0;
  15532. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])();
  15533. // Ensure that the outer radius is always larger than the inner radius.
  15534. if (r1 < r0) r = r1, r1 = r0, r0 = r;
  15535. // Is it a point?
  15536. if (!(r1 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(0, 0);
  15537. // Or is it a circle or annulus?
  15538. else if (da > _math__WEBPACK_IMPORTED_MODULE_2__["tau"] - _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15539. context.moveTo(r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a0), r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a0));
  15540. context.arc(0, 0, r1, a0, a1, !cw);
  15541. if (r0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15542. context.moveTo(r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a1), r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a1));
  15543. context.arc(0, 0, r0, a1, a0, cw);
  15544. }
  15545. }
  15546. // Or is it a circular or annular sector?
  15547. else {
  15548. var a01 = a0,
  15549. a11 = a1,
  15550. a00 = a0,
  15551. a10 = a1,
  15552. da0 = da,
  15553. da1 = da,
  15554. ap = padAngle.apply(this, arguments) / 2,
  15555. rp = (ap > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) && (padRadius ? +padRadius.apply(this, arguments) : Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(r0 * r0 + r1 * r1)),
  15556. rc = Object(_math__WEBPACK_IMPORTED_MODULE_2__["min"])(Object(_math__WEBPACK_IMPORTED_MODULE_2__["abs"])(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
  15557. rc0 = rc,
  15558. rc1 = rc,
  15559. t0,
  15560. t1;
  15561. // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
  15562. if (rp > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15563. var p0 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap)),
  15564. p1 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap));
  15565. if ((da0 -= p0 * 2) > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
  15566. else da0 = 0, a00 = a10 = (a0 + a1) / 2;
  15567. if ((da1 -= p1 * 2) > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
  15568. else da1 = 0, a01 = a11 = (a0 + a1) / 2;
  15569. }
  15570. var x01 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a01),
  15571. y01 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a01),
  15572. x10 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a10),
  15573. y10 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a10);
  15574. // Apply rounded corners?
  15575. if (rc > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15576. var x11 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a11),
  15577. y11 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a11),
  15578. x00 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a00),
  15579. y00 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a00);
  15580. // Restrict the corner radius according to the sector angle.
  15581. if (da < _math__WEBPACK_IMPORTED_MODULE_2__["pi"]) {
  15582. var oc = da0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"] ? intersect(x01, y01, x00, y00, x11, y11, x10, y10) : [x10, y10],
  15583. ax = x01 - oc[0],
  15584. ay = y01 - oc[1],
  15585. bx = x11 - oc[0],
  15586. by = y11 - oc[1],
  15587. kc = 1 / Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(Object(_math__WEBPACK_IMPORTED_MODULE_2__["acos"])((ax * bx + ay * by) / (Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(ax * ax + ay * ay) * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(bx * bx + by * by))) / 2),
  15588. lc = Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(oc[0] * oc[0] + oc[1] * oc[1]);
  15589. rc0 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r0 - lc) / (kc - 1));
  15590. rc1 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r1 - lc) / (kc + 1));
  15591. }
  15592. }
  15593. // Is the sector collapsed to a line?
  15594. if (!(da1 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(x01, y01);
  15595. // Does the sector’s outer ring have rounded corners?
  15596. else if (rc1 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15597. t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
  15598. t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
  15599. context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
  15600. // Have the corners merged?
  15601. if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  15602. // Otherwise, draw the two corners and the ring.
  15603. else {
  15604. context.arc(t0.cx, t0.cy, rc1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw);
  15605. context.arc(0, 0, r1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
  15606. context.arc(t1.cx, t1.cy, rc1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  15607. }
  15608. }
  15609. // Or is the outer ring just a circular arc?
  15610. else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
  15611. // Is there no inner ring, and it’s a circular sector?
  15612. // Or perhaps it’s an annular sector collapsed due to padding?
  15613. if (!(r0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) || !(da0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.lineTo(x10, y10);
  15614. // Does the sector’s inner ring (or point) have rounded corners?
  15615. else if (rc0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15616. t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
  15617. t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
  15618. context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
  15619. // Have the corners merged?
  15620. if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  15621. // Otherwise, draw the two corners and the ring.
  15622. else {
  15623. context.arc(t0.cx, t0.cy, rc0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw);
  15624. context.arc(0, 0, r0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), cw);
  15625. context.arc(t1.cx, t1.cy, rc0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  15626. }
  15627. }
  15628. // Or is the inner ring just a circular arc?
  15629. else context.arc(0, 0, r0, a10, a00, cw);
  15630. }
  15631. context.closePath();
  15632. if (buffer) return context = null, buffer + "" || null;
  15633. }
  15634. arc.centroid = function() {
  15635. var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
  15636. a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - _math__WEBPACK_IMPORTED_MODULE_2__["pi"] / 2;
  15637. return [Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a) * r, Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a) * r];
  15638. };
  15639. arc.innerRadius = function(_) {
  15640. return arguments.length ? (innerRadius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : innerRadius;
  15641. };
  15642. arc.outerRadius = function(_) {
  15643. return arguments.length ? (outerRadius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : outerRadius;
  15644. };
  15645. arc.cornerRadius = function(_) {
  15646. return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : cornerRadius;
  15647. };
  15648. arc.padRadius = function(_) {
  15649. return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padRadius;
  15650. };
  15651. arc.startAngle = function(_) {
  15652. return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : startAngle;
  15653. };
  15654. arc.endAngle = function(_) {
  15655. return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : endAngle;
  15656. };
  15657. arc.padAngle = function(_) {
  15658. return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padAngle;
  15659. };
  15660. arc.context = function(_) {
  15661. return arguments.length ? ((context = _ == null ? null : _), arc) : context;
  15662. };
  15663. return arc;
  15664. });
  15665. /***/ }),
  15666. /***/ "./node_modules/d3-shape/src/area.js":
  15667. /*!*******************************************!*\
  15668. !*** ./node_modules/d3-shape/src/area.js ***!
  15669. \*******************************************/
  15670. /*! exports provided: default */
  15671. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15672. "use strict";
  15673. __webpack_require__.r(__webpack_exports__);
  15674. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  15675. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js");
  15676. /* harmony import */ var _curve_linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear */ "./node_modules/d3-shape/src/curve/linear.js");
  15677. /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "./node_modules/d3-shape/src/line.js");
  15678. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./point */ "./node_modules/d3-shape/src/point.js");
  15679. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15680. var x0 = _point__WEBPACK_IMPORTED_MODULE_4__["x"],
  15681. x1 = null,
  15682. y0 = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(0),
  15683. y1 = _point__WEBPACK_IMPORTED_MODULE_4__["y"],
  15684. defined = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(true),
  15685. context = null,
  15686. curve = _curve_linear__WEBPACK_IMPORTED_MODULE_2__["default"],
  15687. output = null;
  15688. function area(data) {
  15689. var i,
  15690. j,
  15691. k,
  15692. n = data.length,
  15693. d,
  15694. defined0 = false,
  15695. buffer,
  15696. x0z = new Array(n),
  15697. y0z = new Array(n);
  15698. if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])());
  15699. for (i = 0; i <= n; ++i) {
  15700. if (!(i < n && defined(d = data[i], i, data)) === defined0) {
  15701. if (defined0 = !defined0) {
  15702. j = i;
  15703. output.areaStart();
  15704. output.lineStart();
  15705. } else {
  15706. output.lineEnd();
  15707. output.lineStart();
  15708. for (k = i - 1; k >= j; --k) {
  15709. output.point(x0z[k], y0z[k]);
  15710. }
  15711. output.lineEnd();
  15712. output.areaEnd();
  15713. }
  15714. }
  15715. if (defined0) {
  15716. x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
  15717. output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
  15718. }
  15719. }
  15720. if (buffer) return output = null, buffer + "" || null;
  15721. }
  15722. function arealine() {
  15723. return Object(_line__WEBPACK_IMPORTED_MODULE_3__["default"])().defined(defined).curve(curve).context(context);
  15724. }
  15725. area.x = function(_) {
  15726. return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), x1 = null, area) : x0;
  15727. };
  15728. area.x0 = function(_) {
  15729. return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x0;
  15730. };
  15731. area.x1 = function(_) {
  15732. return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x1;
  15733. };
  15734. area.y = function(_) {
  15735. return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), y1 = null, area) : y0;
  15736. };
  15737. area.y0 = function(_) {
  15738. return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y0;
  15739. };
  15740. area.y1 = function(_) {
  15741. return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y1;
  15742. };
  15743. area.lineX0 =
  15744. area.lineY0 = function() {
  15745. return arealine().x(x0).y(y0);
  15746. };
  15747. area.lineY1 = function() {
  15748. return arealine().x(x0).y(y1);
  15749. };
  15750. area.lineX1 = function() {
  15751. return arealine().x(x1).y(y0);
  15752. };
  15753. area.defined = function(_) {
  15754. return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), area) : defined;
  15755. };
  15756. area.curve = function(_) {
  15757. return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
  15758. };
  15759. area.context = function(_) {
  15760. return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
  15761. };
  15762. return area;
  15763. });
  15764. /***/ }),
  15765. /***/ "./node_modules/d3-shape/src/areaRadial.js":
  15766. /*!*************************************************!*\
  15767. !*** ./node_modules/d3-shape/src/areaRadial.js ***!
  15768. \*************************************************/
  15769. /*! exports provided: default */
  15770. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15771. "use strict";
  15772. __webpack_require__.r(__webpack_exports__);
  15773. /* harmony import */ var _curve_radial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial */ "./node_modules/d3-shape/src/curve/radial.js");
  15774. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "./node_modules/d3-shape/src/area.js");
  15775. /* harmony import */ var _lineRadial__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lineRadial */ "./node_modules/d3-shape/src/lineRadial.js");
  15776. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15777. var a = Object(_area__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"]),
  15778. c = a.curve,
  15779. x0 = a.lineX0,
  15780. x1 = a.lineX1,
  15781. y0 = a.lineY0,
  15782. y1 = a.lineY1;
  15783. a.angle = a.x, delete a.x;
  15784. a.startAngle = a.x0, delete a.x0;
  15785. a.endAngle = a.x1, delete a.x1;
  15786. a.radius = a.y, delete a.y;
  15787. a.innerRadius = a.y0, delete a.y0;
  15788. a.outerRadius = a.y1, delete a.y1;
  15789. a.lineStartAngle = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x0()); }, delete a.lineX0;
  15790. a.lineEndAngle = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x1()); }, delete a.lineX1;
  15791. a.lineInnerRadius = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y0()); }, delete a.lineY0;
  15792. a.lineOuterRadius = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y1()); }, delete a.lineY1;
  15793. a.curve = function(_) {
  15794. return arguments.length ? c(Object(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve;
  15795. };
  15796. return a;
  15797. });
  15798. /***/ }),
  15799. /***/ "./node_modules/d3-shape/src/array.js":
  15800. /*!********************************************!*\
  15801. !*** ./node_modules/d3-shape/src/array.js ***!
  15802. \********************************************/
  15803. /*! exports provided: slice */
  15804. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15805. "use strict";
  15806. __webpack_require__.r(__webpack_exports__);
  15807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  15808. var slice = Array.prototype.slice;
  15809. /***/ }),
  15810. /***/ "./node_modules/d3-shape/src/constant.js":
  15811. /*!***********************************************!*\
  15812. !*** ./node_modules/d3-shape/src/constant.js ***!
  15813. \***********************************************/
  15814. /*! exports provided: default */
  15815. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15816. "use strict";
  15817. __webpack_require__.r(__webpack_exports__);
  15818. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  15819. return function constant() {
  15820. return x;
  15821. };
  15822. });
  15823. /***/ }),
  15824. /***/ "./node_modules/d3-shape/src/curve/basis.js":
  15825. /*!**************************************************!*\
  15826. !*** ./node_modules/d3-shape/src/curve/basis.js ***!
  15827. \**************************************************/
  15828. /*! exports provided: point, Basis, default */
  15829. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15830. "use strict";
  15831. __webpack_require__.r(__webpack_exports__);
  15832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  15833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Basis", function() { return Basis; });
  15834. function point(that, x, y) {
  15835. that._context.bezierCurveTo(
  15836. (2 * that._x0 + that._x1) / 3,
  15837. (2 * that._y0 + that._y1) / 3,
  15838. (that._x0 + 2 * that._x1) / 3,
  15839. (that._y0 + 2 * that._y1) / 3,
  15840. (that._x0 + 4 * that._x1 + x) / 6,
  15841. (that._y0 + 4 * that._y1 + y) / 6
  15842. );
  15843. }
  15844. function Basis(context) {
  15845. this._context = context;
  15846. }
  15847. Basis.prototype = {
  15848. areaStart: function() {
  15849. this._line = 0;
  15850. },
  15851. areaEnd: function() {
  15852. this._line = NaN;
  15853. },
  15854. lineStart: function() {
  15855. this._x0 = this._x1 =
  15856. this._y0 = this._y1 = NaN;
  15857. this._point = 0;
  15858. },
  15859. lineEnd: function() {
  15860. switch (this._point) {
  15861. case 3: point(this, this._x1, this._y1); // proceed
  15862. case 2: this._context.lineTo(this._x1, this._y1); break;
  15863. }
  15864. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  15865. this._line = 1 - this._line;
  15866. },
  15867. point: function(x, y) {
  15868. x = +x, y = +y;
  15869. switch (this._point) {
  15870. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  15871. case 1: this._point = 2; break;
  15872. case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed
  15873. default: point(this, x, y); break;
  15874. }
  15875. this._x0 = this._x1, this._x1 = x;
  15876. this._y0 = this._y1, this._y1 = y;
  15877. }
  15878. };
  15879. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  15880. return new Basis(context);
  15881. });
  15882. /***/ }),
  15883. /***/ "./node_modules/d3-shape/src/curve/basisClosed.js":
  15884. /*!********************************************************!*\
  15885. !*** ./node_modules/d3-shape/src/curve/basisClosed.js ***!
  15886. \********************************************************/
  15887. /*! exports provided: default */
  15888. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15889. "use strict";
  15890. __webpack_require__.r(__webpack_exports__);
  15891. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js");
  15892. /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-shape/src/curve/basis.js");
  15893. function BasisClosed(context) {
  15894. this._context = context;
  15895. }
  15896. BasisClosed.prototype = {
  15897. areaStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  15898. areaEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  15899. lineStart: function() {
  15900. this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =
  15901. this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
  15902. this._point = 0;
  15903. },
  15904. lineEnd: function() {
  15905. switch (this._point) {
  15906. case 1: {
  15907. this._context.moveTo(this._x2, this._y2);
  15908. this._context.closePath();
  15909. break;
  15910. }
  15911. case 2: {
  15912. this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
  15913. this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
  15914. this._context.closePath();
  15915. break;
  15916. }
  15917. case 3: {
  15918. this.point(this._x2, this._y2);
  15919. this.point(this._x3, this._y3);
  15920. this.point(this._x4, this._y4);
  15921. break;
  15922. }
  15923. }
  15924. },
  15925. point: function(x, y) {
  15926. x = +x, y = +y;
  15927. switch (this._point) {
  15928. case 0: this._point = 1; this._x2 = x, this._y2 = y; break;
  15929. case 1: this._point = 2; this._x3 = x, this._y3 = y; break;
  15930. case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;
  15931. default: Object(_basis__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break;
  15932. }
  15933. this._x0 = this._x1, this._x1 = x;
  15934. this._y0 = this._y1, this._y1 = y;
  15935. }
  15936. };
  15937. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  15938. return new BasisClosed(context);
  15939. });
  15940. /***/ }),
  15941. /***/ "./node_modules/d3-shape/src/curve/basisOpen.js":
  15942. /*!******************************************************!*\
  15943. !*** ./node_modules/d3-shape/src/curve/basisOpen.js ***!
  15944. \******************************************************/
  15945. /*! exports provided: default */
  15946. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15947. "use strict";
  15948. __webpack_require__.r(__webpack_exports__);
  15949. /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-shape/src/curve/basis.js");
  15950. function BasisOpen(context) {
  15951. this._context = context;
  15952. }
  15953. BasisOpen.prototype = {
  15954. areaStart: function() {
  15955. this._line = 0;
  15956. },
  15957. areaEnd: function() {
  15958. this._line = NaN;
  15959. },
  15960. lineStart: function() {
  15961. this._x0 = this._x1 =
  15962. this._y0 = this._y1 = NaN;
  15963. this._point = 0;
  15964. },
  15965. lineEnd: function() {
  15966. if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
  15967. this._line = 1 - this._line;
  15968. },
  15969. point: function(x, y) {
  15970. x = +x, y = +y;
  15971. switch (this._point) {
  15972. case 0: this._point = 1; break;
  15973. case 1: this._point = 2; break;
  15974. case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;
  15975. case 3: this._point = 4; // proceed
  15976. default: Object(_basis__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break;
  15977. }
  15978. this._x0 = this._x1, this._x1 = x;
  15979. this._y0 = this._y1, this._y1 = y;
  15980. }
  15981. };
  15982. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  15983. return new BasisOpen(context);
  15984. });
  15985. /***/ }),
  15986. /***/ "./node_modules/d3-shape/src/curve/bundle.js":
  15987. /*!***************************************************!*\
  15988. !*** ./node_modules/d3-shape/src/curve/bundle.js ***!
  15989. \***************************************************/
  15990. /*! exports provided: default */
  15991. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15992. "use strict";
  15993. __webpack_require__.r(__webpack_exports__);
  15994. /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-shape/src/curve/basis.js");
  15995. function Bundle(context, beta) {
  15996. this._basis = new _basis__WEBPACK_IMPORTED_MODULE_0__["Basis"](context);
  15997. this._beta = beta;
  15998. }
  15999. Bundle.prototype = {
  16000. lineStart: function() {
  16001. this._x = [];
  16002. this._y = [];
  16003. this._basis.lineStart();
  16004. },
  16005. lineEnd: function() {
  16006. var x = this._x,
  16007. y = this._y,
  16008. j = x.length - 1;
  16009. if (j > 0) {
  16010. var x0 = x[0],
  16011. y0 = y[0],
  16012. dx = x[j] - x0,
  16013. dy = y[j] - y0,
  16014. i = -1,
  16015. t;
  16016. while (++i <= j) {
  16017. t = i / j;
  16018. this._basis.point(
  16019. this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),
  16020. this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)
  16021. );
  16022. }
  16023. }
  16024. this._x = this._y = null;
  16025. this._basis.lineEnd();
  16026. },
  16027. point: function(x, y) {
  16028. this._x.push(+x);
  16029. this._y.push(+y);
  16030. }
  16031. };
  16032. /* harmony default export */ __webpack_exports__["default"] = ((function custom(beta) {
  16033. function bundle(context) {
  16034. return beta === 1 ? new _basis__WEBPACK_IMPORTED_MODULE_0__["Basis"](context) : new Bundle(context, beta);
  16035. }
  16036. bundle.beta = function(beta) {
  16037. return custom(+beta);
  16038. };
  16039. return bundle;
  16040. })(0.85));
  16041. /***/ }),
  16042. /***/ "./node_modules/d3-shape/src/curve/cardinal.js":
  16043. /*!*****************************************************!*\
  16044. !*** ./node_modules/d3-shape/src/curve/cardinal.js ***!
  16045. \*****************************************************/
  16046. /*! exports provided: point, Cardinal, default */
  16047. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16048. "use strict";
  16049. __webpack_require__.r(__webpack_exports__);
  16050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  16051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cardinal", function() { return Cardinal; });
  16052. function point(that, x, y) {
  16053. that._context.bezierCurveTo(
  16054. that._x1 + that._k * (that._x2 - that._x0),
  16055. that._y1 + that._k * (that._y2 - that._y0),
  16056. that._x2 + that._k * (that._x1 - x),
  16057. that._y2 + that._k * (that._y1 - y),
  16058. that._x2,
  16059. that._y2
  16060. );
  16061. }
  16062. function Cardinal(context, tension) {
  16063. this._context = context;
  16064. this._k = (1 - tension) / 6;
  16065. }
  16066. Cardinal.prototype = {
  16067. areaStart: function() {
  16068. this._line = 0;
  16069. },
  16070. areaEnd: function() {
  16071. this._line = NaN;
  16072. },
  16073. lineStart: function() {
  16074. this._x0 = this._x1 = this._x2 =
  16075. this._y0 = this._y1 = this._y2 = NaN;
  16076. this._point = 0;
  16077. },
  16078. lineEnd: function() {
  16079. switch (this._point) {
  16080. case 2: this._context.lineTo(this._x2, this._y2); break;
  16081. case 3: point(this, this._x1, this._y1); break;
  16082. }
  16083. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16084. this._line = 1 - this._line;
  16085. },
  16086. point: function(x, y) {
  16087. x = +x, y = +y;
  16088. switch (this._point) {
  16089. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16090. case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
  16091. case 2: this._point = 3; // proceed
  16092. default: point(this, x, y); break;
  16093. }
  16094. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16095. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16096. }
  16097. };
  16098. /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) {
  16099. function cardinal(context) {
  16100. return new Cardinal(context, tension);
  16101. }
  16102. cardinal.tension = function(tension) {
  16103. return custom(+tension);
  16104. };
  16105. return cardinal;
  16106. })(0));
  16107. /***/ }),
  16108. /***/ "./node_modules/d3-shape/src/curve/cardinalClosed.js":
  16109. /*!***********************************************************!*\
  16110. !*** ./node_modules/d3-shape/src/curve/cardinalClosed.js ***!
  16111. \***********************************************************/
  16112. /*! exports provided: CardinalClosed, default */
  16113. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16114. "use strict";
  16115. __webpack_require__.r(__webpack_exports__);
  16116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalClosed", function() { return CardinalClosed; });
  16117. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js");
  16118. /* harmony import */ var _cardinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js");
  16119. function CardinalClosed(context, tension) {
  16120. this._context = context;
  16121. this._k = (1 - tension) / 6;
  16122. }
  16123. CardinalClosed.prototype = {
  16124. areaStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  16125. areaEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  16126. lineStart: function() {
  16127. this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
  16128. this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
  16129. this._point = 0;
  16130. },
  16131. lineEnd: function() {
  16132. switch (this._point) {
  16133. case 1: {
  16134. this._context.moveTo(this._x3, this._y3);
  16135. this._context.closePath();
  16136. break;
  16137. }
  16138. case 2: {
  16139. this._context.lineTo(this._x3, this._y3);
  16140. this._context.closePath();
  16141. break;
  16142. }
  16143. case 3: {
  16144. this.point(this._x3, this._y3);
  16145. this.point(this._x4, this._y4);
  16146. this.point(this._x5, this._y5);
  16147. break;
  16148. }
  16149. }
  16150. },
  16151. point: function(x, y) {
  16152. x = +x, y = +y;
  16153. switch (this._point) {
  16154. case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
  16155. case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
  16156. case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
  16157. default: Object(_cardinal__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break;
  16158. }
  16159. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16160. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16161. }
  16162. };
  16163. /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) {
  16164. function cardinal(context) {
  16165. return new CardinalClosed(context, tension);
  16166. }
  16167. cardinal.tension = function(tension) {
  16168. return custom(+tension);
  16169. };
  16170. return cardinal;
  16171. })(0));
  16172. /***/ }),
  16173. /***/ "./node_modules/d3-shape/src/curve/cardinalOpen.js":
  16174. /*!*********************************************************!*\
  16175. !*** ./node_modules/d3-shape/src/curve/cardinalOpen.js ***!
  16176. \*********************************************************/
  16177. /*! exports provided: CardinalOpen, default */
  16178. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16179. "use strict";
  16180. __webpack_require__.r(__webpack_exports__);
  16181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalOpen", function() { return CardinalOpen; });
  16182. /* harmony import */ var _cardinal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js");
  16183. function CardinalOpen(context, tension) {
  16184. this._context = context;
  16185. this._k = (1 - tension) / 6;
  16186. }
  16187. CardinalOpen.prototype = {
  16188. areaStart: function() {
  16189. this._line = 0;
  16190. },
  16191. areaEnd: function() {
  16192. this._line = NaN;
  16193. },
  16194. lineStart: function() {
  16195. this._x0 = this._x1 = this._x2 =
  16196. this._y0 = this._y1 = this._y2 = NaN;
  16197. this._point = 0;
  16198. },
  16199. lineEnd: function() {
  16200. if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
  16201. this._line = 1 - this._line;
  16202. },
  16203. point: function(x, y) {
  16204. x = +x, y = +y;
  16205. switch (this._point) {
  16206. case 0: this._point = 1; break;
  16207. case 1: this._point = 2; break;
  16208. case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
  16209. case 3: this._point = 4; // proceed
  16210. default: Object(_cardinal__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break;
  16211. }
  16212. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16213. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16214. }
  16215. };
  16216. /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) {
  16217. function cardinal(context) {
  16218. return new CardinalOpen(context, tension);
  16219. }
  16220. cardinal.tension = function(tension) {
  16221. return custom(+tension);
  16222. };
  16223. return cardinal;
  16224. })(0));
  16225. /***/ }),
  16226. /***/ "./node_modules/d3-shape/src/curve/catmullRom.js":
  16227. /*!*******************************************************!*\
  16228. !*** ./node_modules/d3-shape/src/curve/catmullRom.js ***!
  16229. \*******************************************************/
  16230. /*! exports provided: point, default */
  16231. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16232. "use strict";
  16233. __webpack_require__.r(__webpack_exports__);
  16234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  16235. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-shape/src/math.js");
  16236. /* harmony import */ var _cardinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js");
  16237. function point(that, x, y) {
  16238. var x1 = that._x1,
  16239. y1 = that._y1,
  16240. x2 = that._x2,
  16241. y2 = that._y2;
  16242. if (that._l01_a > _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) {
  16243. var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
  16244. n = 3 * that._l01_a * (that._l01_a + that._l12_a);
  16245. x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
  16246. y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
  16247. }
  16248. if (that._l23_a > _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) {
  16249. var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
  16250. m = 3 * that._l23_a * (that._l23_a + that._l12_a);
  16251. x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
  16252. y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;
  16253. }
  16254. that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
  16255. }
  16256. function CatmullRom(context, alpha) {
  16257. this._context = context;
  16258. this._alpha = alpha;
  16259. }
  16260. CatmullRom.prototype = {
  16261. areaStart: function() {
  16262. this._line = 0;
  16263. },
  16264. areaEnd: function() {
  16265. this._line = NaN;
  16266. },
  16267. lineStart: function() {
  16268. this._x0 = this._x1 = this._x2 =
  16269. this._y0 = this._y1 = this._y2 = NaN;
  16270. this._l01_a = this._l12_a = this._l23_a =
  16271. this._l01_2a = this._l12_2a = this._l23_2a =
  16272. this._point = 0;
  16273. },
  16274. lineEnd: function() {
  16275. switch (this._point) {
  16276. case 2: this._context.lineTo(this._x2, this._y2); break;
  16277. case 3: this.point(this._x2, this._y2); break;
  16278. }
  16279. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16280. this._line = 1 - this._line;
  16281. },
  16282. point: function(x, y) {
  16283. x = +x, y = +y;
  16284. if (this._point) {
  16285. var x23 = this._x2 - x,
  16286. y23 = this._y2 - y;
  16287. this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
  16288. }
  16289. switch (this._point) {
  16290. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16291. case 1: this._point = 2; break;
  16292. case 2: this._point = 3; // proceed
  16293. default: point(this, x, y); break;
  16294. }
  16295. this._l01_a = this._l12_a, this._l12_a = this._l23_a;
  16296. this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
  16297. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16298. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16299. }
  16300. };
  16301. /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) {
  16302. function catmullRom(context) {
  16303. return alpha ? new CatmullRom(context, alpha) : new _cardinal__WEBPACK_IMPORTED_MODULE_1__["Cardinal"](context, 0);
  16304. }
  16305. catmullRom.alpha = function(alpha) {
  16306. return custom(+alpha);
  16307. };
  16308. return catmullRom;
  16309. })(0.5));
  16310. /***/ }),
  16311. /***/ "./node_modules/d3-shape/src/curve/catmullRomClosed.js":
  16312. /*!*************************************************************!*\
  16313. !*** ./node_modules/d3-shape/src/curve/catmullRomClosed.js ***!
  16314. \*************************************************************/
  16315. /*! exports provided: default */
  16316. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16317. "use strict";
  16318. __webpack_require__.r(__webpack_exports__);
  16319. /* harmony import */ var _cardinalClosed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalClosed */ "./node_modules/d3-shape/src/curve/cardinalClosed.js");
  16320. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js");
  16321. /* harmony import */ var _catmullRom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./catmullRom */ "./node_modules/d3-shape/src/curve/catmullRom.js");
  16322. function CatmullRomClosed(context, alpha) {
  16323. this._context = context;
  16324. this._alpha = alpha;
  16325. }
  16326. CatmullRomClosed.prototype = {
  16327. areaStart: _noop__WEBPACK_IMPORTED_MODULE_1__["default"],
  16328. areaEnd: _noop__WEBPACK_IMPORTED_MODULE_1__["default"],
  16329. lineStart: function() {
  16330. this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
  16331. this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
  16332. this._l01_a = this._l12_a = this._l23_a =
  16333. this._l01_2a = this._l12_2a = this._l23_2a =
  16334. this._point = 0;
  16335. },
  16336. lineEnd: function() {
  16337. switch (this._point) {
  16338. case 1: {
  16339. this._context.moveTo(this._x3, this._y3);
  16340. this._context.closePath();
  16341. break;
  16342. }
  16343. case 2: {
  16344. this._context.lineTo(this._x3, this._y3);
  16345. this._context.closePath();
  16346. break;
  16347. }
  16348. case 3: {
  16349. this.point(this._x3, this._y3);
  16350. this.point(this._x4, this._y4);
  16351. this.point(this._x5, this._y5);
  16352. break;
  16353. }
  16354. }
  16355. },
  16356. point: function(x, y) {
  16357. x = +x, y = +y;
  16358. if (this._point) {
  16359. var x23 = this._x2 - x,
  16360. y23 = this._y2 - y;
  16361. this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
  16362. }
  16363. switch (this._point) {
  16364. case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
  16365. case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
  16366. case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
  16367. default: Object(_catmullRom__WEBPACK_IMPORTED_MODULE_2__["point"])(this, x, y); break;
  16368. }
  16369. this._l01_a = this._l12_a, this._l12_a = this._l23_a;
  16370. this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
  16371. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16372. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16373. }
  16374. };
  16375. /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) {
  16376. function catmullRom(context) {
  16377. return alpha ? new CatmullRomClosed(context, alpha) : new _cardinalClosed__WEBPACK_IMPORTED_MODULE_0__["CardinalClosed"](context, 0);
  16378. }
  16379. catmullRom.alpha = function(alpha) {
  16380. return custom(+alpha);
  16381. };
  16382. return catmullRom;
  16383. })(0.5));
  16384. /***/ }),
  16385. /***/ "./node_modules/d3-shape/src/curve/catmullRomOpen.js":
  16386. /*!***********************************************************!*\
  16387. !*** ./node_modules/d3-shape/src/curve/catmullRomOpen.js ***!
  16388. \***********************************************************/
  16389. /*! exports provided: default */
  16390. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16391. "use strict";
  16392. __webpack_require__.r(__webpack_exports__);
  16393. /* harmony import */ var _cardinalOpen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalOpen */ "./node_modules/d3-shape/src/curve/cardinalOpen.js");
  16394. /* harmony import */ var _catmullRom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./catmullRom */ "./node_modules/d3-shape/src/curve/catmullRom.js");
  16395. function CatmullRomOpen(context, alpha) {
  16396. this._context = context;
  16397. this._alpha = alpha;
  16398. }
  16399. CatmullRomOpen.prototype = {
  16400. areaStart: function() {
  16401. this._line = 0;
  16402. },
  16403. areaEnd: function() {
  16404. this._line = NaN;
  16405. },
  16406. lineStart: function() {
  16407. this._x0 = this._x1 = this._x2 =
  16408. this._y0 = this._y1 = this._y2 = NaN;
  16409. this._l01_a = this._l12_a = this._l23_a =
  16410. this._l01_2a = this._l12_2a = this._l23_2a =
  16411. this._point = 0;
  16412. },
  16413. lineEnd: function() {
  16414. if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
  16415. this._line = 1 - this._line;
  16416. },
  16417. point: function(x, y) {
  16418. x = +x, y = +y;
  16419. if (this._point) {
  16420. var x23 = this._x2 - x,
  16421. y23 = this._y2 - y;
  16422. this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
  16423. }
  16424. switch (this._point) {
  16425. case 0: this._point = 1; break;
  16426. case 1: this._point = 2; break;
  16427. case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
  16428. case 3: this._point = 4; // proceed
  16429. default: Object(_catmullRom__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break;
  16430. }
  16431. this._l01_a = this._l12_a, this._l12_a = this._l23_a;
  16432. this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
  16433. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16434. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16435. }
  16436. };
  16437. /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) {
  16438. function catmullRom(context) {
  16439. return alpha ? new CatmullRomOpen(context, alpha) : new _cardinalOpen__WEBPACK_IMPORTED_MODULE_0__["CardinalOpen"](context, 0);
  16440. }
  16441. catmullRom.alpha = function(alpha) {
  16442. return custom(+alpha);
  16443. };
  16444. return catmullRom;
  16445. })(0.5));
  16446. /***/ }),
  16447. /***/ "./node_modules/d3-shape/src/curve/linear.js":
  16448. /*!***************************************************!*\
  16449. !*** ./node_modules/d3-shape/src/curve/linear.js ***!
  16450. \***************************************************/
  16451. /*! exports provided: default */
  16452. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16453. "use strict";
  16454. __webpack_require__.r(__webpack_exports__);
  16455. function Linear(context) {
  16456. this._context = context;
  16457. }
  16458. Linear.prototype = {
  16459. areaStart: function() {
  16460. this._line = 0;
  16461. },
  16462. areaEnd: function() {
  16463. this._line = NaN;
  16464. },
  16465. lineStart: function() {
  16466. this._point = 0;
  16467. },
  16468. lineEnd: function() {
  16469. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16470. this._line = 1 - this._line;
  16471. },
  16472. point: function(x, y) {
  16473. x = +x, y = +y;
  16474. switch (this._point) {
  16475. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16476. case 1: this._point = 2; // proceed
  16477. default: this._context.lineTo(x, y); break;
  16478. }
  16479. }
  16480. };
  16481. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16482. return new Linear(context);
  16483. });
  16484. /***/ }),
  16485. /***/ "./node_modules/d3-shape/src/curve/linearClosed.js":
  16486. /*!*********************************************************!*\
  16487. !*** ./node_modules/d3-shape/src/curve/linearClosed.js ***!
  16488. \*********************************************************/
  16489. /*! exports provided: default */
  16490. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16491. "use strict";
  16492. __webpack_require__.r(__webpack_exports__);
  16493. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js");
  16494. function LinearClosed(context) {
  16495. this._context = context;
  16496. }
  16497. LinearClosed.prototype = {
  16498. areaStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  16499. areaEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"],
  16500. lineStart: function() {
  16501. this._point = 0;
  16502. },
  16503. lineEnd: function() {
  16504. if (this._point) this._context.closePath();
  16505. },
  16506. point: function(x, y) {
  16507. x = +x, y = +y;
  16508. if (this._point) this._context.lineTo(x, y);
  16509. else this._point = 1, this._context.moveTo(x, y);
  16510. }
  16511. };
  16512. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16513. return new LinearClosed(context);
  16514. });
  16515. /***/ }),
  16516. /***/ "./node_modules/d3-shape/src/curve/monotone.js":
  16517. /*!*****************************************************!*\
  16518. !*** ./node_modules/d3-shape/src/curve/monotone.js ***!
  16519. \*****************************************************/
  16520. /*! exports provided: monotoneX, monotoneY */
  16521. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16522. "use strict";
  16523. __webpack_require__.r(__webpack_exports__);
  16524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneX", function() { return monotoneX; });
  16525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneY", function() { return monotoneY; });
  16526. function sign(x) {
  16527. return x < 0 ? -1 : 1;
  16528. }
  16529. // Calculate the slopes of the tangents (Hermite-type interpolation) based on
  16530. // the following paper: Steffen, M. 1990. A Simple Method for Monotonic
  16531. // Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
  16532. // NOV(II), P. 443, 1990.
  16533. function slope3(that, x2, y2) {
  16534. var h0 = that._x1 - that._x0,
  16535. h1 = x2 - that._x1,
  16536. s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
  16537. s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
  16538. p = (s0 * h1 + s1 * h0) / (h0 + h1);
  16539. return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
  16540. }
  16541. // Calculate a one-sided slope.
  16542. function slope2(that, t) {
  16543. var h = that._x1 - that._x0;
  16544. return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
  16545. }
  16546. // According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
  16547. // "you can express cubic Hermite interpolation in terms of cubic Bézier curves
  16548. // with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
  16549. function point(that, t0, t1) {
  16550. var x0 = that._x0,
  16551. y0 = that._y0,
  16552. x1 = that._x1,
  16553. y1 = that._y1,
  16554. dx = (x1 - x0) / 3;
  16555. that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
  16556. }
  16557. function MonotoneX(context) {
  16558. this._context = context;
  16559. }
  16560. MonotoneX.prototype = {
  16561. areaStart: function() {
  16562. this._line = 0;
  16563. },
  16564. areaEnd: function() {
  16565. this._line = NaN;
  16566. },
  16567. lineStart: function() {
  16568. this._x0 = this._x1 =
  16569. this._y0 = this._y1 =
  16570. this._t0 = NaN;
  16571. this._point = 0;
  16572. },
  16573. lineEnd: function() {
  16574. switch (this._point) {
  16575. case 2: this._context.lineTo(this._x1, this._y1); break;
  16576. case 3: point(this, this._t0, slope2(this, this._t0)); break;
  16577. }
  16578. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16579. this._line = 1 - this._line;
  16580. },
  16581. point: function(x, y) {
  16582. var t1 = NaN;
  16583. x = +x, y = +y;
  16584. if (x === this._x1 && y === this._y1) return; // Ignore coincident points.
  16585. switch (this._point) {
  16586. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16587. case 1: this._point = 2; break;
  16588. case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
  16589. default: point(this, this._t0, t1 = slope3(this, x, y)); break;
  16590. }
  16591. this._x0 = this._x1, this._x1 = x;
  16592. this._y0 = this._y1, this._y1 = y;
  16593. this._t0 = t1;
  16594. }
  16595. }
  16596. function MonotoneY(context) {
  16597. this._context = new ReflectContext(context);
  16598. }
  16599. (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
  16600. MonotoneX.prototype.point.call(this, y, x);
  16601. };
  16602. function ReflectContext(context) {
  16603. this._context = context;
  16604. }
  16605. ReflectContext.prototype = {
  16606. moveTo: function(x, y) { this._context.moveTo(y, x); },
  16607. closePath: function() { this._context.closePath(); },
  16608. lineTo: function(x, y) { this._context.lineTo(y, x); },
  16609. bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
  16610. };
  16611. function monotoneX(context) {
  16612. return new MonotoneX(context);
  16613. }
  16614. function monotoneY(context) {
  16615. return new MonotoneY(context);
  16616. }
  16617. /***/ }),
  16618. /***/ "./node_modules/d3-shape/src/curve/natural.js":
  16619. /*!****************************************************!*\
  16620. !*** ./node_modules/d3-shape/src/curve/natural.js ***!
  16621. \****************************************************/
  16622. /*! exports provided: default */
  16623. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16624. "use strict";
  16625. __webpack_require__.r(__webpack_exports__);
  16626. function Natural(context) {
  16627. this._context = context;
  16628. }
  16629. Natural.prototype = {
  16630. areaStart: function() {
  16631. this._line = 0;
  16632. },
  16633. areaEnd: function() {
  16634. this._line = NaN;
  16635. },
  16636. lineStart: function() {
  16637. this._x = [];
  16638. this._y = [];
  16639. },
  16640. lineEnd: function() {
  16641. var x = this._x,
  16642. y = this._y,
  16643. n = x.length;
  16644. if (n) {
  16645. this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
  16646. if (n === 2) {
  16647. this._context.lineTo(x[1], y[1]);
  16648. } else {
  16649. var px = controlPoints(x),
  16650. py = controlPoints(y);
  16651. for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {
  16652. this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
  16653. }
  16654. }
  16655. }
  16656. if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();
  16657. this._line = 1 - this._line;
  16658. this._x = this._y = null;
  16659. },
  16660. point: function(x, y) {
  16661. this._x.push(+x);
  16662. this._y.push(+y);
  16663. }
  16664. };
  16665. // See https://www.particleincell.com/2012/bezier-splines/ for derivation.
  16666. function controlPoints(x) {
  16667. var i,
  16668. n = x.length - 1,
  16669. m,
  16670. a = new Array(n),
  16671. b = new Array(n),
  16672. r = new Array(n);
  16673. a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
  16674. for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
  16675. a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
  16676. for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
  16677. a[n - 1] = r[n - 1] / b[n - 1];
  16678. for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
  16679. b[n - 1] = (x[n] + a[n - 1]) / 2;
  16680. for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
  16681. return [a, b];
  16682. }
  16683. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16684. return new Natural(context);
  16685. });
  16686. /***/ }),
  16687. /***/ "./node_modules/d3-shape/src/curve/radial.js":
  16688. /*!***************************************************!*\
  16689. !*** ./node_modules/d3-shape/src/curve/radial.js ***!
  16690. \***************************************************/
  16691. /*! exports provided: curveRadialLinear, default */
  16692. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16693. "use strict";
  16694. __webpack_require__.r(__webpack_exports__);
  16695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "curveRadialLinear", function() { return curveRadialLinear; });
  16696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return curveRadial; });
  16697. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-shape/src/curve/linear.js");
  16698. var curveRadialLinear = curveRadial(_linear__WEBPACK_IMPORTED_MODULE_0__["default"]);
  16699. function Radial(curve) {
  16700. this._curve = curve;
  16701. }
  16702. Radial.prototype = {
  16703. areaStart: function() {
  16704. this._curve.areaStart();
  16705. },
  16706. areaEnd: function() {
  16707. this._curve.areaEnd();
  16708. },
  16709. lineStart: function() {
  16710. this._curve.lineStart();
  16711. },
  16712. lineEnd: function() {
  16713. this._curve.lineEnd();
  16714. },
  16715. point: function(a, r) {
  16716. this._curve.point(r * Math.sin(a), r * -Math.cos(a));
  16717. }
  16718. };
  16719. function curveRadial(curve) {
  16720. function radial(context) {
  16721. return new Radial(curve(context));
  16722. }
  16723. radial._curve = curve;
  16724. return radial;
  16725. }
  16726. /***/ }),
  16727. /***/ "./node_modules/d3-shape/src/curve/step.js":
  16728. /*!*************************************************!*\
  16729. !*** ./node_modules/d3-shape/src/curve/step.js ***!
  16730. \*************************************************/
  16731. /*! exports provided: default, stepBefore, stepAfter */
  16732. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16733. "use strict";
  16734. __webpack_require__.r(__webpack_exports__);
  16735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepBefore", function() { return stepBefore; });
  16736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepAfter", function() { return stepAfter; });
  16737. function Step(context, t) {
  16738. this._context = context;
  16739. this._t = t;
  16740. }
  16741. Step.prototype = {
  16742. areaStart: function() {
  16743. this._line = 0;
  16744. },
  16745. areaEnd: function() {
  16746. this._line = NaN;
  16747. },
  16748. lineStart: function() {
  16749. this._x = this._y = NaN;
  16750. this._point = 0;
  16751. },
  16752. lineEnd: function() {
  16753. if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
  16754. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16755. if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
  16756. },
  16757. point: function(x, y) {
  16758. x = +x, y = +y;
  16759. switch (this._point) {
  16760. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16761. case 1: this._point = 2; // proceed
  16762. default: {
  16763. if (this._t <= 0) {
  16764. this._context.lineTo(this._x, y);
  16765. this._context.lineTo(x, y);
  16766. } else {
  16767. var x1 = this._x * (1 - this._t) + x * this._t;
  16768. this._context.lineTo(x1, this._y);
  16769. this._context.lineTo(x1, y);
  16770. }
  16771. break;
  16772. }
  16773. }
  16774. this._x = x, this._y = y;
  16775. }
  16776. };
  16777. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16778. return new Step(context, 0.5);
  16779. });
  16780. function stepBefore(context) {
  16781. return new Step(context, 0);
  16782. }
  16783. function stepAfter(context) {
  16784. return new Step(context, 1);
  16785. }
  16786. /***/ }),
  16787. /***/ "./node_modules/d3-shape/src/descending.js":
  16788. /*!*************************************************!*\
  16789. !*** ./node_modules/d3-shape/src/descending.js ***!
  16790. \*************************************************/
  16791. /*! exports provided: default */
  16792. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16793. "use strict";
  16794. __webpack_require__.r(__webpack_exports__);
  16795. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  16796. return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
  16797. });
  16798. /***/ }),
  16799. /***/ "./node_modules/d3-shape/src/identity.js":
  16800. /*!***********************************************!*\
  16801. !*** ./node_modules/d3-shape/src/identity.js ***!
  16802. \***********************************************/
  16803. /*! exports provided: default */
  16804. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16805. "use strict";
  16806. __webpack_require__.r(__webpack_exports__);
  16807. /* harmony default export */ __webpack_exports__["default"] = (function(d) {
  16808. return d;
  16809. });
  16810. /***/ }),
  16811. /***/ "./node_modules/d3-shape/src/index.js":
  16812. /*!********************************************!*\
  16813. !*** ./node_modules/d3-shape/src/index.js ***!
  16814. \********************************************/
  16815. /*! exports provided: arc, area, line, pie, areaRadial, radialArea, lineRadial, radialLine, pointRadial, linkHorizontal, linkVertical, linkRadial, symbol, symbols, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, curveBasisClosed, curveBasisOpen, curveBasis, curveBundle, curveCardinalClosed, curveCardinalOpen, curveCardinal, curveCatmullRomClosed, curveCatmullRomOpen, curveCatmullRom, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, stack, stackOffsetExpand, stackOffsetDiverging, stackOffsetNone, stackOffsetSilhouette, stackOffsetWiggle, stackOrderAscending, stackOrderDescending, stackOrderInsideOut, stackOrderNone, stackOrderReverse */
  16816. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16817. "use strict";
  16818. __webpack_require__.r(__webpack_exports__);
  16819. /* harmony import */ var _arc__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arc */ "./node_modules/d3-shape/src/arc.js");
  16820. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arc", function() { return _arc__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  16821. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "./node_modules/d3-shape/src/area.js");
  16822. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "area", function() { return _area__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  16823. /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "./node_modules/d3-shape/src/line.js");
  16824. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "line", function() { return _line__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  16825. /* harmony import */ var _pie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie */ "./node_modules/d3-shape/src/pie.js");
  16826. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pie", function() { return _pie__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  16827. /* harmony import */ var _areaRadial__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./areaRadial */ "./node_modules/d3-shape/src/areaRadial.js");
  16828. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "areaRadial", function() { return _areaRadial__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  16829. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialArea", function() { return _areaRadial__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  16830. /* harmony import */ var _lineRadial__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lineRadial */ "./node_modules/d3-shape/src/lineRadial.js");
  16831. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return _lineRadial__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  16832. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialLine", function() { return _lineRadial__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  16833. /* harmony import */ var _pointRadial__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pointRadial */ "./node_modules/d3-shape/src/pointRadial.js");
  16834. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pointRadial", function() { return _pointRadial__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  16835. /* harmony import */ var _link_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./link/index */ "./node_modules/d3-shape/src/link/index.js");
  16836. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return _link_index__WEBPACK_IMPORTED_MODULE_7__["linkHorizontal"]; });
  16837. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return _link_index__WEBPACK_IMPORTED_MODULE_7__["linkVertical"]; });
  16838. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return _link_index__WEBPACK_IMPORTED_MODULE_7__["linkRadial"]; });
  16839. /* harmony import */ var _symbol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./symbol */ "./node_modules/d3-shape/src/symbol.js");
  16840. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbol", function() { return _symbol__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  16841. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return _symbol__WEBPACK_IMPORTED_MODULE_8__["symbols"]; });
  16842. /* harmony import */ var _symbol_circle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./symbol/circle */ "./node_modules/d3-shape/src/symbol/circle.js");
  16843. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCircle", function() { return _symbol_circle__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  16844. /* harmony import */ var _symbol_cross__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./symbol/cross */ "./node_modules/d3-shape/src/symbol/cross.js");
  16845. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCross", function() { return _symbol_cross__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  16846. /* harmony import */ var _symbol_diamond__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./symbol/diamond */ "./node_modules/d3-shape/src/symbol/diamond.js");
  16847. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolDiamond", function() { return _symbol_diamond__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  16848. /* harmony import */ var _symbol_square__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./symbol/square */ "./node_modules/d3-shape/src/symbol/square.js");
  16849. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolSquare", function() { return _symbol_square__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  16850. /* harmony import */ var _symbol_star__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./symbol/star */ "./node_modules/d3-shape/src/symbol/star.js");
  16851. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolStar", function() { return _symbol_star__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  16852. /* harmony import */ var _symbol_triangle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./symbol/triangle */ "./node_modules/d3-shape/src/symbol/triangle.js");
  16853. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolTriangle", function() { return _symbol_triangle__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  16854. /* harmony import */ var _symbol_wye__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./symbol/wye */ "./node_modules/d3-shape/src/symbol/wye.js");
  16855. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolWye", function() { return _symbol_wye__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  16856. /* harmony import */ var _curve_basisClosed__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./curve/basisClosed */ "./node_modules/d3-shape/src/curve/basisClosed.js");
  16857. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisClosed", function() { return _curve_basisClosed__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  16858. /* harmony import */ var _curve_basisOpen__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./curve/basisOpen */ "./node_modules/d3-shape/src/curve/basisOpen.js");
  16859. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisOpen", function() { return _curve_basisOpen__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  16860. /* harmony import */ var _curve_basis__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./curve/basis */ "./node_modules/d3-shape/src/curve/basis.js");
  16861. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasis", function() { return _curve_basis__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  16862. /* harmony import */ var _curve_bundle__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./curve/bundle */ "./node_modules/d3-shape/src/curve/bundle.js");
  16863. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBundle", function() { return _curve_bundle__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  16864. /* harmony import */ var _curve_cardinalClosed__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./curve/cardinalClosed */ "./node_modules/d3-shape/src/curve/cardinalClosed.js");
  16865. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalClosed", function() { return _curve_cardinalClosed__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  16866. /* harmony import */ var _curve_cardinalOpen__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./curve/cardinalOpen */ "./node_modules/d3-shape/src/curve/cardinalOpen.js");
  16867. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalOpen", function() { return _curve_cardinalOpen__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  16868. /* harmony import */ var _curve_cardinal__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./curve/cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js");
  16869. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinal", function() { return _curve_cardinal__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  16870. /* harmony import */ var _curve_catmullRomClosed__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./curve/catmullRomClosed */ "./node_modules/d3-shape/src/curve/catmullRomClosed.js");
  16871. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomClosed", function() { return _curve_catmullRomClosed__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  16872. /* harmony import */ var _curve_catmullRomOpen__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./curve/catmullRomOpen */ "./node_modules/d3-shape/src/curve/catmullRomOpen.js");
  16873. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomOpen", function() { return _curve_catmullRomOpen__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  16874. /* harmony import */ var _curve_catmullRom__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./curve/catmullRom */ "./node_modules/d3-shape/src/curve/catmullRom.js");
  16875. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRom", function() { return _curve_catmullRom__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  16876. /* harmony import */ var _curve_linearClosed__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./curve/linearClosed */ "./node_modules/d3-shape/src/curve/linearClosed.js");
  16877. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinearClosed", function() { return _curve_linearClosed__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  16878. /* harmony import */ var _curve_linear__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./curve/linear */ "./node_modules/d3-shape/src/curve/linear.js");
  16879. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinear", function() { return _curve_linear__WEBPACK_IMPORTED_MODULE_27__["default"]; });
  16880. /* harmony import */ var _curve_monotone__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./curve/monotone */ "./node_modules/d3-shape/src/curve/monotone.js");
  16881. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneX", function() { return _curve_monotone__WEBPACK_IMPORTED_MODULE_28__["monotoneX"]; });
  16882. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneY", function() { return _curve_monotone__WEBPACK_IMPORTED_MODULE_28__["monotoneY"]; });
  16883. /* harmony import */ var _curve_natural__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./curve/natural */ "./node_modules/d3-shape/src/curve/natural.js");
  16884. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveNatural", function() { return _curve_natural__WEBPACK_IMPORTED_MODULE_29__["default"]; });
  16885. /* harmony import */ var _curve_step__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./curve/step */ "./node_modules/d3-shape/src/curve/step.js");
  16886. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStep", function() { return _curve_step__WEBPACK_IMPORTED_MODULE_30__["default"]; });
  16887. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepAfter", function() { return _curve_step__WEBPACK_IMPORTED_MODULE_30__["stepAfter"]; });
  16888. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepBefore", function() { return _curve_step__WEBPACK_IMPORTED_MODULE_30__["stepBefore"]; });
  16889. /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./stack */ "./node_modules/d3-shape/src/stack.js");
  16890. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stack", function() { return _stack__WEBPACK_IMPORTED_MODULE_31__["default"]; });
  16891. /* harmony import */ var _offset_expand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./offset/expand */ "./node_modules/d3-shape/src/offset/expand.js");
  16892. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetExpand", function() { return _offset_expand__WEBPACK_IMPORTED_MODULE_32__["default"]; });
  16893. /* harmony import */ var _offset_diverging__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./offset/diverging */ "./node_modules/d3-shape/src/offset/diverging.js");
  16894. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetDiverging", function() { return _offset_diverging__WEBPACK_IMPORTED_MODULE_33__["default"]; });
  16895. /* harmony import */ var _offset_none__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./offset/none */ "./node_modules/d3-shape/src/offset/none.js");
  16896. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetNone", function() { return _offset_none__WEBPACK_IMPORTED_MODULE_34__["default"]; });
  16897. /* harmony import */ var _offset_silhouette__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./offset/silhouette */ "./node_modules/d3-shape/src/offset/silhouette.js");
  16898. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetSilhouette", function() { return _offset_silhouette__WEBPACK_IMPORTED_MODULE_35__["default"]; });
  16899. /* harmony import */ var _offset_wiggle__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./offset/wiggle */ "./node_modules/d3-shape/src/offset/wiggle.js");
  16900. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetWiggle", function() { return _offset_wiggle__WEBPACK_IMPORTED_MODULE_36__["default"]; });
  16901. /* harmony import */ var _order_ascending__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./order/ascending */ "./node_modules/d3-shape/src/order/ascending.js");
  16902. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAscending", function() { return _order_ascending__WEBPACK_IMPORTED_MODULE_37__["default"]; });
  16903. /* harmony import */ var _order_descending__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./order/descending */ "./node_modules/d3-shape/src/order/descending.js");
  16904. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderDescending", function() { return _order_descending__WEBPACK_IMPORTED_MODULE_38__["default"]; });
  16905. /* harmony import */ var _order_insideOut__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./order/insideOut */ "./node_modules/d3-shape/src/order/insideOut.js");
  16906. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderInsideOut", function() { return _order_insideOut__WEBPACK_IMPORTED_MODULE_39__["default"]; });
  16907. /* harmony import */ var _order_none__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./order/none */ "./node_modules/d3-shape/src/order/none.js");
  16908. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderNone", function() { return _order_none__WEBPACK_IMPORTED_MODULE_40__["default"]; });
  16909. /* harmony import */ var _order_reverse__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./order/reverse */ "./node_modules/d3-shape/src/order/reverse.js");
  16910. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderReverse", function() { return _order_reverse__WEBPACK_IMPORTED_MODULE_41__["default"]; });
  16911. // Note: radialArea is deprecated!
  16912. // Note: radialLine is deprecated!
  16913. /***/ }),
  16914. /***/ "./node_modules/d3-shape/src/line.js":
  16915. /*!*******************************************!*\
  16916. !*** ./node_modules/d3-shape/src/line.js ***!
  16917. \*******************************************/
  16918. /*! exports provided: default */
  16919. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16920. "use strict";
  16921. __webpack_require__.r(__webpack_exports__);
  16922. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  16923. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js");
  16924. /* harmony import */ var _curve_linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear */ "./node_modules/d3-shape/src/curve/linear.js");
  16925. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./point */ "./node_modules/d3-shape/src/point.js");
  16926. /* harmony default export */ __webpack_exports__["default"] = (function() {
  16927. var x = _point__WEBPACK_IMPORTED_MODULE_3__["x"],
  16928. y = _point__WEBPACK_IMPORTED_MODULE_3__["y"],
  16929. defined = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(true),
  16930. context = null,
  16931. curve = _curve_linear__WEBPACK_IMPORTED_MODULE_2__["default"],
  16932. output = null;
  16933. function line(data) {
  16934. var i,
  16935. n = data.length,
  16936. d,
  16937. defined0 = false,
  16938. buffer;
  16939. if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])());
  16940. for (i = 0; i <= n; ++i) {
  16941. if (!(i < n && defined(d = data[i], i, data)) === defined0) {
  16942. if (defined0 = !defined0) output.lineStart();
  16943. else output.lineEnd();
  16944. }
  16945. if (defined0) output.point(+x(d, i, data), +y(d, i, data));
  16946. }
  16947. if (buffer) return output = null, buffer + "" || null;
  16948. }
  16949. line.x = function(_) {
  16950. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : x;
  16951. };
  16952. line.y = function(_) {
  16953. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : y;
  16954. };
  16955. line.defined = function(_) {
  16956. return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), line) : defined;
  16957. };
  16958. line.curve = function(_) {
  16959. return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
  16960. };
  16961. line.context = function(_) {
  16962. return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
  16963. };
  16964. return line;
  16965. });
  16966. /***/ }),
  16967. /***/ "./node_modules/d3-shape/src/lineRadial.js":
  16968. /*!*************************************************!*\
  16969. !*** ./node_modules/d3-shape/src/lineRadial.js ***!
  16970. \*************************************************/
  16971. /*! exports provided: lineRadial, default */
  16972. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16973. "use strict";
  16974. __webpack_require__.r(__webpack_exports__);
  16975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return lineRadial; });
  16976. /* harmony import */ var _curve_radial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial */ "./node_modules/d3-shape/src/curve/radial.js");
  16977. /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./line */ "./node_modules/d3-shape/src/line.js");
  16978. function lineRadial(l) {
  16979. var c = l.curve;
  16980. l.angle = l.x, delete l.x;
  16981. l.radius = l.y, delete l.y;
  16982. l.curve = function(_) {
  16983. return arguments.length ? c(Object(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve;
  16984. };
  16985. return l;
  16986. }
  16987. /* harmony default export */ __webpack_exports__["default"] = (function() {
  16988. return lineRadial(Object(_line__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"]));
  16989. });
  16990. /***/ }),
  16991. /***/ "./node_modules/d3-shape/src/link/index.js":
  16992. /*!*************************************************!*\
  16993. !*** ./node_modules/d3-shape/src/link/index.js ***!
  16994. \*************************************************/
  16995. /*! exports provided: linkHorizontal, linkVertical, linkRadial */
  16996. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16997. "use strict";
  16998. __webpack_require__.r(__webpack_exports__);
  16999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return linkHorizontal; });
  17000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return linkVertical; });
  17001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return linkRadial; });
  17002. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  17003. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../array */ "./node_modules/d3-shape/src/array.js");
  17004. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-shape/src/constant.js");
  17005. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../point */ "./node_modules/d3-shape/src/point.js");
  17006. /* harmony import */ var _pointRadial__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pointRadial */ "./node_modules/d3-shape/src/pointRadial.js");
  17007. function linkSource(d) {
  17008. return d.source;
  17009. }
  17010. function linkTarget(d) {
  17011. return d.target;
  17012. }
  17013. function link(curve) {
  17014. var source = linkSource,
  17015. target = linkTarget,
  17016. x = _point__WEBPACK_IMPORTED_MODULE_3__["x"],
  17017. y = _point__WEBPACK_IMPORTED_MODULE_3__["y"],
  17018. context = null;
  17019. function link() {
  17020. var buffer, argv = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);
  17021. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])();
  17022. curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));
  17023. if (buffer) return context = null, buffer + "" || null;
  17024. }
  17025. link.source = function(_) {
  17026. return arguments.length ? (source = _, link) : source;
  17027. };
  17028. link.target = function(_) {
  17029. return arguments.length ? (target = _, link) : target;
  17030. };
  17031. link.x = function(_) {
  17032. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : x;
  17033. };
  17034. link.y = function(_) {
  17035. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : y;
  17036. };
  17037. link.context = function(_) {
  17038. return arguments.length ? ((context = _ == null ? null : _), link) : context;
  17039. };
  17040. return link;
  17041. }
  17042. function curveHorizontal(context, x0, y0, x1, y1) {
  17043. context.moveTo(x0, y0);
  17044. context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
  17045. }
  17046. function curveVertical(context, x0, y0, x1, y1) {
  17047. context.moveTo(x0, y0);
  17048. context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);
  17049. }
  17050. function curveRadial(context, x0, y0, x1, y1) {
  17051. var p0 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0),
  17052. p1 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0 = (y0 + y1) / 2),
  17053. p2 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y0),
  17054. p3 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y1);
  17055. context.moveTo(p0[0], p0[1]);
  17056. context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);
  17057. }
  17058. function linkHorizontal() {
  17059. return link(curveHorizontal);
  17060. }
  17061. function linkVertical() {
  17062. return link(curveVertical);
  17063. }
  17064. function linkRadial() {
  17065. var l = link(curveRadial);
  17066. l.angle = l.x, delete l.x;
  17067. l.radius = l.y, delete l.y;
  17068. return l;
  17069. }
  17070. /***/ }),
  17071. /***/ "./node_modules/d3-shape/src/math.js":
  17072. /*!*******************************************!*\
  17073. !*** ./node_modules/d3-shape/src/math.js ***!
  17074. \*******************************************/
  17075. /*! exports provided: abs, atan2, cos, max, min, sin, sqrt, epsilon, pi, halfPi, tau, acos, asin */
  17076. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17077. "use strict";
  17078. __webpack_require__.r(__webpack_exports__);
  17079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "abs", function() { return abs; });
  17080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan2", function() { return atan2; });
  17081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; });
  17082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; });
  17083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; });
  17084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; });
  17085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; });
  17086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; });
  17087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; });
  17088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; });
  17089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; });
  17090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "acos", function() { return acos; });
  17091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asin", function() { return asin; });
  17092. var abs = Math.abs;
  17093. var atan2 = Math.atan2;
  17094. var cos = Math.cos;
  17095. var max = Math.max;
  17096. var min = Math.min;
  17097. var sin = Math.sin;
  17098. var sqrt = Math.sqrt;
  17099. var epsilon = 1e-12;
  17100. var pi = Math.PI;
  17101. var halfPi = pi / 2;
  17102. var tau = 2 * pi;
  17103. function acos(x) {
  17104. return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
  17105. }
  17106. function asin(x) {
  17107. return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
  17108. }
  17109. /***/ }),
  17110. /***/ "./node_modules/d3-shape/src/noop.js":
  17111. /*!*******************************************!*\
  17112. !*** ./node_modules/d3-shape/src/noop.js ***!
  17113. \*******************************************/
  17114. /*! exports provided: default */
  17115. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17116. "use strict";
  17117. __webpack_require__.r(__webpack_exports__);
  17118. /* harmony default export */ __webpack_exports__["default"] = (function() {});
  17119. /***/ }),
  17120. /***/ "./node_modules/d3-shape/src/offset/diverging.js":
  17121. /*!*******************************************************!*\
  17122. !*** ./node_modules/d3-shape/src/offset/diverging.js ***!
  17123. \*******************************************************/
  17124. /*! exports provided: default */
  17125. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17126. "use strict";
  17127. __webpack_require__.r(__webpack_exports__);
  17128. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17129. if (!((n = series.length) > 1)) return;
  17130. for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {
  17131. for (yp = yn = 0, i = 0; i < n; ++i) {
  17132. if ((dy = (d = series[order[i]][j])[1] - d[0]) >= 0) {
  17133. d[0] = yp, d[1] = yp += dy;
  17134. } else if (dy < 0) {
  17135. d[1] = yn, d[0] = yn += dy;
  17136. } else {
  17137. d[0] = yp;
  17138. }
  17139. }
  17140. }
  17141. });
  17142. /***/ }),
  17143. /***/ "./node_modules/d3-shape/src/offset/expand.js":
  17144. /*!****************************************************!*\
  17145. !*** ./node_modules/d3-shape/src/offset/expand.js ***!
  17146. \****************************************************/
  17147. /*! exports provided: default */
  17148. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17149. "use strict";
  17150. __webpack_require__.r(__webpack_exports__);
  17151. /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/offset/none.js");
  17152. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17153. if (!((n = series.length) > 0)) return;
  17154. for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
  17155. for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
  17156. if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
  17157. }
  17158. Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
  17159. });
  17160. /***/ }),
  17161. /***/ "./node_modules/d3-shape/src/offset/none.js":
  17162. /*!**************************************************!*\
  17163. !*** ./node_modules/d3-shape/src/offset/none.js ***!
  17164. \**************************************************/
  17165. /*! exports provided: default */
  17166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17167. "use strict";
  17168. __webpack_require__.r(__webpack_exports__);
  17169. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17170. if (!((n = series.length) > 1)) return;
  17171. for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
  17172. s0 = s1, s1 = series[order[i]];
  17173. for (j = 0; j < m; ++j) {
  17174. s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
  17175. }
  17176. }
  17177. });
  17178. /***/ }),
  17179. /***/ "./node_modules/d3-shape/src/offset/silhouette.js":
  17180. /*!********************************************************!*\
  17181. !*** ./node_modules/d3-shape/src/offset/silhouette.js ***!
  17182. \********************************************************/
  17183. /*! exports provided: default */
  17184. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17185. "use strict";
  17186. __webpack_require__.r(__webpack_exports__);
  17187. /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/offset/none.js");
  17188. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17189. if (!((n = series.length) > 0)) return;
  17190. for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
  17191. for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
  17192. s0[j][1] += s0[j][0] = -y / 2;
  17193. }
  17194. Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
  17195. });
  17196. /***/ }),
  17197. /***/ "./node_modules/d3-shape/src/offset/wiggle.js":
  17198. /*!****************************************************!*\
  17199. !*** ./node_modules/d3-shape/src/offset/wiggle.js ***!
  17200. \****************************************************/
  17201. /*! exports provided: default */
  17202. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17203. "use strict";
  17204. __webpack_require__.r(__webpack_exports__);
  17205. /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/offset/none.js");
  17206. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17207. if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
  17208. for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
  17209. for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
  17210. var si = series[order[i]],
  17211. sij0 = si[j][1] || 0,
  17212. sij1 = si[j - 1][1] || 0,
  17213. s3 = (sij0 - sij1) / 2;
  17214. for (var k = 0; k < i; ++k) {
  17215. var sk = series[order[k]],
  17216. skj0 = sk[j][1] || 0,
  17217. skj1 = sk[j - 1][1] || 0;
  17218. s3 += skj0 - skj1;
  17219. }
  17220. s1 += sij0, s2 += s3 * sij0;
  17221. }
  17222. s0[j - 1][1] += s0[j - 1][0] = y;
  17223. if (s1) y -= s2 / s1;
  17224. }
  17225. s0[j - 1][1] += s0[j - 1][0] = y;
  17226. Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
  17227. });
  17228. /***/ }),
  17229. /***/ "./node_modules/d3-shape/src/order/ascending.js":
  17230. /*!******************************************************!*\
  17231. !*** ./node_modules/d3-shape/src/order/ascending.js ***!
  17232. \******************************************************/
  17233. /*! exports provided: default, sum */
  17234. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17235. "use strict";
  17236. __webpack_require__.r(__webpack_exports__);
  17237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return sum; });
  17238. /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/order/none.js");
  17239. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17240. var sums = series.map(sum);
  17241. return Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return sums[a] - sums[b]; });
  17242. });
  17243. function sum(series) {
  17244. var s = 0, i = -1, n = series.length, v;
  17245. while (++i < n) if (v = +series[i][1]) s += v;
  17246. return s;
  17247. }
  17248. /***/ }),
  17249. /***/ "./node_modules/d3-shape/src/order/descending.js":
  17250. /*!*******************************************************!*\
  17251. !*** ./node_modules/d3-shape/src/order/descending.js ***!
  17252. \*******************************************************/
  17253. /*! exports provided: default */
  17254. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17255. "use strict";
  17256. __webpack_require__.r(__webpack_exports__);
  17257. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-shape/src/order/ascending.js");
  17258. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17259. return Object(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse();
  17260. });
  17261. /***/ }),
  17262. /***/ "./node_modules/d3-shape/src/order/insideOut.js":
  17263. /*!******************************************************!*\
  17264. !*** ./node_modules/d3-shape/src/order/insideOut.js ***!
  17265. \******************************************************/
  17266. /*! exports provided: default */
  17267. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17268. "use strict";
  17269. __webpack_require__.r(__webpack_exports__);
  17270. /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/order/none.js");
  17271. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-shape/src/order/ascending.js");
  17272. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17273. var n = series.length,
  17274. i,
  17275. j,
  17276. sums = series.map(_ascending__WEBPACK_IMPORTED_MODULE_1__["sum"]),
  17277. order = Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return sums[b] - sums[a]; }),
  17278. top = 0,
  17279. bottom = 0,
  17280. tops = [],
  17281. bottoms = [];
  17282. for (i = 0; i < n; ++i) {
  17283. j = order[i];
  17284. if (top < bottom) {
  17285. top += sums[j];
  17286. tops.push(j);
  17287. } else {
  17288. bottom += sums[j];
  17289. bottoms.push(j);
  17290. }
  17291. }
  17292. return bottoms.reverse().concat(tops);
  17293. });
  17294. /***/ }),
  17295. /***/ "./node_modules/d3-shape/src/order/none.js":
  17296. /*!*************************************************!*\
  17297. !*** ./node_modules/d3-shape/src/order/none.js ***!
  17298. \*************************************************/
  17299. /*! exports provided: default */
  17300. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17301. "use strict";
  17302. __webpack_require__.r(__webpack_exports__);
  17303. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17304. var n = series.length, o = new Array(n);
  17305. while (--n >= 0) o[n] = n;
  17306. return o;
  17307. });
  17308. /***/ }),
  17309. /***/ "./node_modules/d3-shape/src/order/reverse.js":
  17310. /*!****************************************************!*\
  17311. !*** ./node_modules/d3-shape/src/order/reverse.js ***!
  17312. \****************************************************/
  17313. /*! exports provided: default */
  17314. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17315. "use strict";
  17316. __webpack_require__.r(__webpack_exports__);
  17317. /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/order/none.js");
  17318. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17319. return Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse();
  17320. });
  17321. /***/ }),
  17322. /***/ "./node_modules/d3-shape/src/pie.js":
  17323. /*!******************************************!*\
  17324. !*** ./node_modules/d3-shape/src/pie.js ***!
  17325. \******************************************/
  17326. /*! exports provided: default */
  17327. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17328. "use strict";
  17329. __webpack_require__.r(__webpack_exports__);
  17330. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js");
  17331. /* harmony import */ var _descending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./descending */ "./node_modules/d3-shape/src/descending.js");
  17332. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-shape/src/identity.js");
  17333. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math */ "./node_modules/d3-shape/src/math.js");
  17334. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17335. var value = _identity__WEBPACK_IMPORTED_MODULE_2__["default"],
  17336. sortValues = _descending__WEBPACK_IMPORTED_MODULE_1__["default"],
  17337. sort = null,
  17338. startAngle = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0),
  17339. endAngle = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(_math__WEBPACK_IMPORTED_MODULE_3__["tau"]),
  17340. padAngle = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0);
  17341. function pie(data) {
  17342. var i,
  17343. n = data.length,
  17344. j,
  17345. k,
  17346. sum = 0,
  17347. index = new Array(n),
  17348. arcs = new Array(n),
  17349. a0 = +startAngle.apply(this, arguments),
  17350. da = Math.min(_math__WEBPACK_IMPORTED_MODULE_3__["tau"], Math.max(-_math__WEBPACK_IMPORTED_MODULE_3__["tau"], endAngle.apply(this, arguments) - a0)),
  17351. a1,
  17352. p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
  17353. pa = p * (da < 0 ? -1 : 1),
  17354. v;
  17355. for (i = 0; i < n; ++i) {
  17356. if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {
  17357. sum += v;
  17358. }
  17359. }
  17360. // Optionally sort the arcs by previously-computed values or by data.
  17361. if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });
  17362. else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });
  17363. // Compute the arcs! They are stored in the original data's order.
  17364. for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
  17365. j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {
  17366. data: data[j],
  17367. index: i,
  17368. value: v,
  17369. startAngle: a0,
  17370. endAngle: a1,
  17371. padAngle: p
  17372. };
  17373. }
  17374. return arcs;
  17375. }
  17376. pie.value = function(_) {
  17377. return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : value;
  17378. };
  17379. pie.sortValues = function(_) {
  17380. return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
  17381. };
  17382. pie.sort = function(_) {
  17383. return arguments.length ? (sort = _, sortValues = null, pie) : sort;
  17384. };
  17385. pie.startAngle = function(_) {
  17386. return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : startAngle;
  17387. };
  17388. pie.endAngle = function(_) {
  17389. return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : endAngle;
  17390. };
  17391. pie.padAngle = function(_) {
  17392. return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : padAngle;
  17393. };
  17394. return pie;
  17395. });
  17396. /***/ }),
  17397. /***/ "./node_modules/d3-shape/src/point.js":
  17398. /*!********************************************!*\
  17399. !*** ./node_modules/d3-shape/src/point.js ***!
  17400. \********************************************/
  17401. /*! exports provided: x, y */
  17402. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17403. "use strict";
  17404. __webpack_require__.r(__webpack_exports__);
  17405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; });
  17406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; });
  17407. function x(p) {
  17408. return p[0];
  17409. }
  17410. function y(p) {
  17411. return p[1];
  17412. }
  17413. /***/ }),
  17414. /***/ "./node_modules/d3-shape/src/pointRadial.js":
  17415. /*!**************************************************!*\
  17416. !*** ./node_modules/d3-shape/src/pointRadial.js ***!
  17417. \**************************************************/
  17418. /*! exports provided: default */
  17419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17420. "use strict";
  17421. __webpack_require__.r(__webpack_exports__);
  17422. /* harmony default export */ __webpack_exports__["default"] = (function(x, y) {
  17423. return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
  17424. });
  17425. /***/ }),
  17426. /***/ "./node_modules/d3-shape/src/stack.js":
  17427. /*!********************************************!*\
  17428. !*** ./node_modules/d3-shape/src/stack.js ***!
  17429. \********************************************/
  17430. /*! exports provided: default */
  17431. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17432. "use strict";
  17433. __webpack_require__.r(__webpack_exports__);
  17434. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-shape/src/array.js");
  17435. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js");
  17436. /* harmony import */ var _offset_none__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./offset/none */ "./node_modules/d3-shape/src/offset/none.js");
  17437. /* harmony import */ var _order_none__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./order/none */ "./node_modules/d3-shape/src/order/none.js");
  17438. function stackValue(d, key) {
  17439. return d[key];
  17440. }
  17441. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17442. var keys = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])([]),
  17443. order = _order_none__WEBPACK_IMPORTED_MODULE_3__["default"],
  17444. offset = _offset_none__WEBPACK_IMPORTED_MODULE_2__["default"],
  17445. value = stackValue;
  17446. function stack(data) {
  17447. var kz = keys.apply(this, arguments),
  17448. i,
  17449. m = data.length,
  17450. n = kz.length,
  17451. sz = new Array(n),
  17452. oz;
  17453. for (i = 0; i < n; ++i) {
  17454. for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {
  17455. si[j] = sij = [0, +value(data[j], ki, j, data)];
  17456. sij.data = data[j];
  17457. }
  17458. si.key = ki;
  17459. }
  17460. for (i = 0, oz = order(sz); i < n; ++i) {
  17461. sz[oz[i]].index = i;
  17462. }
  17463. offset(sz, oz);
  17464. return sz;
  17465. }
  17466. stack.keys = function(_) {
  17467. return arguments.length ? (keys = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : keys;
  17468. };
  17469. stack.value = function(_) {
  17470. return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), stack) : value;
  17471. };
  17472. stack.order = function(_) {
  17473. return arguments.length ? (order = _ == null ? _order_none__WEBPACK_IMPORTED_MODULE_3__["default"] : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : order;
  17474. };
  17475. stack.offset = function(_) {
  17476. return arguments.length ? (offset = _ == null ? _offset_none__WEBPACK_IMPORTED_MODULE_2__["default"] : _, stack) : offset;
  17477. };
  17478. return stack;
  17479. });
  17480. /***/ }),
  17481. /***/ "./node_modules/d3-shape/src/symbol.js":
  17482. /*!*********************************************!*\
  17483. !*** ./node_modules/d3-shape/src/symbol.js ***!
  17484. \*********************************************/
  17485. /*! exports provided: symbols, default */
  17486. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17487. "use strict";
  17488. __webpack_require__.r(__webpack_exports__);
  17489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return symbols; });
  17490. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  17491. /* harmony import */ var _symbol_circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./symbol/circle */ "./node_modules/d3-shape/src/symbol/circle.js");
  17492. /* harmony import */ var _symbol_cross__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/cross */ "./node_modules/d3-shape/src/symbol/cross.js");
  17493. /* harmony import */ var _symbol_diamond__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./symbol/diamond */ "./node_modules/d3-shape/src/symbol/diamond.js");
  17494. /* harmony import */ var _symbol_star__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symbol/star */ "./node_modules/d3-shape/src/symbol/star.js");
  17495. /* harmony import */ var _symbol_square__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./symbol/square */ "./node_modules/d3-shape/src/symbol/square.js");
  17496. /* harmony import */ var _symbol_triangle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./symbol/triangle */ "./node_modules/d3-shape/src/symbol/triangle.js");
  17497. /* harmony import */ var _symbol_wye__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./symbol/wye */ "./node_modules/d3-shape/src/symbol/wye.js");
  17498. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js");
  17499. var symbols = [
  17500. _symbol_circle__WEBPACK_IMPORTED_MODULE_1__["default"],
  17501. _symbol_cross__WEBPACK_IMPORTED_MODULE_2__["default"],
  17502. _symbol_diamond__WEBPACK_IMPORTED_MODULE_3__["default"],
  17503. _symbol_square__WEBPACK_IMPORTED_MODULE_5__["default"],
  17504. _symbol_star__WEBPACK_IMPORTED_MODULE_4__["default"],
  17505. _symbol_triangle__WEBPACK_IMPORTED_MODULE_6__["default"],
  17506. _symbol_wye__WEBPACK_IMPORTED_MODULE_7__["default"]
  17507. ];
  17508. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17509. var type = Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(_symbol_circle__WEBPACK_IMPORTED_MODULE_1__["default"]),
  17510. size = Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(64),
  17511. context = null;
  17512. function symbol() {
  17513. var buffer;
  17514. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])();
  17515. type.apply(this, arguments).draw(context, +size.apply(this, arguments));
  17516. if (buffer) return context = null, buffer + "" || null;
  17517. }
  17518. symbol.type = function(_) {
  17519. return arguments.length ? (type = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(_), symbol) : type;
  17520. };
  17521. symbol.size = function(_) {
  17522. return arguments.length ? (size = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(+_), symbol) : size;
  17523. };
  17524. symbol.context = function(_) {
  17525. return arguments.length ? (context = _ == null ? null : _, symbol) : context;
  17526. };
  17527. return symbol;
  17528. });
  17529. /***/ }),
  17530. /***/ "./node_modules/d3-shape/src/symbol/circle.js":
  17531. /*!****************************************************!*\
  17532. !*** ./node_modules/d3-shape/src/symbol/circle.js ***!
  17533. \****************************************************/
  17534. /*! exports provided: default */
  17535. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17536. "use strict";
  17537. __webpack_require__.r(__webpack_exports__);
  17538. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-shape/src/math.js");
  17539. /* harmony default export */ __webpack_exports__["default"] = ({
  17540. draw: function(context, size) {
  17541. var r = Math.sqrt(size / _math__WEBPACK_IMPORTED_MODULE_0__["pi"]);
  17542. context.moveTo(r, 0);
  17543. context.arc(0, 0, r, 0, _math__WEBPACK_IMPORTED_MODULE_0__["tau"]);
  17544. }
  17545. });
  17546. /***/ }),
  17547. /***/ "./node_modules/d3-shape/src/symbol/cross.js":
  17548. /*!***************************************************!*\
  17549. !*** ./node_modules/d3-shape/src/symbol/cross.js ***!
  17550. \***************************************************/
  17551. /*! exports provided: default */
  17552. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17553. "use strict";
  17554. __webpack_require__.r(__webpack_exports__);
  17555. /* harmony default export */ __webpack_exports__["default"] = ({
  17556. draw: function(context, size) {
  17557. var r = Math.sqrt(size / 5) / 2;
  17558. context.moveTo(-3 * r, -r);
  17559. context.lineTo(-r, -r);
  17560. context.lineTo(-r, -3 * r);
  17561. context.lineTo(r, -3 * r);
  17562. context.lineTo(r, -r);
  17563. context.lineTo(3 * r, -r);
  17564. context.lineTo(3 * r, r);
  17565. context.lineTo(r, r);
  17566. context.lineTo(r, 3 * r);
  17567. context.lineTo(-r, 3 * r);
  17568. context.lineTo(-r, r);
  17569. context.lineTo(-3 * r, r);
  17570. context.closePath();
  17571. }
  17572. });
  17573. /***/ }),
  17574. /***/ "./node_modules/d3-shape/src/symbol/diamond.js":
  17575. /*!*****************************************************!*\
  17576. !*** ./node_modules/d3-shape/src/symbol/diamond.js ***!
  17577. \*****************************************************/
  17578. /*! exports provided: default */
  17579. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17580. "use strict";
  17581. __webpack_require__.r(__webpack_exports__);
  17582. var tan30 = Math.sqrt(1 / 3),
  17583. tan30_2 = tan30 * 2;
  17584. /* harmony default export */ __webpack_exports__["default"] = ({
  17585. draw: function(context, size) {
  17586. var y = Math.sqrt(size / tan30_2),
  17587. x = y * tan30;
  17588. context.moveTo(0, -y);
  17589. context.lineTo(x, 0);
  17590. context.lineTo(0, y);
  17591. context.lineTo(-x, 0);
  17592. context.closePath();
  17593. }
  17594. });
  17595. /***/ }),
  17596. /***/ "./node_modules/d3-shape/src/symbol/square.js":
  17597. /*!****************************************************!*\
  17598. !*** ./node_modules/d3-shape/src/symbol/square.js ***!
  17599. \****************************************************/
  17600. /*! exports provided: default */
  17601. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17602. "use strict";
  17603. __webpack_require__.r(__webpack_exports__);
  17604. /* harmony default export */ __webpack_exports__["default"] = ({
  17605. draw: function(context, size) {
  17606. var w = Math.sqrt(size),
  17607. x = -w / 2;
  17608. context.rect(x, x, w, w);
  17609. }
  17610. });
  17611. /***/ }),
  17612. /***/ "./node_modules/d3-shape/src/symbol/star.js":
  17613. /*!**************************************************!*\
  17614. !*** ./node_modules/d3-shape/src/symbol/star.js ***!
  17615. \**************************************************/
  17616. /*! exports provided: default */
  17617. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17618. "use strict";
  17619. __webpack_require__.r(__webpack_exports__);
  17620. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-shape/src/math.js");
  17621. var ka = 0.89081309152928522810,
  17622. kr = Math.sin(_math__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10) / Math.sin(7 * _math__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10),
  17623. kx = Math.sin(_math__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr,
  17624. ky = -Math.cos(_math__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr;
  17625. /* harmony default export */ __webpack_exports__["default"] = ({
  17626. draw: function(context, size) {
  17627. var r = Math.sqrt(size * ka),
  17628. x = kx * r,
  17629. y = ky * r;
  17630. context.moveTo(0, -r);
  17631. context.lineTo(x, y);
  17632. for (var i = 1; i < 5; ++i) {
  17633. var a = _math__WEBPACK_IMPORTED_MODULE_0__["tau"] * i / 5,
  17634. c = Math.cos(a),
  17635. s = Math.sin(a);
  17636. context.lineTo(s * r, -c * r);
  17637. context.lineTo(c * x - s * y, s * x + c * y);
  17638. }
  17639. context.closePath();
  17640. }
  17641. });
  17642. /***/ }),
  17643. /***/ "./node_modules/d3-shape/src/symbol/triangle.js":
  17644. /*!******************************************************!*\
  17645. !*** ./node_modules/d3-shape/src/symbol/triangle.js ***!
  17646. \******************************************************/
  17647. /*! exports provided: default */
  17648. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17649. "use strict";
  17650. __webpack_require__.r(__webpack_exports__);
  17651. var sqrt3 = Math.sqrt(3);
  17652. /* harmony default export */ __webpack_exports__["default"] = ({
  17653. draw: function(context, size) {
  17654. var y = -Math.sqrt(size / (sqrt3 * 3));
  17655. context.moveTo(0, y * 2);
  17656. context.lineTo(-sqrt3 * y, -y);
  17657. context.lineTo(sqrt3 * y, -y);
  17658. context.closePath();
  17659. }
  17660. });
  17661. /***/ }),
  17662. /***/ "./node_modules/d3-shape/src/symbol/wye.js":
  17663. /*!*************************************************!*\
  17664. !*** ./node_modules/d3-shape/src/symbol/wye.js ***!
  17665. \*************************************************/
  17666. /*! exports provided: default */
  17667. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17668. "use strict";
  17669. __webpack_require__.r(__webpack_exports__);
  17670. var c = -0.5,
  17671. s = Math.sqrt(3) / 2,
  17672. k = 1 / Math.sqrt(12),
  17673. a = (k / 2 + 1) * 3;
  17674. /* harmony default export */ __webpack_exports__["default"] = ({
  17675. draw: function(context, size) {
  17676. var r = Math.sqrt(size / a),
  17677. x0 = r / 2,
  17678. y0 = r * k,
  17679. x1 = x0,
  17680. y1 = r * k + r,
  17681. x2 = -x1,
  17682. y2 = y1;
  17683. context.moveTo(x0, y0);
  17684. context.lineTo(x1, y1);
  17685. context.lineTo(x2, y2);
  17686. context.lineTo(c * x0 - s * y0, s * x0 + c * y0);
  17687. context.lineTo(c * x1 - s * y1, s * x1 + c * y1);
  17688. context.lineTo(c * x2 - s * y2, s * x2 + c * y2);
  17689. context.lineTo(c * x0 + s * y0, c * y0 - s * x0);
  17690. context.lineTo(c * x1 + s * y1, c * y1 - s * x1);
  17691. context.lineTo(c * x2 + s * y2, c * y2 - s * x2);
  17692. context.closePath();
  17693. }
  17694. });
  17695. /***/ }),
  17696. /***/ "./node_modules/d3-time-format/src/defaultLocale.js":
  17697. /*!**********************************************************!*\
  17698. !*** ./node_modules/d3-time-format/src/defaultLocale.js ***!
  17699. \**********************************************************/
  17700. /*! exports provided: timeFormat, timeParse, utcFormat, utcParse, default */
  17701. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17702. "use strict";
  17703. __webpack_require__.r(__webpack_exports__);
  17704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return timeFormat; });
  17705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return timeParse; });
  17706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return utcFormat; });
  17707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return utcParse; });
  17708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; });
  17709. /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-time-format/src/locale.js");
  17710. var locale;
  17711. var timeFormat;
  17712. var timeParse;
  17713. var utcFormat;
  17714. var utcParse;
  17715. defaultLocale({
  17716. dateTime: "%x, %X",
  17717. date: "%-m/%-d/%Y",
  17718. time: "%-I:%M:%S %p",
  17719. periods: ["AM", "PM"],
  17720. days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  17721. shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  17722. months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  17723. shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  17724. });
  17725. function defaultLocale(definition) {
  17726. locale = Object(_locale__WEBPACK_IMPORTED_MODULE_0__["default"])(definition);
  17727. timeFormat = locale.format;
  17728. timeParse = locale.parse;
  17729. utcFormat = locale.utcFormat;
  17730. utcParse = locale.utcParse;
  17731. return locale;
  17732. }
  17733. /***/ }),
  17734. /***/ "./node_modules/d3-time-format/src/index.js":
  17735. /*!**************************************************!*\
  17736. !*** ./node_modules/d3-time-format/src/index.js ***!
  17737. \**************************************************/
  17738. /*! exports provided: timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse, timeFormatLocale, isoFormat, isoParse */
  17739. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17740. "use strict";
  17741. __webpack_require__.r(__webpack_exports__);
  17742. /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-time-format/src/defaultLocale.js");
  17743. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatDefaultLocale", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  17744. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["timeFormat"]; });
  17745. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["timeParse"]; });
  17746. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["utcFormat"]; });
  17747. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["utcParse"]; });
  17748. /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-time-format/src/locale.js");
  17749. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatLocale", function() { return _locale__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  17750. /* harmony import */ var _isoFormat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isoFormat */ "./node_modules/d3-time-format/src/isoFormat.js");
  17751. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoFormat", function() { return _isoFormat__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  17752. /* harmony import */ var _isoParse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isoParse */ "./node_modules/d3-time-format/src/isoParse.js");
  17753. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoParse", function() { return _isoParse__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  17754. /***/ }),
  17755. /***/ "./node_modules/d3-time-format/src/isoFormat.js":
  17756. /*!******************************************************!*\
  17757. !*** ./node_modules/d3-time-format/src/isoFormat.js ***!
  17758. \******************************************************/
  17759. /*! exports provided: isoSpecifier, default */
  17760. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17761. "use strict";
  17762. __webpack_require__.r(__webpack_exports__);
  17763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isoSpecifier", function() { return isoSpecifier; });
  17764. /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-time-format/src/defaultLocale.js");
  17765. var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ";
  17766. function formatIsoNative(date) {
  17767. return date.toISOString();
  17768. }
  17769. var formatIso = Date.prototype.toISOString
  17770. ? formatIsoNative
  17771. : Object(_defaultLocale__WEBPACK_IMPORTED_MODULE_0__["utcFormat"])(isoSpecifier);
  17772. /* harmony default export */ __webpack_exports__["default"] = (formatIso);
  17773. /***/ }),
  17774. /***/ "./node_modules/d3-time-format/src/isoParse.js":
  17775. /*!*****************************************************!*\
  17776. !*** ./node_modules/d3-time-format/src/isoParse.js ***!
  17777. \*****************************************************/
  17778. /*! exports provided: default */
  17779. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17780. "use strict";
  17781. __webpack_require__.r(__webpack_exports__);
  17782. /* harmony import */ var _isoFormat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isoFormat */ "./node_modules/d3-time-format/src/isoFormat.js");
  17783. /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-time-format/src/defaultLocale.js");
  17784. function parseIsoNative(string) {
  17785. var date = new Date(string);
  17786. return isNaN(date) ? null : date;
  17787. }
  17788. var parseIso = +new Date("2000-01-01T00:00:00.000Z")
  17789. ? parseIsoNative
  17790. : Object(_defaultLocale__WEBPACK_IMPORTED_MODULE_1__["utcParse"])(_isoFormat__WEBPACK_IMPORTED_MODULE_0__["isoSpecifier"]);
  17791. /* harmony default export */ __webpack_exports__["default"] = (parseIso);
  17792. /***/ }),
  17793. /***/ "./node_modules/d3-time-format/src/locale.js":
  17794. /*!***************************************************!*\
  17795. !*** ./node_modules/d3-time-format/src/locale.js ***!
  17796. \***************************************************/
  17797. /*! exports provided: default */
  17798. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17799. "use strict";
  17800. __webpack_require__.r(__webpack_exports__);
  17801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatLocale; });
  17802. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  17803. function localDate(d) {
  17804. if (0 <= d.y && d.y < 100) {
  17805. var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
  17806. date.setFullYear(d.y);
  17807. return date;
  17808. }
  17809. return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
  17810. }
  17811. function utcDate(d) {
  17812. if (0 <= d.y && d.y < 100) {
  17813. var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
  17814. date.setUTCFullYear(d.y);
  17815. return date;
  17816. }
  17817. return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
  17818. }
  17819. function newYear(y) {
  17820. return {y: y, m: 0, d: 1, H: 0, M: 0, S: 0, L: 0};
  17821. }
  17822. function formatLocale(locale) {
  17823. var locale_dateTime = locale.dateTime,
  17824. locale_date = locale.date,
  17825. locale_time = locale.time,
  17826. locale_periods = locale.periods,
  17827. locale_weekdays = locale.days,
  17828. locale_shortWeekdays = locale.shortDays,
  17829. locale_months = locale.months,
  17830. locale_shortMonths = locale.shortMonths;
  17831. var periodRe = formatRe(locale_periods),
  17832. periodLookup = formatLookup(locale_periods),
  17833. weekdayRe = formatRe(locale_weekdays),
  17834. weekdayLookup = formatLookup(locale_weekdays),
  17835. shortWeekdayRe = formatRe(locale_shortWeekdays),
  17836. shortWeekdayLookup = formatLookup(locale_shortWeekdays),
  17837. monthRe = formatRe(locale_months),
  17838. monthLookup = formatLookup(locale_months),
  17839. shortMonthRe = formatRe(locale_shortMonths),
  17840. shortMonthLookup = formatLookup(locale_shortMonths);
  17841. var formats = {
  17842. "a": formatShortWeekday,
  17843. "A": formatWeekday,
  17844. "b": formatShortMonth,
  17845. "B": formatMonth,
  17846. "c": null,
  17847. "d": formatDayOfMonth,
  17848. "e": formatDayOfMonth,
  17849. "f": formatMicroseconds,
  17850. "H": formatHour24,
  17851. "I": formatHour12,
  17852. "j": formatDayOfYear,
  17853. "L": formatMilliseconds,
  17854. "m": formatMonthNumber,
  17855. "M": formatMinutes,
  17856. "p": formatPeriod,
  17857. "Q": formatUnixTimestamp,
  17858. "s": formatUnixTimestampSeconds,
  17859. "S": formatSeconds,
  17860. "u": formatWeekdayNumberMonday,
  17861. "U": formatWeekNumberSunday,
  17862. "V": formatWeekNumberISO,
  17863. "w": formatWeekdayNumberSunday,
  17864. "W": formatWeekNumberMonday,
  17865. "x": null,
  17866. "X": null,
  17867. "y": formatYear,
  17868. "Y": formatFullYear,
  17869. "Z": formatZone,
  17870. "%": formatLiteralPercent
  17871. };
  17872. var utcFormats = {
  17873. "a": formatUTCShortWeekday,
  17874. "A": formatUTCWeekday,
  17875. "b": formatUTCShortMonth,
  17876. "B": formatUTCMonth,
  17877. "c": null,
  17878. "d": formatUTCDayOfMonth,
  17879. "e": formatUTCDayOfMonth,
  17880. "f": formatUTCMicroseconds,
  17881. "H": formatUTCHour24,
  17882. "I": formatUTCHour12,
  17883. "j": formatUTCDayOfYear,
  17884. "L": formatUTCMilliseconds,
  17885. "m": formatUTCMonthNumber,
  17886. "M": formatUTCMinutes,
  17887. "p": formatUTCPeriod,
  17888. "Q": formatUnixTimestamp,
  17889. "s": formatUnixTimestampSeconds,
  17890. "S": formatUTCSeconds,
  17891. "u": formatUTCWeekdayNumberMonday,
  17892. "U": formatUTCWeekNumberSunday,
  17893. "V": formatUTCWeekNumberISO,
  17894. "w": formatUTCWeekdayNumberSunday,
  17895. "W": formatUTCWeekNumberMonday,
  17896. "x": null,
  17897. "X": null,
  17898. "y": formatUTCYear,
  17899. "Y": formatUTCFullYear,
  17900. "Z": formatUTCZone,
  17901. "%": formatLiteralPercent
  17902. };
  17903. var parses = {
  17904. "a": parseShortWeekday,
  17905. "A": parseWeekday,
  17906. "b": parseShortMonth,
  17907. "B": parseMonth,
  17908. "c": parseLocaleDateTime,
  17909. "d": parseDayOfMonth,
  17910. "e": parseDayOfMonth,
  17911. "f": parseMicroseconds,
  17912. "H": parseHour24,
  17913. "I": parseHour24,
  17914. "j": parseDayOfYear,
  17915. "L": parseMilliseconds,
  17916. "m": parseMonthNumber,
  17917. "M": parseMinutes,
  17918. "p": parsePeriod,
  17919. "Q": parseUnixTimestamp,
  17920. "s": parseUnixTimestampSeconds,
  17921. "S": parseSeconds,
  17922. "u": parseWeekdayNumberMonday,
  17923. "U": parseWeekNumberSunday,
  17924. "V": parseWeekNumberISO,
  17925. "w": parseWeekdayNumberSunday,
  17926. "W": parseWeekNumberMonday,
  17927. "x": parseLocaleDate,
  17928. "X": parseLocaleTime,
  17929. "y": parseYear,
  17930. "Y": parseFullYear,
  17931. "Z": parseZone,
  17932. "%": parseLiteralPercent
  17933. };
  17934. // These recursive directive definitions must be deferred.
  17935. formats.x = newFormat(locale_date, formats);
  17936. formats.X = newFormat(locale_time, formats);
  17937. formats.c = newFormat(locale_dateTime, formats);
  17938. utcFormats.x = newFormat(locale_date, utcFormats);
  17939. utcFormats.X = newFormat(locale_time, utcFormats);
  17940. utcFormats.c = newFormat(locale_dateTime, utcFormats);
  17941. function newFormat(specifier, formats) {
  17942. return function(date) {
  17943. var string = [],
  17944. i = -1,
  17945. j = 0,
  17946. n = specifier.length,
  17947. c,
  17948. pad,
  17949. format;
  17950. if (!(date instanceof Date)) date = new Date(+date);
  17951. while (++i < n) {
  17952. if (specifier.charCodeAt(i) === 37) {
  17953. string.push(specifier.slice(j, i));
  17954. if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
  17955. else pad = c === "e" ? " " : "0";
  17956. if (format = formats[c]) c = format(date, pad);
  17957. string.push(c);
  17958. j = i + 1;
  17959. }
  17960. }
  17961. string.push(specifier.slice(j, i));
  17962. return string.join("");
  17963. };
  17964. }
  17965. function newParse(specifier, newDate) {
  17966. return function(string) {
  17967. var d = newYear(1900),
  17968. i = parseSpecifier(d, specifier, string += "", 0),
  17969. week, day;
  17970. if (i != string.length) return null;
  17971. // If a UNIX timestamp is specified, return it.
  17972. if ("Q" in d) return new Date(d.Q);
  17973. // The am-pm flag is 0 for AM, and 1 for PM.
  17974. if ("p" in d) d.H = d.H % 12 + d.p * 12;
  17975. // Convert day-of-week and week-of-year to day-of-year.
  17976. if ("V" in d) {
  17977. if (d.V < 1 || d.V > 53) return null;
  17978. if (!("w" in d)) d.w = 1;
  17979. if ("Z" in d) {
  17980. week = utcDate(newYear(d.y)), day = week.getUTCDay();
  17981. week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"])(week);
  17982. week = d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].offset(week, (d.V - 1) * 7);
  17983. d.y = week.getUTCFullYear();
  17984. d.m = week.getUTCMonth();
  17985. d.d = week.getUTCDate() + (d.w + 6) % 7;
  17986. } else {
  17987. week = newDate(newYear(d.y)), day = week.getDay();
  17988. week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"])(week);
  17989. week = d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].offset(week, (d.V - 1) * 7);
  17990. d.y = week.getFullYear();
  17991. d.m = week.getMonth();
  17992. d.d = week.getDate() + (d.w + 6) % 7;
  17993. }
  17994. } else if ("W" in d || "U" in d) {
  17995. if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
  17996. day = "Z" in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay();
  17997. d.m = 0;
  17998. d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
  17999. }
  18000. // If a time zone is specified, all fields are interpreted as UTC and then
  18001. // offset according to the specified time zone.
  18002. if ("Z" in d) {
  18003. d.H += d.Z / 100 | 0;
  18004. d.M += d.Z % 100;
  18005. return utcDate(d);
  18006. }
  18007. // Otherwise, all fields are in local time.
  18008. return newDate(d);
  18009. };
  18010. }
  18011. function parseSpecifier(d, specifier, string, j) {
  18012. var i = 0,
  18013. n = specifier.length,
  18014. m = string.length,
  18015. c,
  18016. parse;
  18017. while (i < n) {
  18018. if (j >= m) return -1;
  18019. c = specifier.charCodeAt(i++);
  18020. if (c === 37) {
  18021. c = specifier.charAt(i++);
  18022. parse = parses[c in pads ? specifier.charAt(i++) : c];
  18023. if (!parse || ((j = parse(d, string, j)) < 0)) return -1;
  18024. } else if (c != string.charCodeAt(j++)) {
  18025. return -1;
  18026. }
  18027. }
  18028. return j;
  18029. }
  18030. function parsePeriod(d, string, i) {
  18031. var n = periodRe.exec(string.slice(i));
  18032. return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18033. }
  18034. function parseShortWeekday(d, string, i) {
  18035. var n = shortWeekdayRe.exec(string.slice(i));
  18036. return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18037. }
  18038. function parseWeekday(d, string, i) {
  18039. var n = weekdayRe.exec(string.slice(i));
  18040. return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18041. }
  18042. function parseShortMonth(d, string, i) {
  18043. var n = shortMonthRe.exec(string.slice(i));
  18044. return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18045. }
  18046. function parseMonth(d, string, i) {
  18047. var n = monthRe.exec(string.slice(i));
  18048. return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18049. }
  18050. function parseLocaleDateTime(d, string, i) {
  18051. return parseSpecifier(d, locale_dateTime, string, i);
  18052. }
  18053. function parseLocaleDate(d, string, i) {
  18054. return parseSpecifier(d, locale_date, string, i);
  18055. }
  18056. function parseLocaleTime(d, string, i) {
  18057. return parseSpecifier(d, locale_time, string, i);
  18058. }
  18059. function formatShortWeekday(d) {
  18060. return locale_shortWeekdays[d.getDay()];
  18061. }
  18062. function formatWeekday(d) {
  18063. return locale_weekdays[d.getDay()];
  18064. }
  18065. function formatShortMonth(d) {
  18066. return locale_shortMonths[d.getMonth()];
  18067. }
  18068. function formatMonth(d) {
  18069. return locale_months[d.getMonth()];
  18070. }
  18071. function formatPeriod(d) {
  18072. return locale_periods[+(d.getHours() >= 12)];
  18073. }
  18074. function formatUTCShortWeekday(d) {
  18075. return locale_shortWeekdays[d.getUTCDay()];
  18076. }
  18077. function formatUTCWeekday(d) {
  18078. return locale_weekdays[d.getUTCDay()];
  18079. }
  18080. function formatUTCShortMonth(d) {
  18081. return locale_shortMonths[d.getUTCMonth()];
  18082. }
  18083. function formatUTCMonth(d) {
  18084. return locale_months[d.getUTCMonth()];
  18085. }
  18086. function formatUTCPeriod(d) {
  18087. return locale_periods[+(d.getUTCHours() >= 12)];
  18088. }
  18089. return {
  18090. format: function(specifier) {
  18091. var f = newFormat(specifier += "", formats);
  18092. f.toString = function() { return specifier; };
  18093. return f;
  18094. },
  18095. parse: function(specifier) {
  18096. var p = newParse(specifier += "", localDate);
  18097. p.toString = function() { return specifier; };
  18098. return p;
  18099. },
  18100. utcFormat: function(specifier) {
  18101. var f = newFormat(specifier += "", utcFormats);
  18102. f.toString = function() { return specifier; };
  18103. return f;
  18104. },
  18105. utcParse: function(specifier) {
  18106. var p = newParse(specifier, utcDate);
  18107. p.toString = function() { return specifier; };
  18108. return p;
  18109. }
  18110. };
  18111. }
  18112. var pads = {"-": "", "_": " ", "0": "0"},
  18113. numberRe = /^\s*\d+/, // note: ignores next directive
  18114. percentRe = /^%/,
  18115. requoteRe = /[\\^$*+?|[\]().{}]/g;
  18116. function pad(value, fill, width) {
  18117. var sign = value < 0 ? "-" : "",
  18118. string = (sign ? -value : value) + "",
  18119. length = string.length;
  18120. return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
  18121. }
  18122. function requote(s) {
  18123. return s.replace(requoteRe, "\\$&");
  18124. }
  18125. function formatRe(names) {
  18126. return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
  18127. }
  18128. function formatLookup(names) {
  18129. var map = {}, i = -1, n = names.length;
  18130. while (++i < n) map[names[i].toLowerCase()] = i;
  18131. return map;
  18132. }
  18133. function parseWeekdayNumberSunday(d, string, i) {
  18134. var n = numberRe.exec(string.slice(i, i + 1));
  18135. return n ? (d.w = +n[0], i + n[0].length) : -1;
  18136. }
  18137. function parseWeekdayNumberMonday(d, string, i) {
  18138. var n = numberRe.exec(string.slice(i, i + 1));
  18139. return n ? (d.u = +n[0], i + n[0].length) : -1;
  18140. }
  18141. function parseWeekNumberSunday(d, string, i) {
  18142. var n = numberRe.exec(string.slice(i, i + 2));
  18143. return n ? (d.U = +n[0], i + n[0].length) : -1;
  18144. }
  18145. function parseWeekNumberISO(d, string, i) {
  18146. var n = numberRe.exec(string.slice(i, i + 2));
  18147. return n ? (d.V = +n[0], i + n[0].length) : -1;
  18148. }
  18149. function parseWeekNumberMonday(d, string, i) {
  18150. var n = numberRe.exec(string.slice(i, i + 2));
  18151. return n ? (d.W = +n[0], i + n[0].length) : -1;
  18152. }
  18153. function parseFullYear(d, string, i) {
  18154. var n = numberRe.exec(string.slice(i, i + 4));
  18155. return n ? (d.y = +n[0], i + n[0].length) : -1;
  18156. }
  18157. function parseYear(d, string, i) {
  18158. var n = numberRe.exec(string.slice(i, i + 2));
  18159. return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
  18160. }
  18161. function parseZone(d, string, i) {
  18162. var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
  18163. return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
  18164. }
  18165. function parseMonthNumber(d, string, i) {
  18166. var n = numberRe.exec(string.slice(i, i + 2));
  18167. return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
  18168. }
  18169. function parseDayOfMonth(d, string, i) {
  18170. var n = numberRe.exec(string.slice(i, i + 2));
  18171. return n ? (d.d = +n[0], i + n[0].length) : -1;
  18172. }
  18173. function parseDayOfYear(d, string, i) {
  18174. var n = numberRe.exec(string.slice(i, i + 3));
  18175. return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
  18176. }
  18177. function parseHour24(d, string, i) {
  18178. var n = numberRe.exec(string.slice(i, i + 2));
  18179. return n ? (d.H = +n[0], i + n[0].length) : -1;
  18180. }
  18181. function parseMinutes(d, string, i) {
  18182. var n = numberRe.exec(string.slice(i, i + 2));
  18183. return n ? (d.M = +n[0], i + n[0].length) : -1;
  18184. }
  18185. function parseSeconds(d, string, i) {
  18186. var n = numberRe.exec(string.slice(i, i + 2));
  18187. return n ? (d.S = +n[0], i + n[0].length) : -1;
  18188. }
  18189. function parseMilliseconds(d, string, i) {
  18190. var n = numberRe.exec(string.slice(i, i + 3));
  18191. return n ? (d.L = +n[0], i + n[0].length) : -1;
  18192. }
  18193. function parseMicroseconds(d, string, i) {
  18194. var n = numberRe.exec(string.slice(i, i + 6));
  18195. return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;
  18196. }
  18197. function parseLiteralPercent(d, string, i) {
  18198. var n = percentRe.exec(string.slice(i, i + 1));
  18199. return n ? i + n[0].length : -1;
  18200. }
  18201. function parseUnixTimestamp(d, string, i) {
  18202. var n = numberRe.exec(string.slice(i));
  18203. return n ? (d.Q = +n[0], i + n[0].length) : -1;
  18204. }
  18205. function parseUnixTimestampSeconds(d, string, i) {
  18206. var n = numberRe.exec(string.slice(i));
  18207. return n ? (d.Q = (+n[0]) * 1000, i + n[0].length) : -1;
  18208. }
  18209. function formatDayOfMonth(d, p) {
  18210. return pad(d.getDate(), p, 2);
  18211. }
  18212. function formatHour24(d, p) {
  18213. return pad(d.getHours(), p, 2);
  18214. }
  18215. function formatHour12(d, p) {
  18216. return pad(d.getHours() % 12 || 12, p, 2);
  18217. }
  18218. function formatDayOfYear(d, p) {
  18219. return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 3);
  18220. }
  18221. function formatMilliseconds(d, p) {
  18222. return pad(d.getMilliseconds(), p, 3);
  18223. }
  18224. function formatMicroseconds(d, p) {
  18225. return formatMilliseconds(d, p) + "000";
  18226. }
  18227. function formatMonthNumber(d, p) {
  18228. return pad(d.getMonth() + 1, p, 2);
  18229. }
  18230. function formatMinutes(d, p) {
  18231. return pad(d.getMinutes(), p, 2);
  18232. }
  18233. function formatSeconds(d, p) {
  18234. return pad(d.getSeconds(), p, 2);
  18235. }
  18236. function formatWeekdayNumberMonday(d) {
  18237. var day = d.getDay();
  18238. return day === 0 ? 7 : day;
  18239. }
  18240. function formatWeekNumberSunday(d, p) {
  18241. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 2);
  18242. }
  18243. function formatWeekNumberISO(d, p) {
  18244. var day = d.getDay();
  18245. d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"].ceil(d);
  18246. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d) + (Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d).getDay() === 4), p, 2);
  18247. }
  18248. function formatWeekdayNumberSunday(d) {
  18249. return d.getDay();
  18250. }
  18251. function formatWeekNumberMonday(d, p) {
  18252. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 2);
  18253. }
  18254. function formatYear(d, p) {
  18255. return pad(d.getFullYear() % 100, p, 2);
  18256. }
  18257. function formatFullYear(d, p) {
  18258. return pad(d.getFullYear() % 10000, p, 4);
  18259. }
  18260. function formatZone(d) {
  18261. var z = d.getTimezoneOffset();
  18262. return (z > 0 ? "-" : (z *= -1, "+"))
  18263. + pad(z / 60 | 0, "0", 2)
  18264. + pad(z % 60, "0", 2);
  18265. }
  18266. function formatUTCDayOfMonth(d, p) {
  18267. return pad(d.getUTCDate(), p, 2);
  18268. }
  18269. function formatUTCHour24(d, p) {
  18270. return pad(d.getUTCHours(), p, 2);
  18271. }
  18272. function formatUTCHour12(d, p) {
  18273. return pad(d.getUTCHours() % 12 || 12, p, 2);
  18274. }
  18275. function formatUTCDayOfYear(d, p) {
  18276. return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 3);
  18277. }
  18278. function formatUTCMilliseconds(d, p) {
  18279. return pad(d.getUTCMilliseconds(), p, 3);
  18280. }
  18281. function formatUTCMicroseconds(d, p) {
  18282. return formatUTCMilliseconds(d, p) + "000";
  18283. }
  18284. function formatUTCMonthNumber(d, p) {
  18285. return pad(d.getUTCMonth() + 1, p, 2);
  18286. }
  18287. function formatUTCMinutes(d, p) {
  18288. return pad(d.getUTCMinutes(), p, 2);
  18289. }
  18290. function formatUTCSeconds(d, p) {
  18291. return pad(d.getUTCSeconds(), p, 2);
  18292. }
  18293. function formatUTCWeekdayNumberMonday(d) {
  18294. var dow = d.getUTCDay();
  18295. return dow === 0 ? 7 : dow;
  18296. }
  18297. function formatUTCWeekNumberSunday(d, p) {
  18298. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 2);
  18299. }
  18300. function formatUTCWeekNumberISO(d, p) {
  18301. var day = d.getUTCDay();
  18302. d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"].ceil(d);
  18303. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d) + (Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d).getUTCDay() === 4), p, 2);
  18304. }
  18305. function formatUTCWeekdayNumberSunday(d) {
  18306. return d.getUTCDay();
  18307. }
  18308. function formatUTCWeekNumberMonday(d, p) {
  18309. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 2);
  18310. }
  18311. function formatUTCYear(d, p) {
  18312. return pad(d.getUTCFullYear() % 100, p, 2);
  18313. }
  18314. function formatUTCFullYear(d, p) {
  18315. return pad(d.getUTCFullYear() % 10000, p, 4);
  18316. }
  18317. function formatUTCZone() {
  18318. return "+0000";
  18319. }
  18320. function formatLiteralPercent() {
  18321. return "%";
  18322. }
  18323. function formatUnixTimestamp(d) {
  18324. return +d;
  18325. }
  18326. function formatUnixTimestampSeconds(d) {
  18327. return Math.floor(+d / 1000);
  18328. }
  18329. /***/ }),
  18330. /***/ "./node_modules/d3-time/src/day.js":
  18331. /*!*****************************************!*\
  18332. !*** ./node_modules/d3-time/src/day.js ***!
  18333. \*****************************************/
  18334. /*! exports provided: default, days */
  18335. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18336. "use strict";
  18337. __webpack_require__.r(__webpack_exports__);
  18338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "days", function() { return days; });
  18339. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18340. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18341. var day = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18342. date.setHours(0, 0, 0, 0);
  18343. }, function(date, step) {
  18344. date.setDate(date.getDate() + step);
  18345. }, function(start, end) {
  18346. return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationDay"];
  18347. }, function(date) {
  18348. return date.getDate() - 1;
  18349. });
  18350. /* harmony default export */ __webpack_exports__["default"] = (day);
  18351. var days = day.range;
  18352. /***/ }),
  18353. /***/ "./node_modules/d3-time/src/duration.js":
  18354. /*!**********************************************!*\
  18355. !*** ./node_modules/d3-time/src/duration.js ***!
  18356. \**********************************************/
  18357. /*! exports provided: durationSecond, durationMinute, durationHour, durationDay, durationWeek */
  18358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18359. "use strict";
  18360. __webpack_require__.r(__webpack_exports__);
  18361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationSecond", function() { return durationSecond; });
  18362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationMinute", function() { return durationMinute; });
  18363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationHour", function() { return durationHour; });
  18364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationDay", function() { return durationDay; });
  18365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationWeek", function() { return durationWeek; });
  18366. var durationSecond = 1e3;
  18367. var durationMinute = 6e4;
  18368. var durationHour = 36e5;
  18369. var durationDay = 864e5;
  18370. var durationWeek = 6048e5;
  18371. /***/ }),
  18372. /***/ "./node_modules/d3-time/src/hour.js":
  18373. /*!******************************************!*\
  18374. !*** ./node_modules/d3-time/src/hour.js ***!
  18375. \******************************************/
  18376. /*! exports provided: default, hours */
  18377. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18378. "use strict";
  18379. __webpack_require__.r(__webpack_exports__);
  18380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hours", function() { return hours; });
  18381. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18382. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18383. var hour = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18384. var offset = date.getTimezoneOffset() * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"] % _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
  18385. if (offset < 0) offset += _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
  18386. date.setTime(Math.floor((+date - offset) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"] + offset);
  18387. }, function(date, step) {
  18388. date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]);
  18389. }, function(start, end) {
  18390. return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
  18391. }, function(date) {
  18392. return date.getHours();
  18393. });
  18394. /* harmony default export */ __webpack_exports__["default"] = (hour);
  18395. var hours = hour.range;
  18396. /***/ }),
  18397. /***/ "./node_modules/d3-time/src/index.js":
  18398. /*!*******************************************!*\
  18399. !*** ./node_modules/d3-time/src/index.js ***!
  18400. \*******************************************/
  18401. /*! exports provided: timeInterval, timeMillisecond, timeMilliseconds, utcMillisecond, utcMilliseconds, timeSecond, timeSeconds, utcSecond, utcSeconds, timeMinute, timeMinutes, timeHour, timeHours, timeDay, timeDays, timeWeek, timeWeeks, timeSunday, timeSundays, timeMonday, timeMondays, timeTuesday, timeTuesdays, timeWednesday, timeWednesdays, timeThursday, timeThursdays, timeFriday, timeFridays, timeSaturday, timeSaturdays, timeMonth, timeMonths, timeYear, timeYears, utcMinute, utcMinutes, utcHour, utcHours, utcDay, utcDays, utcWeek, utcWeeks, utcSunday, utcSundays, utcMonday, utcMondays, utcTuesday, utcTuesdays, utcWednesday, utcWednesdays, utcThursday, utcThursdays, utcFriday, utcFridays, utcSaturday, utcSaturdays, utcMonth, utcMonths, utcYear, utcYears */
  18402. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18403. "use strict";
  18404. __webpack_require__.r(__webpack_exports__);
  18405. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18406. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return _interval__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  18407. /* harmony import */ var _millisecond__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./millisecond */ "./node_modules/d3-time/src/millisecond.js");
  18408. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return _millisecond__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  18409. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return _millisecond__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; });
  18410. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return _millisecond__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  18411. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return _millisecond__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; });
  18412. /* harmony import */ var _second__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./second */ "./node_modules/d3-time/src/second.js");
  18413. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return _second__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  18414. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return _second__WEBPACK_IMPORTED_MODULE_2__["seconds"]; });
  18415. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return _second__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  18416. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return _second__WEBPACK_IMPORTED_MODULE_2__["seconds"]; });
  18417. /* harmony import */ var _minute__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./minute */ "./node_modules/d3-time/src/minute.js");
  18418. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return _minute__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  18419. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return _minute__WEBPACK_IMPORTED_MODULE_3__["minutes"]; });
  18420. /* harmony import */ var _hour__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hour */ "./node_modules/d3-time/src/hour.js");
  18421. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return _hour__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  18422. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return _hour__WEBPACK_IMPORTED_MODULE_4__["hours"]; });
  18423. /* harmony import */ var _day__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./day */ "./node_modules/d3-time/src/day.js");
  18424. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return _day__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  18425. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return _day__WEBPACK_IMPORTED_MODULE_5__["days"]; });
  18426. /* harmony import */ var _week__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./week */ "./node_modules/d3-time/src/week.js");
  18427. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["sunday"]; });
  18428. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["sundays"]; });
  18429. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["sunday"]; });
  18430. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["sundays"]; });
  18431. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["monday"]; });
  18432. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["mondays"]; });
  18433. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["tuesday"]; });
  18434. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["tuesdays"]; });
  18435. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["wednesday"]; });
  18436. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["wednesdays"]; });
  18437. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["thursday"]; });
  18438. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["thursdays"]; });
  18439. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["friday"]; });
  18440. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["fridays"]; });
  18441. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["saturday"]; });
  18442. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return _week__WEBPACK_IMPORTED_MODULE_6__["saturdays"]; });
  18443. /* harmony import */ var _month__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./month */ "./node_modules/d3-time/src/month.js");
  18444. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return _month__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  18445. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return _month__WEBPACK_IMPORTED_MODULE_7__["months"]; });
  18446. /* harmony import */ var _year__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./year */ "./node_modules/d3-time/src/year.js");
  18447. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return _year__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  18448. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return _year__WEBPACK_IMPORTED_MODULE_8__["years"]; });
  18449. /* harmony import */ var _utcMinute__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utcMinute */ "./node_modules/d3-time/src/utcMinute.js");
  18450. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return _utcMinute__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  18451. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return _utcMinute__WEBPACK_IMPORTED_MODULE_9__["utcMinutes"]; });
  18452. /* harmony import */ var _utcHour__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utcHour */ "./node_modules/d3-time/src/utcHour.js");
  18453. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return _utcHour__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  18454. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return _utcHour__WEBPACK_IMPORTED_MODULE_10__["utcHours"]; });
  18455. /* harmony import */ var _utcDay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utcDay */ "./node_modules/d3-time/src/utcDay.js");
  18456. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return _utcDay__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  18457. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return _utcDay__WEBPACK_IMPORTED_MODULE_11__["utcDays"]; });
  18458. /* harmony import */ var _utcWeek__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utcWeek */ "./node_modules/d3-time/src/utcWeek.js");
  18459. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; });
  18460. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; });
  18461. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; });
  18462. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; });
  18463. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcMonday"]; });
  18464. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcMondays"]; });
  18465. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcTuesday"]; });
  18466. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcTuesdays"]; });
  18467. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcWednesday"]; });
  18468. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcWednesdays"]; });
  18469. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcThursday"]; });
  18470. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcThursdays"]; });
  18471. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcFriday"]; });
  18472. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcFridays"]; });
  18473. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSaturday"]; });
  18474. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return _utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSaturdays"]; });
  18475. /* harmony import */ var _utcMonth__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utcMonth */ "./node_modules/d3-time/src/utcMonth.js");
  18476. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return _utcMonth__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  18477. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return _utcMonth__WEBPACK_IMPORTED_MODULE_13__["utcMonths"]; });
  18478. /* harmony import */ var _utcYear__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utcYear */ "./node_modules/d3-time/src/utcYear.js");
  18479. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return _utcYear__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  18480. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return _utcYear__WEBPACK_IMPORTED_MODULE_14__["utcYears"]; });
  18481. /***/ }),
  18482. /***/ "./node_modules/d3-time/src/interval.js":
  18483. /*!**********************************************!*\
  18484. !*** ./node_modules/d3-time/src/interval.js ***!
  18485. \**********************************************/
  18486. /*! exports provided: default */
  18487. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18488. "use strict";
  18489. __webpack_require__.r(__webpack_exports__);
  18490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return newInterval; });
  18491. var t0 = new Date,
  18492. t1 = new Date;
  18493. function newInterval(floori, offseti, count, field) {
  18494. function interval(date) {
  18495. return floori(date = new Date(+date)), date;
  18496. }
  18497. interval.floor = interval;
  18498. interval.ceil = function(date) {
  18499. return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;
  18500. };
  18501. interval.round = function(date) {
  18502. var d0 = interval(date),
  18503. d1 = interval.ceil(date);
  18504. return date - d0 < d1 - date ? d0 : d1;
  18505. };
  18506. interval.offset = function(date, step) {
  18507. return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;
  18508. };
  18509. interval.range = function(start, stop, step) {
  18510. var range = [], previous;
  18511. start = interval.ceil(start);
  18512. step = step == null ? 1 : Math.floor(step);
  18513. if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
  18514. do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
  18515. while (previous < start && start < stop);
  18516. return range;
  18517. };
  18518. interval.filter = function(test) {
  18519. return newInterval(function(date) {
  18520. if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
  18521. }, function(date, step) {
  18522. if (date >= date) {
  18523. if (step < 0) while (++step <= 0) {
  18524. while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
  18525. } else while (--step >= 0) {
  18526. while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
  18527. }
  18528. }
  18529. });
  18530. };
  18531. if (count) {
  18532. interval.count = function(start, end) {
  18533. t0.setTime(+start), t1.setTime(+end);
  18534. floori(t0), floori(t1);
  18535. return Math.floor(count(t0, t1));
  18536. };
  18537. interval.every = function(step) {
  18538. step = Math.floor(step);
  18539. return !isFinite(step) || !(step > 0) ? null
  18540. : !(step > 1) ? interval
  18541. : interval.filter(field
  18542. ? function(d) { return field(d) % step === 0; }
  18543. : function(d) { return interval.count(0, d) % step === 0; });
  18544. };
  18545. }
  18546. return interval;
  18547. }
  18548. /***/ }),
  18549. /***/ "./node_modules/d3-time/src/millisecond.js":
  18550. /*!*************************************************!*\
  18551. !*** ./node_modules/d3-time/src/millisecond.js ***!
  18552. \*************************************************/
  18553. /*! exports provided: default, milliseconds */
  18554. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18555. "use strict";
  18556. __webpack_require__.r(__webpack_exports__);
  18557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "milliseconds", function() { return milliseconds; });
  18558. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18559. var millisecond = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function() {
  18560. // noop
  18561. }, function(date, step) {
  18562. date.setTime(+date + step);
  18563. }, function(start, end) {
  18564. return end - start;
  18565. });
  18566. // An optimized implementation for this simple case.
  18567. millisecond.every = function(k) {
  18568. k = Math.floor(k);
  18569. if (!isFinite(k) || !(k > 0)) return null;
  18570. if (!(k > 1)) return millisecond;
  18571. return Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18572. date.setTime(Math.floor(date / k) * k);
  18573. }, function(date, step) {
  18574. date.setTime(+date + step * k);
  18575. }, function(start, end) {
  18576. return (end - start) / k;
  18577. });
  18578. };
  18579. /* harmony default export */ __webpack_exports__["default"] = (millisecond);
  18580. var milliseconds = millisecond.range;
  18581. /***/ }),
  18582. /***/ "./node_modules/d3-time/src/minute.js":
  18583. /*!********************************************!*\
  18584. !*** ./node_modules/d3-time/src/minute.js ***!
  18585. \********************************************/
  18586. /*! exports provided: default, minutes */
  18587. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18588. "use strict";
  18589. __webpack_require__.r(__webpack_exports__);
  18590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutes", function() { return minutes; });
  18591. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18592. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18593. var minute = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18594. date.setTime(Math.floor(date / _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
  18595. }, function(date, step) {
  18596. date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
  18597. }, function(start, end) {
  18598. return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"];
  18599. }, function(date) {
  18600. return date.getMinutes();
  18601. });
  18602. /* harmony default export */ __webpack_exports__["default"] = (minute);
  18603. var minutes = minute.range;
  18604. /***/ }),
  18605. /***/ "./node_modules/d3-time/src/month.js":
  18606. /*!*******************************************!*\
  18607. !*** ./node_modules/d3-time/src/month.js ***!
  18608. \*******************************************/
  18609. /*! exports provided: default, months */
  18610. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18611. "use strict";
  18612. __webpack_require__.r(__webpack_exports__);
  18613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "months", function() { return months; });
  18614. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18615. var month = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18616. date.setDate(1);
  18617. date.setHours(0, 0, 0, 0);
  18618. }, function(date, step) {
  18619. date.setMonth(date.getMonth() + step);
  18620. }, function(start, end) {
  18621. return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
  18622. }, function(date) {
  18623. return date.getMonth();
  18624. });
  18625. /* harmony default export */ __webpack_exports__["default"] = (month);
  18626. var months = month.range;
  18627. /***/ }),
  18628. /***/ "./node_modules/d3-time/src/second.js":
  18629. /*!********************************************!*\
  18630. !*** ./node_modules/d3-time/src/second.js ***!
  18631. \********************************************/
  18632. /*! exports provided: default, seconds */
  18633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18634. "use strict";
  18635. __webpack_require__.r(__webpack_exports__);
  18636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "seconds", function() { return seconds; });
  18637. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18638. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18639. var second = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18640. date.setTime(Math.floor(date / _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]);
  18641. }, function(date, step) {
  18642. date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]);
  18643. }, function(start, end) {
  18644. return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"];
  18645. }, function(date) {
  18646. return date.getUTCSeconds();
  18647. });
  18648. /* harmony default export */ __webpack_exports__["default"] = (second);
  18649. var seconds = second.range;
  18650. /***/ }),
  18651. /***/ "./node_modules/d3-time/src/utcDay.js":
  18652. /*!********************************************!*\
  18653. !*** ./node_modules/d3-time/src/utcDay.js ***!
  18654. \********************************************/
  18655. /*! exports provided: default, utcDays */
  18656. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18657. "use strict";
  18658. __webpack_require__.r(__webpack_exports__);
  18659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return utcDays; });
  18660. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18661. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18662. var utcDay = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18663. date.setUTCHours(0, 0, 0, 0);
  18664. }, function(date, step) {
  18665. date.setUTCDate(date.getUTCDate() + step);
  18666. }, function(start, end) {
  18667. return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationDay"];
  18668. }, function(date) {
  18669. return date.getUTCDate() - 1;
  18670. });
  18671. /* harmony default export */ __webpack_exports__["default"] = (utcDay);
  18672. var utcDays = utcDay.range;
  18673. /***/ }),
  18674. /***/ "./node_modules/d3-time/src/utcHour.js":
  18675. /*!*********************************************!*\
  18676. !*** ./node_modules/d3-time/src/utcHour.js ***!
  18677. \*********************************************/
  18678. /*! exports provided: default, utcHours */
  18679. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18680. "use strict";
  18681. __webpack_require__.r(__webpack_exports__);
  18682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return utcHours; });
  18683. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18684. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18685. var utcHour = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18686. date.setUTCMinutes(0, 0, 0);
  18687. }, function(date, step) {
  18688. date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]);
  18689. }, function(start, end) {
  18690. return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
  18691. }, function(date) {
  18692. return date.getUTCHours();
  18693. });
  18694. /* harmony default export */ __webpack_exports__["default"] = (utcHour);
  18695. var utcHours = utcHour.range;
  18696. /***/ }),
  18697. /***/ "./node_modules/d3-time/src/utcMinute.js":
  18698. /*!***********************************************!*\
  18699. !*** ./node_modules/d3-time/src/utcMinute.js ***!
  18700. \***********************************************/
  18701. /*! exports provided: default, utcMinutes */
  18702. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18703. "use strict";
  18704. __webpack_require__.r(__webpack_exports__);
  18705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return utcMinutes; });
  18706. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18707. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18708. var utcMinute = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18709. date.setUTCSeconds(0, 0);
  18710. }, function(date, step) {
  18711. date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
  18712. }, function(start, end) {
  18713. return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"];
  18714. }, function(date) {
  18715. return date.getUTCMinutes();
  18716. });
  18717. /* harmony default export */ __webpack_exports__["default"] = (utcMinute);
  18718. var utcMinutes = utcMinute.range;
  18719. /***/ }),
  18720. /***/ "./node_modules/d3-time/src/utcMonth.js":
  18721. /*!**********************************************!*\
  18722. !*** ./node_modules/d3-time/src/utcMonth.js ***!
  18723. \**********************************************/
  18724. /*! exports provided: default, utcMonths */
  18725. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18726. "use strict";
  18727. __webpack_require__.r(__webpack_exports__);
  18728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return utcMonths; });
  18729. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18730. var utcMonth = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18731. date.setUTCDate(1);
  18732. date.setUTCHours(0, 0, 0, 0);
  18733. }, function(date, step) {
  18734. date.setUTCMonth(date.getUTCMonth() + step);
  18735. }, function(start, end) {
  18736. return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
  18737. }, function(date) {
  18738. return date.getUTCMonth();
  18739. });
  18740. /* harmony default export */ __webpack_exports__["default"] = (utcMonth);
  18741. var utcMonths = utcMonth.range;
  18742. /***/ }),
  18743. /***/ "./node_modules/d3-time/src/utcWeek.js":
  18744. /*!*********************************************!*\
  18745. !*** ./node_modules/d3-time/src/utcWeek.js ***!
  18746. \*********************************************/
  18747. /*! exports provided: utcSunday, utcMonday, utcTuesday, utcWednesday, utcThursday, utcFriday, utcSaturday, utcSundays, utcMondays, utcTuesdays, utcWednesdays, utcThursdays, utcFridays, utcSaturdays */
  18748. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18749. "use strict";
  18750. __webpack_require__.r(__webpack_exports__);
  18751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return utcSunday; });
  18752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return utcMonday; });
  18753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return utcTuesday; });
  18754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return utcWednesday; });
  18755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return utcThursday; });
  18756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return utcFriday; });
  18757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return utcSaturday; });
  18758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return utcSundays; });
  18759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return utcMondays; });
  18760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return utcTuesdays; });
  18761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return utcWednesdays; });
  18762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return utcThursdays; });
  18763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return utcFridays; });
  18764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return utcSaturdays; });
  18765. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18766. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18767. function utcWeekday(i) {
  18768. return Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18769. date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
  18770. date.setUTCHours(0, 0, 0, 0);
  18771. }, function(date, step) {
  18772. date.setUTCDate(date.getUTCDate() + step * 7);
  18773. }, function(start, end) {
  18774. return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationWeek"];
  18775. });
  18776. }
  18777. var utcSunday = utcWeekday(0);
  18778. var utcMonday = utcWeekday(1);
  18779. var utcTuesday = utcWeekday(2);
  18780. var utcWednesday = utcWeekday(3);
  18781. var utcThursday = utcWeekday(4);
  18782. var utcFriday = utcWeekday(5);
  18783. var utcSaturday = utcWeekday(6);
  18784. var utcSundays = utcSunday.range;
  18785. var utcMondays = utcMonday.range;
  18786. var utcTuesdays = utcTuesday.range;
  18787. var utcWednesdays = utcWednesday.range;
  18788. var utcThursdays = utcThursday.range;
  18789. var utcFridays = utcFriday.range;
  18790. var utcSaturdays = utcSaturday.range;
  18791. /***/ }),
  18792. /***/ "./node_modules/d3-time/src/utcYear.js":
  18793. /*!*********************************************!*\
  18794. !*** ./node_modules/d3-time/src/utcYear.js ***!
  18795. \*********************************************/
  18796. /*! exports provided: default, utcYears */
  18797. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18798. "use strict";
  18799. __webpack_require__.r(__webpack_exports__);
  18800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return utcYears; });
  18801. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18802. var utcYear = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18803. date.setUTCMonth(0, 1);
  18804. date.setUTCHours(0, 0, 0, 0);
  18805. }, function(date, step) {
  18806. date.setUTCFullYear(date.getUTCFullYear() + step);
  18807. }, function(start, end) {
  18808. return end.getUTCFullYear() - start.getUTCFullYear();
  18809. }, function(date) {
  18810. return date.getUTCFullYear();
  18811. });
  18812. // An optimized implementation for this simple case.
  18813. utcYear.every = function(k) {
  18814. return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18815. date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
  18816. date.setUTCMonth(0, 1);
  18817. date.setUTCHours(0, 0, 0, 0);
  18818. }, function(date, step) {
  18819. date.setUTCFullYear(date.getUTCFullYear() + step * k);
  18820. });
  18821. };
  18822. /* harmony default export */ __webpack_exports__["default"] = (utcYear);
  18823. var utcYears = utcYear.range;
  18824. /***/ }),
  18825. /***/ "./node_modules/d3-time/src/week.js":
  18826. /*!******************************************!*\
  18827. !*** ./node_modules/d3-time/src/week.js ***!
  18828. \******************************************/
  18829. /*! exports provided: sunday, monday, tuesday, wednesday, thursday, friday, saturday, sundays, mondays, tuesdays, wednesdays, thursdays, fridays, saturdays */
  18830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18831. "use strict";
  18832. __webpack_require__.r(__webpack_exports__);
  18833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sunday", function() { return sunday; });
  18834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monday", function() { return monday; });
  18835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesday", function() { return tuesday; });
  18836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesday", function() { return wednesday; });
  18837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursday", function() { return thursday; });
  18838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "friday", function() { return friday; });
  18839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturday", function() { return saturday; });
  18840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sundays", function() { return sundays; });
  18841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mondays", function() { return mondays; });
  18842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesdays", function() { return tuesdays; });
  18843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesdays", function() { return wednesdays; });
  18844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursdays", function() { return thursdays; });
  18845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fridays", function() { return fridays; });
  18846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturdays", function() { return saturdays; });
  18847. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18848. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js");
  18849. function weekday(i) {
  18850. return Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18851. date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
  18852. date.setHours(0, 0, 0, 0);
  18853. }, function(date, step) {
  18854. date.setDate(date.getDate() + step * 7);
  18855. }, function(start, end) {
  18856. return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationWeek"];
  18857. });
  18858. }
  18859. var sunday = weekday(0);
  18860. var monday = weekday(1);
  18861. var tuesday = weekday(2);
  18862. var wednesday = weekday(3);
  18863. var thursday = weekday(4);
  18864. var friday = weekday(5);
  18865. var saturday = weekday(6);
  18866. var sundays = sunday.range;
  18867. var mondays = monday.range;
  18868. var tuesdays = tuesday.range;
  18869. var wednesdays = wednesday.range;
  18870. var thursdays = thursday.range;
  18871. var fridays = friday.range;
  18872. var saturdays = saturday.range;
  18873. /***/ }),
  18874. /***/ "./node_modules/d3-time/src/year.js":
  18875. /*!******************************************!*\
  18876. !*** ./node_modules/d3-time/src/year.js ***!
  18877. \******************************************/
  18878. /*! exports provided: default, years */
  18879. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18880. "use strict";
  18881. __webpack_require__.r(__webpack_exports__);
  18882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "years", function() { return years; });
  18883. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js");
  18884. var year = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18885. date.setMonth(0, 1);
  18886. date.setHours(0, 0, 0, 0);
  18887. }, function(date, step) {
  18888. date.setFullYear(date.getFullYear() + step);
  18889. }, function(start, end) {
  18890. return end.getFullYear() - start.getFullYear();
  18891. }, function(date) {
  18892. return date.getFullYear();
  18893. });
  18894. // An optimized implementation for this simple case.
  18895. year.every = function(k) {
  18896. return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18897. date.setFullYear(Math.floor(date.getFullYear() / k) * k);
  18898. date.setMonth(0, 1);
  18899. date.setHours(0, 0, 0, 0);
  18900. }, function(date, step) {
  18901. date.setFullYear(date.getFullYear() + step * k);
  18902. });
  18903. };
  18904. /* harmony default export */ __webpack_exports__["default"] = (year);
  18905. var years = year.range;
  18906. /***/ }),
  18907. /***/ "./node_modules/d3-timer/src/index.js":
  18908. /*!********************************************!*\
  18909. !*** ./node_modules/d3-timer/src/index.js ***!
  18910. \********************************************/
  18911. /*! exports provided: now, timer, timerFlush, timeout, interval */
  18912. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18913. "use strict";
  18914. __webpack_require__.r(__webpack_exports__);
  18915. /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer */ "./node_modules/d3-timer/src/timer.js");
  18916. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "now", function() { return _timer__WEBPACK_IMPORTED_MODULE_0__["now"]; });
  18917. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return _timer__WEBPACK_IMPORTED_MODULE_0__["timer"]; });
  18918. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return _timer__WEBPACK_IMPORTED_MODULE_0__["timerFlush"]; });
  18919. /* harmony import */ var _timeout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timeout */ "./node_modules/d3-timer/src/timeout.js");
  18920. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return _timeout__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  18921. /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-timer/src/interval.js");
  18922. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return _interval__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  18923. /***/ }),
  18924. /***/ "./node_modules/d3-timer/src/interval.js":
  18925. /*!***********************************************!*\
  18926. !*** ./node_modules/d3-timer/src/interval.js ***!
  18927. \***********************************************/
  18928. /*! exports provided: default */
  18929. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18930. "use strict";
  18931. __webpack_require__.r(__webpack_exports__);
  18932. /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer */ "./node_modules/d3-timer/src/timer.js");
  18933. /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) {
  18934. var t = new _timer__WEBPACK_IMPORTED_MODULE_0__["Timer"], total = delay;
  18935. if (delay == null) return t.restart(callback, delay, time), t;
  18936. delay = +delay, time = time == null ? Object(_timer__WEBPACK_IMPORTED_MODULE_0__["now"])() : +time;
  18937. t.restart(function tick(elapsed) {
  18938. elapsed += total;
  18939. t.restart(tick, total += delay, time);
  18940. callback(elapsed);
  18941. }, delay, time);
  18942. return t;
  18943. });
  18944. /***/ }),
  18945. /***/ "./node_modules/d3-timer/src/timeout.js":
  18946. /*!**********************************************!*\
  18947. !*** ./node_modules/d3-timer/src/timeout.js ***!
  18948. \**********************************************/
  18949. /*! exports provided: default */
  18950. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18951. "use strict";
  18952. __webpack_require__.r(__webpack_exports__);
  18953. /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer */ "./node_modules/d3-timer/src/timer.js");
  18954. /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) {
  18955. var t = new _timer__WEBPACK_IMPORTED_MODULE_0__["Timer"];
  18956. delay = delay == null ? 0 : +delay;
  18957. t.restart(function(elapsed) {
  18958. t.stop();
  18959. callback(elapsed + delay);
  18960. }, delay, time);
  18961. return t;
  18962. });
  18963. /***/ }),
  18964. /***/ "./node_modules/d3-timer/src/timer.js":
  18965. /*!********************************************!*\
  18966. !*** ./node_modules/d3-timer/src/timer.js ***!
  18967. \********************************************/
  18968. /*! exports provided: now, Timer, timer, timerFlush */
  18969. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18970. "use strict";
  18971. __webpack_require__.r(__webpack_exports__);
  18972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "now", function() { return now; });
  18973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timer", function() { return Timer; });
  18974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return timer; });
  18975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return timerFlush; });
  18976. var frame = 0, // is an animation frame pending?
  18977. timeout = 0, // is a timeout pending?
  18978. interval = 0, // are any timers active?
  18979. pokeDelay = 1000, // how frequently we check for clock skew
  18980. taskHead,
  18981. taskTail,
  18982. clockLast = 0,
  18983. clockNow = 0,
  18984. clockSkew = 0,
  18985. clock = typeof performance === "object" && performance.now ? performance : Date,
  18986. setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
  18987. function now() {
  18988. return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
  18989. }
  18990. function clearNow() {
  18991. clockNow = 0;
  18992. }
  18993. function Timer() {
  18994. this._call =
  18995. this._time =
  18996. this._next = null;
  18997. }
  18998. Timer.prototype = timer.prototype = {
  18999. constructor: Timer,
  19000. restart: function(callback, delay, time) {
  19001. if (typeof callback !== "function") throw new TypeError("callback is not a function");
  19002. time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
  19003. if (!this._next && taskTail !== this) {
  19004. if (taskTail) taskTail._next = this;
  19005. else taskHead = this;
  19006. taskTail = this;
  19007. }
  19008. this._call = callback;
  19009. this._time = time;
  19010. sleep();
  19011. },
  19012. stop: function() {
  19013. if (this._call) {
  19014. this._call = null;
  19015. this._time = Infinity;
  19016. sleep();
  19017. }
  19018. }
  19019. };
  19020. function timer(callback, delay, time) {
  19021. var t = new Timer;
  19022. t.restart(callback, delay, time);
  19023. return t;
  19024. }
  19025. function timerFlush() {
  19026. now(); // Get the current time, if not already set.
  19027. ++frame; // Pretend we’ve set an alarm, if we haven’t already.
  19028. var t = taskHead, e;
  19029. while (t) {
  19030. if ((e = clockNow - t._time) >= 0) t._call.call(null, e);
  19031. t = t._next;
  19032. }
  19033. --frame;
  19034. }
  19035. function wake() {
  19036. clockNow = (clockLast = clock.now()) + clockSkew;
  19037. frame = timeout = 0;
  19038. try {
  19039. timerFlush();
  19040. } finally {
  19041. frame = 0;
  19042. nap();
  19043. clockNow = 0;
  19044. }
  19045. }
  19046. function poke() {
  19047. var now = clock.now(), delay = now - clockLast;
  19048. if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
  19049. }
  19050. function nap() {
  19051. var t0, t1 = taskHead, t2, time = Infinity;
  19052. while (t1) {
  19053. if (t1._call) {
  19054. if (time > t1._time) time = t1._time;
  19055. t0 = t1, t1 = t1._next;
  19056. } else {
  19057. t2 = t1._next, t1._next = null;
  19058. t1 = t0 ? t0._next = t2 : taskHead = t2;
  19059. }
  19060. }
  19061. taskTail = t0;
  19062. sleep(time);
  19063. }
  19064. function sleep(time) {
  19065. if (frame) return; // Soonest alarm already set, or will be.
  19066. if (timeout) timeout = clearTimeout(timeout);
  19067. var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
  19068. if (delay > 24) {
  19069. if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
  19070. if (interval) interval = clearInterval(interval);
  19071. } else {
  19072. if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
  19073. frame = 1, setFrame(wake);
  19074. }
  19075. }
  19076. /***/ }),
  19077. /***/ "./node_modules/d3-transition/src/active.js":
  19078. /*!**************************************************!*\
  19079. !*** ./node_modules/d3-transition/src/active.js ***!
  19080. \**************************************************/
  19081. /*! exports provided: default */
  19082. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19083. "use strict";
  19084. __webpack_require__.r(__webpack_exports__);
  19085. /* harmony import */ var _transition_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transition/index */ "./node_modules/d3-transition/src/transition/index.js");
  19086. /* harmony import */ var _transition_schedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transition/schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19087. var root = [null];
  19088. /* harmony default export */ __webpack_exports__["default"] = (function(node, name) {
  19089. var schedules = node.__transition,
  19090. schedule,
  19091. i;
  19092. if (schedules) {
  19093. name = name == null ? null : name + "";
  19094. for (i in schedules) {
  19095. if ((schedule = schedules[i]).state > _transition_schedule__WEBPACK_IMPORTED_MODULE_1__["SCHEDULED"] && schedule.name === name) {
  19096. return new _transition_index__WEBPACK_IMPORTED_MODULE_0__["Transition"]([[node]], root, name, +i);
  19097. }
  19098. }
  19099. }
  19100. return null;
  19101. });
  19102. /***/ }),
  19103. /***/ "./node_modules/d3-transition/src/index.js":
  19104. /*!*************************************************!*\
  19105. !*** ./node_modules/d3-transition/src/index.js ***!
  19106. \*************************************************/
  19107. /*! exports provided: transition, active, interrupt */
  19108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19109. "use strict";
  19110. __webpack_require__.r(__webpack_exports__);
  19111. /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-transition/src/selection/index.js");
  19112. /* harmony import */ var _transition_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transition/index */ "./node_modules/d3-transition/src/transition/index.js");
  19113. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return _transition_index__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  19114. /* harmony import */ var _active__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./active */ "./node_modules/d3-transition/src/active.js");
  19115. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "active", function() { return _active__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  19116. /* harmony import */ var _interrupt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interrupt */ "./node_modules/d3-transition/src/interrupt.js");
  19117. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interrupt", function() { return _interrupt__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  19118. /***/ }),
  19119. /***/ "./node_modules/d3-transition/src/interrupt.js":
  19120. /*!*****************************************************!*\
  19121. !*** ./node_modules/d3-transition/src/interrupt.js ***!
  19122. \*****************************************************/
  19123. /*! exports provided: default */
  19124. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19125. "use strict";
  19126. __webpack_require__.r(__webpack_exports__);
  19127. /* harmony import */ var _transition_schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transition/schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19128. /* harmony default export */ __webpack_exports__["default"] = (function(node, name) {
  19129. var schedules = node.__transition,
  19130. schedule,
  19131. active,
  19132. empty = true,
  19133. i;
  19134. if (!schedules) return;
  19135. name = name == null ? null : name + "";
  19136. for (i in schedules) {
  19137. if ((schedule = schedules[i]).name !== name) { empty = false; continue; }
  19138. active = schedule.state > _transition_schedule__WEBPACK_IMPORTED_MODULE_0__["STARTING"] && schedule.state < _transition_schedule__WEBPACK_IMPORTED_MODULE_0__["ENDING"];
  19139. schedule.state = _transition_schedule__WEBPACK_IMPORTED_MODULE_0__["ENDED"];
  19140. schedule.timer.stop();
  19141. if (active) schedule.on.call("interrupt", node, node.__data__, schedule.index, schedule.group);
  19142. delete schedules[i];
  19143. }
  19144. if (empty) delete node.__transition;
  19145. });
  19146. /***/ }),
  19147. /***/ "./node_modules/d3-transition/src/selection/index.js":
  19148. /*!***********************************************************!*\
  19149. !*** ./node_modules/d3-transition/src/selection/index.js ***!
  19150. \***********************************************************/
  19151. /*! no exports provided */
  19152. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19153. "use strict";
  19154. __webpack_require__.r(__webpack_exports__);
  19155. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19156. /* harmony import */ var _interrupt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interrupt */ "./node_modules/d3-transition/src/selection/interrupt.js");
  19157. /* harmony import */ var _transition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transition */ "./node_modules/d3-transition/src/selection/transition.js");
  19158. d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.interrupt = _interrupt__WEBPACK_IMPORTED_MODULE_1__["default"];
  19159. d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.transition = _transition__WEBPACK_IMPORTED_MODULE_2__["default"];
  19160. /***/ }),
  19161. /***/ "./node_modules/d3-transition/src/selection/interrupt.js":
  19162. /*!***************************************************************!*\
  19163. !*** ./node_modules/d3-transition/src/selection/interrupt.js ***!
  19164. \***************************************************************/
  19165. /*! exports provided: default */
  19166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19167. "use strict";
  19168. __webpack_require__.r(__webpack_exports__);
  19169. /* harmony import */ var _interrupt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../interrupt */ "./node_modules/d3-transition/src/interrupt.js");
  19170. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  19171. return this.each(function() {
  19172. Object(_interrupt__WEBPACK_IMPORTED_MODULE_0__["default"])(this, name);
  19173. });
  19174. });
  19175. /***/ }),
  19176. /***/ "./node_modules/d3-transition/src/selection/transition.js":
  19177. /*!****************************************************************!*\
  19178. !*** ./node_modules/d3-transition/src/selection/transition.js ***!
  19179. \****************************************************************/
  19180. /*! exports provided: default */
  19181. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19182. "use strict";
  19183. __webpack_require__.r(__webpack_exports__);
  19184. /* harmony import */ var _transition_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../transition/index */ "./node_modules/d3-transition/src/transition/index.js");
  19185. /* harmony import */ var _transition_schedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../transition/schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19186. /* harmony import */ var d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-ease */ "./node_modules/d3-ease/src/index.js");
  19187. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  19188. var defaultTiming = {
  19189. time: null, // Set on use.
  19190. delay: 0,
  19191. duration: 250,
  19192. ease: d3_ease__WEBPACK_IMPORTED_MODULE_2__["easeCubicInOut"]
  19193. };
  19194. function inherit(node, id) {
  19195. var timing;
  19196. while (!(timing = node.__transition) || !(timing = timing[id])) {
  19197. if (!(node = node.parentNode)) {
  19198. return defaultTiming.time = Object(d3_timer__WEBPACK_IMPORTED_MODULE_3__["now"])(), defaultTiming;
  19199. }
  19200. }
  19201. return timing;
  19202. }
  19203. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  19204. var id,
  19205. timing;
  19206. if (name instanceof _transition_index__WEBPACK_IMPORTED_MODULE_0__["Transition"]) {
  19207. id = name._id, name = name._name;
  19208. } else {
  19209. id = Object(_transition_index__WEBPACK_IMPORTED_MODULE_0__["newId"])(), (timing = defaultTiming).time = Object(d3_timer__WEBPACK_IMPORTED_MODULE_3__["now"])(), name = name == null ? null : name + "";
  19210. }
  19211. for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
  19212. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  19213. if (node = group[i]) {
  19214. Object(_transition_schedule__WEBPACK_IMPORTED_MODULE_1__["default"])(node, name, id, i, group, timing || inherit(node, id));
  19215. }
  19216. }
  19217. }
  19218. return new _transition_index__WEBPACK_IMPORTED_MODULE_0__["Transition"](groups, this._parents, name, id);
  19219. });
  19220. /***/ }),
  19221. /***/ "./node_modules/d3-transition/src/transition/attr.js":
  19222. /*!***********************************************************!*\
  19223. !*** ./node_modules/d3-transition/src/transition/attr.js ***!
  19224. \***********************************************************/
  19225. /*! exports provided: default */
  19226. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19227. "use strict";
  19228. __webpack_require__.r(__webpack_exports__);
  19229. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  19230. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19231. /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js");
  19232. /* harmony import */ var _interpolate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interpolate */ "./node_modules/d3-transition/src/transition/interpolate.js");
  19233. function attrRemove(name) {
  19234. return function() {
  19235. this.removeAttribute(name);
  19236. };
  19237. }
  19238. function attrRemoveNS(fullname) {
  19239. return function() {
  19240. this.removeAttributeNS(fullname.space, fullname.local);
  19241. };
  19242. }
  19243. function attrConstant(name, interpolate, value1) {
  19244. var value00,
  19245. interpolate0;
  19246. return function() {
  19247. var value0 = this.getAttribute(name);
  19248. return value0 === value1 ? null
  19249. : value0 === value00 ? interpolate0
  19250. : interpolate0 = interpolate(value00 = value0, value1);
  19251. };
  19252. }
  19253. function attrConstantNS(fullname, interpolate, value1) {
  19254. var value00,
  19255. interpolate0;
  19256. return function() {
  19257. var value0 = this.getAttributeNS(fullname.space, fullname.local);
  19258. return value0 === value1 ? null
  19259. : value0 === value00 ? interpolate0
  19260. : interpolate0 = interpolate(value00 = value0, value1);
  19261. };
  19262. }
  19263. function attrFunction(name, interpolate, value) {
  19264. var value00,
  19265. value10,
  19266. interpolate0;
  19267. return function() {
  19268. var value0, value1 = value(this);
  19269. if (value1 == null) return void this.removeAttribute(name);
  19270. value0 = this.getAttribute(name);
  19271. return value0 === value1 ? null
  19272. : value0 === value00 && value1 === value10 ? interpolate0
  19273. : interpolate0 = interpolate(value00 = value0, value10 = value1);
  19274. };
  19275. }
  19276. function attrFunctionNS(fullname, interpolate, value) {
  19277. var value00,
  19278. value10,
  19279. interpolate0;
  19280. return function() {
  19281. var value0, value1 = value(this);
  19282. if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);
  19283. value0 = this.getAttributeNS(fullname.space, fullname.local);
  19284. return value0 === value1 ? null
  19285. : value0 === value00 && value1 === value10 ? interpolate0
  19286. : interpolate0 = interpolate(value00 = value0, value10 = value1);
  19287. };
  19288. }
  19289. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  19290. var fullname = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["namespace"])(name), i = fullname === "transform" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateTransformSvg"] : _interpolate__WEBPACK_IMPORTED_MODULE_3__["default"];
  19291. return this.attrTween(name, typeof value === "function"
  19292. ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, Object(_tween__WEBPACK_IMPORTED_MODULE_2__["tweenValue"])(this, "attr." + name, value))
  19293. : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)
  19294. : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value + ""));
  19295. });
  19296. /***/ }),
  19297. /***/ "./node_modules/d3-transition/src/transition/attrTween.js":
  19298. /*!****************************************************************!*\
  19299. !*** ./node_modules/d3-transition/src/transition/attrTween.js ***!
  19300. \****************************************************************/
  19301. /*! exports provided: default */
  19302. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19303. "use strict";
  19304. __webpack_require__.r(__webpack_exports__);
  19305. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19306. function attrTweenNS(fullname, value) {
  19307. function tween() {
  19308. var node = this, i = value.apply(node, arguments);
  19309. return i && function(t) {
  19310. node.setAttributeNS(fullname.space, fullname.local, i(t));
  19311. };
  19312. }
  19313. tween._value = value;
  19314. return tween;
  19315. }
  19316. function attrTween(name, value) {
  19317. function tween() {
  19318. var node = this, i = value.apply(node, arguments);
  19319. return i && function(t) {
  19320. node.setAttribute(name, i(t));
  19321. };
  19322. }
  19323. tween._value = value;
  19324. return tween;
  19325. }
  19326. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  19327. var key = "attr." + name;
  19328. if (arguments.length < 2) return (key = this.tween(key)) && key._value;
  19329. if (value == null) return this.tween(key, null);
  19330. if (typeof value !== "function") throw new Error;
  19331. var fullname = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["namespace"])(name);
  19332. return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
  19333. });
  19334. /***/ }),
  19335. /***/ "./node_modules/d3-transition/src/transition/delay.js":
  19336. /*!************************************************************!*\
  19337. !*** ./node_modules/d3-transition/src/transition/delay.js ***!
  19338. \************************************************************/
  19339. /*! exports provided: default */
  19340. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19341. "use strict";
  19342. __webpack_require__.r(__webpack_exports__);
  19343. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19344. function delayFunction(id, value) {
  19345. return function() {
  19346. Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["init"])(this, id).delay = +value.apply(this, arguments);
  19347. };
  19348. }
  19349. function delayConstant(id, value) {
  19350. return value = +value, function() {
  19351. Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["init"])(this, id).delay = value;
  19352. };
  19353. }
  19354. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  19355. var id = this._id;
  19356. return arguments.length
  19357. ? this.each((typeof value === "function"
  19358. ? delayFunction
  19359. : delayConstant)(id, value))
  19360. : Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).delay;
  19361. });
  19362. /***/ }),
  19363. /***/ "./node_modules/d3-transition/src/transition/duration.js":
  19364. /*!***************************************************************!*\
  19365. !*** ./node_modules/d3-transition/src/transition/duration.js ***!
  19366. \***************************************************************/
  19367. /*! exports provided: default */
  19368. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19369. "use strict";
  19370. __webpack_require__.r(__webpack_exports__);
  19371. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19372. function durationFunction(id, value) {
  19373. return function() {
  19374. Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).duration = +value.apply(this, arguments);
  19375. };
  19376. }
  19377. function durationConstant(id, value) {
  19378. return value = +value, function() {
  19379. Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).duration = value;
  19380. };
  19381. }
  19382. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  19383. var id = this._id;
  19384. return arguments.length
  19385. ? this.each((typeof value === "function"
  19386. ? durationFunction
  19387. : durationConstant)(id, value))
  19388. : Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).duration;
  19389. });
  19390. /***/ }),
  19391. /***/ "./node_modules/d3-transition/src/transition/ease.js":
  19392. /*!***********************************************************!*\
  19393. !*** ./node_modules/d3-transition/src/transition/ease.js ***!
  19394. \***********************************************************/
  19395. /*! exports provided: default */
  19396. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19397. "use strict";
  19398. __webpack_require__.r(__webpack_exports__);
  19399. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19400. function easeConstant(id, value) {
  19401. if (typeof value !== "function") throw new Error;
  19402. return function() {
  19403. Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).ease = value;
  19404. };
  19405. }
  19406. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  19407. var id = this._id;
  19408. return arguments.length
  19409. ? this.each(easeConstant(id, value))
  19410. : Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).ease;
  19411. });
  19412. /***/ }),
  19413. /***/ "./node_modules/d3-transition/src/transition/filter.js":
  19414. /*!*************************************************************!*\
  19415. !*** ./node_modules/d3-transition/src/transition/filter.js ***!
  19416. \*************************************************************/
  19417. /*! exports provided: default */
  19418. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19419. "use strict";
  19420. __webpack_require__.r(__webpack_exports__);
  19421. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19422. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js");
  19423. /* harmony default export */ __webpack_exports__["default"] = (function(match) {
  19424. if (typeof match !== "function") match = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["matcher"])(match);
  19425. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  19426. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
  19427. if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
  19428. subgroup.push(node);
  19429. }
  19430. }
  19431. }
  19432. return new _index__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, this._parents, this._name, this._id);
  19433. });
  19434. /***/ }),
  19435. /***/ "./node_modules/d3-transition/src/transition/index.js":
  19436. /*!************************************************************!*\
  19437. !*** ./node_modules/d3-transition/src/transition/index.js ***!
  19438. \************************************************************/
  19439. /*! exports provided: Transition, default, newId */
  19440. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19441. "use strict";
  19442. __webpack_require__.r(__webpack_exports__);
  19443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Transition", function() { return Transition; });
  19444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return transition; });
  19445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "newId", function() { return newId; });
  19446. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19447. /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./attr */ "./node_modules/d3-transition/src/transition/attr.js");
  19448. /* harmony import */ var _attrTween__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./attrTween */ "./node_modules/d3-transition/src/transition/attrTween.js");
  19449. /* harmony import */ var _delay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./delay */ "./node_modules/d3-transition/src/transition/delay.js");
  19450. /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-transition/src/transition/duration.js");
  19451. /* harmony import */ var _ease__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ease */ "./node_modules/d3-transition/src/transition/ease.js");
  19452. /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./filter */ "./node_modules/d3-transition/src/transition/filter.js");
  19453. /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-transition/src/transition/merge.js");
  19454. /* harmony import */ var _on__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./on */ "./node_modules/d3-transition/src/transition/on.js");
  19455. /* harmony import */ var _remove__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./remove */ "./node_modules/d3-transition/src/transition/remove.js");
  19456. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select */ "./node_modules/d3-transition/src/transition/select.js");
  19457. /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-transition/src/transition/selectAll.js");
  19458. /* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./selection */ "./node_modules/d3-transition/src/transition/selection.js");
  19459. /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./style */ "./node_modules/d3-transition/src/transition/style.js");
  19460. /* harmony import */ var _styleTween__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./styleTween */ "./node_modules/d3-transition/src/transition/styleTween.js");
  19461. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./text */ "./node_modules/d3-transition/src/transition/text.js");
  19462. /* harmony import */ var _transition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./transition */ "./node_modules/d3-transition/src/transition/transition.js");
  19463. /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js");
  19464. var id = 0;
  19465. function Transition(groups, parents, name, id) {
  19466. this._groups = groups;
  19467. this._parents = parents;
  19468. this._name = name;
  19469. this._id = id;
  19470. }
  19471. function transition(name) {
  19472. return Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"])().transition(name);
  19473. }
  19474. function newId() {
  19475. return ++id;
  19476. }
  19477. var selection_prototype = d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype;
  19478. Transition.prototype = transition.prototype = {
  19479. constructor: Transition,
  19480. select: _select__WEBPACK_IMPORTED_MODULE_10__["default"],
  19481. selectAll: _selectAll__WEBPACK_IMPORTED_MODULE_11__["default"],
  19482. filter: _filter__WEBPACK_IMPORTED_MODULE_6__["default"],
  19483. merge: _merge__WEBPACK_IMPORTED_MODULE_7__["default"],
  19484. selection: _selection__WEBPACK_IMPORTED_MODULE_12__["default"],
  19485. transition: _transition__WEBPACK_IMPORTED_MODULE_16__["default"],
  19486. call: selection_prototype.call,
  19487. nodes: selection_prototype.nodes,
  19488. node: selection_prototype.node,
  19489. size: selection_prototype.size,
  19490. empty: selection_prototype.empty,
  19491. each: selection_prototype.each,
  19492. on: _on__WEBPACK_IMPORTED_MODULE_8__["default"],
  19493. attr: _attr__WEBPACK_IMPORTED_MODULE_1__["default"],
  19494. attrTween: _attrTween__WEBPACK_IMPORTED_MODULE_2__["default"],
  19495. style: _style__WEBPACK_IMPORTED_MODULE_13__["default"],
  19496. styleTween: _styleTween__WEBPACK_IMPORTED_MODULE_14__["default"],
  19497. text: _text__WEBPACK_IMPORTED_MODULE_15__["default"],
  19498. remove: _remove__WEBPACK_IMPORTED_MODULE_9__["default"],
  19499. tween: _tween__WEBPACK_IMPORTED_MODULE_17__["default"],
  19500. delay: _delay__WEBPACK_IMPORTED_MODULE_3__["default"],
  19501. duration: _duration__WEBPACK_IMPORTED_MODULE_4__["default"],
  19502. ease: _ease__WEBPACK_IMPORTED_MODULE_5__["default"]
  19503. };
  19504. /***/ }),
  19505. /***/ "./node_modules/d3-transition/src/transition/interpolate.js":
  19506. /*!******************************************************************!*\
  19507. !*** ./node_modules/d3-transition/src/transition/interpolate.js ***!
  19508. \******************************************************************/
  19509. /*! exports provided: default */
  19510. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19511. "use strict";
  19512. __webpack_require__.r(__webpack_exports__);
  19513. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  19514. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  19515. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  19516. var c;
  19517. return (typeof b === "number" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]
  19518. : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_0__["color"] ? d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRgb"]
  19519. : (c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["color"])(b)) ? (b = c, d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRgb"])
  19520. : d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateString"])(a, b);
  19521. });
  19522. /***/ }),
  19523. /***/ "./node_modules/d3-transition/src/transition/merge.js":
  19524. /*!************************************************************!*\
  19525. !*** ./node_modules/d3-transition/src/transition/merge.js ***!
  19526. \************************************************************/
  19527. /*! exports provided: default */
  19528. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19529. "use strict";
  19530. __webpack_require__.r(__webpack_exports__);
  19531. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js");
  19532. /* harmony default export */ __webpack_exports__["default"] = (function(transition) {
  19533. if (transition._id !== this._id) throw new Error;
  19534. for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
  19535. for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
  19536. if (node = group0[i] || group1[i]) {
  19537. merge[i] = node;
  19538. }
  19539. }
  19540. }
  19541. for (; j < m0; ++j) {
  19542. merges[j] = groups0[j];
  19543. }
  19544. return new _index__WEBPACK_IMPORTED_MODULE_0__["Transition"](merges, this._parents, this._name, this._id);
  19545. });
  19546. /***/ }),
  19547. /***/ "./node_modules/d3-transition/src/transition/on.js":
  19548. /*!*********************************************************!*\
  19549. !*** ./node_modules/d3-transition/src/transition/on.js ***!
  19550. \*********************************************************/
  19551. /*! exports provided: default */
  19552. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19553. "use strict";
  19554. __webpack_require__.r(__webpack_exports__);
  19555. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19556. function start(name) {
  19557. return (name + "").trim().split(/^|\s+/).every(function(t) {
  19558. var i = t.indexOf(".");
  19559. if (i >= 0) t = t.slice(0, i);
  19560. return !t || t === "start";
  19561. });
  19562. }
  19563. function onFunction(id, name, listener) {
  19564. var on0, on1, sit = start(name) ? _schedule__WEBPACK_IMPORTED_MODULE_0__["init"] : _schedule__WEBPACK_IMPORTED_MODULE_0__["set"];
  19565. return function() {
  19566. var schedule = sit(this, id),
  19567. on = schedule.on;
  19568. // If this node shared a dispatch with the previous node,
  19569. // just assign the updated shared dispatch and we’re done!
  19570. // Otherwise, copy-on-write.
  19571. if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
  19572. schedule.on = on1;
  19573. };
  19574. }
  19575. /* harmony default export */ __webpack_exports__["default"] = (function(name, listener) {
  19576. var id = this._id;
  19577. return arguments.length < 2
  19578. ? Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).on.on(name)
  19579. : this.each(onFunction(id, name, listener));
  19580. });
  19581. /***/ }),
  19582. /***/ "./node_modules/d3-transition/src/transition/remove.js":
  19583. /*!*************************************************************!*\
  19584. !*** ./node_modules/d3-transition/src/transition/remove.js ***!
  19585. \*************************************************************/
  19586. /*! exports provided: default */
  19587. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19588. "use strict";
  19589. __webpack_require__.r(__webpack_exports__);
  19590. function removeFunction(id) {
  19591. return function() {
  19592. var parent = this.parentNode;
  19593. for (var i in this.__transition) if (+i !== id) return;
  19594. if (parent) parent.removeChild(this);
  19595. };
  19596. }
  19597. /* harmony default export */ __webpack_exports__["default"] = (function() {
  19598. return this.on("end.remove", removeFunction(this._id));
  19599. });
  19600. /***/ }),
  19601. /***/ "./node_modules/d3-transition/src/transition/schedule.js":
  19602. /*!***************************************************************!*\
  19603. !*** ./node_modules/d3-transition/src/transition/schedule.js ***!
  19604. \***************************************************************/
  19605. /*! exports provided: CREATED, SCHEDULED, STARTING, STARTED, RUNNING, ENDING, ENDED, default, init, set, get */
  19606. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19607. "use strict";
  19608. __webpack_require__.r(__webpack_exports__);
  19609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREATED", function() { return CREATED; });
  19610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCHEDULED", function() { return SCHEDULED; });
  19611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STARTING", function() { return STARTING; });
  19612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STARTED", function() { return STARTED; });
  19613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RUNNING", function() { return RUNNING; });
  19614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDING", function() { return ENDING; });
  19615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDED", function() { return ENDED; });
  19616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; });
  19617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "set", function() { return set; });
  19618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
  19619. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  19620. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  19621. var emptyOn = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "end", "interrupt");
  19622. var emptyTween = [];
  19623. var CREATED = 0;
  19624. var SCHEDULED = 1;
  19625. var STARTING = 2;
  19626. var STARTED = 3;
  19627. var RUNNING = 4;
  19628. var ENDING = 5;
  19629. var ENDED = 6;
  19630. /* harmony default export */ __webpack_exports__["default"] = (function(node, name, id, index, group, timing) {
  19631. var schedules = node.__transition;
  19632. if (!schedules) node.__transition = {};
  19633. else if (id in schedules) return;
  19634. create(node, id, {
  19635. name: name,
  19636. index: index, // For context during callback.
  19637. group: group, // For context during callback.
  19638. on: emptyOn,
  19639. tween: emptyTween,
  19640. time: timing.time,
  19641. delay: timing.delay,
  19642. duration: timing.duration,
  19643. ease: timing.ease,
  19644. timer: null,
  19645. state: CREATED
  19646. });
  19647. });
  19648. function init(node, id) {
  19649. var schedule = get(node, id);
  19650. if (schedule.state > CREATED) throw new Error("too late; already scheduled");
  19651. return schedule;
  19652. }
  19653. function set(node, id) {
  19654. var schedule = get(node, id);
  19655. if (schedule.state > STARTING) throw new Error("too late; already started");
  19656. return schedule;
  19657. }
  19658. function get(node, id) {
  19659. var schedule = node.__transition;
  19660. if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found");
  19661. return schedule;
  19662. }
  19663. function create(node, id, self) {
  19664. var schedules = node.__transition,
  19665. tween;
  19666. // Initialize the self timer when the transition is created.
  19667. // Note the actual delay is not known until the first callback!
  19668. schedules[id] = self;
  19669. self.timer = Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timer"])(schedule, 0, self.time);
  19670. function schedule(elapsed) {
  19671. self.state = SCHEDULED;
  19672. self.timer.restart(start, self.delay, self.time);
  19673. // If the elapsed delay is less than our first sleep, start immediately.
  19674. if (self.delay <= elapsed) start(elapsed - self.delay);
  19675. }
  19676. function start(elapsed) {
  19677. var i, j, n, o;
  19678. // If the state is not SCHEDULED, then we previously errored on start.
  19679. if (self.state !== SCHEDULED) return stop();
  19680. for (i in schedules) {
  19681. o = schedules[i];
  19682. if (o.name !== self.name) continue;
  19683. // While this element already has a starting transition during this frame,
  19684. // defer starting an interrupting transition until that transition has a
  19685. // chance to tick (and possibly end); see d3/d3-transition#54!
  19686. if (o.state === STARTED) return Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timeout"])(start);
  19687. // Interrupt the active transition, if any.
  19688. // Dispatch the interrupt event.
  19689. if (o.state === RUNNING) {
  19690. o.state = ENDED;
  19691. o.timer.stop();
  19692. o.on.call("interrupt", node, node.__data__, o.index, o.group);
  19693. delete schedules[i];
  19694. }
  19695. // Cancel any pre-empted transitions. No interrupt event is dispatched
  19696. // because the cancelled transitions never started. Note that this also
  19697. // removes this transition from the pending list!
  19698. else if (+i < id) {
  19699. o.state = ENDED;
  19700. o.timer.stop();
  19701. delete schedules[i];
  19702. }
  19703. }
  19704. // Defer the first tick to end of the current frame; see d3/d3#1576.
  19705. // Note the transition may be canceled after start and before the first tick!
  19706. // Note this must be scheduled before the start event; see d3/d3-transition#16!
  19707. // Assuming this is successful, subsequent callbacks go straight to tick.
  19708. Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timeout"])(function() {
  19709. if (self.state === STARTED) {
  19710. self.state = RUNNING;
  19711. self.timer.restart(tick, self.delay, self.time);
  19712. tick(elapsed);
  19713. }
  19714. });
  19715. // Dispatch the start event.
  19716. // Note this must be done before the tween are initialized.
  19717. self.state = STARTING;
  19718. self.on.call("start", node, node.__data__, self.index, self.group);
  19719. if (self.state !== STARTING) return; // interrupted
  19720. self.state = STARTED;
  19721. // Initialize the tween, deleting null tween.
  19722. tween = new Array(n = self.tween.length);
  19723. for (i = 0, j = -1; i < n; ++i) {
  19724. if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {
  19725. tween[++j] = o;
  19726. }
  19727. }
  19728. tween.length = j + 1;
  19729. }
  19730. function tick(elapsed) {
  19731. var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),
  19732. i = -1,
  19733. n = tween.length;
  19734. while (++i < n) {
  19735. tween[i].call(null, t);
  19736. }
  19737. // Dispatch the end event.
  19738. if (self.state === ENDING) {
  19739. self.on.call("end", node, node.__data__, self.index, self.group);
  19740. stop();
  19741. }
  19742. }
  19743. function stop() {
  19744. self.state = ENDED;
  19745. self.timer.stop();
  19746. delete schedules[id];
  19747. for (var i in schedules) return; // eslint-disable-line no-unused-vars
  19748. delete node.__transition;
  19749. }
  19750. }
  19751. /***/ }),
  19752. /***/ "./node_modules/d3-transition/src/transition/select.js":
  19753. /*!*************************************************************!*\
  19754. !*** ./node_modules/d3-transition/src/transition/select.js ***!
  19755. \*************************************************************/
  19756. /*! exports provided: default */
  19757. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19758. "use strict";
  19759. __webpack_require__.r(__webpack_exports__);
  19760. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19761. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js");
  19762. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19763. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  19764. var name = this._name,
  19765. id = this._id;
  19766. if (typeof select !== "function") select = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selector"])(select);
  19767. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  19768. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
  19769. if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
  19770. if ("__data__" in node) subnode.__data__ = node.__data__;
  19771. subgroup[i] = subnode;
  19772. Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["default"])(subgroup[i], name, id, i, subgroup, Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["get"])(node, id));
  19773. }
  19774. }
  19775. }
  19776. return new _index__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, this._parents, name, id);
  19777. });
  19778. /***/ }),
  19779. /***/ "./node_modules/d3-transition/src/transition/selectAll.js":
  19780. /*!****************************************************************!*\
  19781. !*** ./node_modules/d3-transition/src/transition/selectAll.js ***!
  19782. \****************************************************************/
  19783. /*! exports provided: default */
  19784. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19785. "use strict";
  19786. __webpack_require__.r(__webpack_exports__);
  19787. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19788. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js");
  19789. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19790. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  19791. var name = this._name,
  19792. id = this._id;
  19793. if (typeof select !== "function") select = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selectorAll"])(select);
  19794. for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
  19795. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  19796. if (node = group[i]) {
  19797. for (var children = select.call(node, node.__data__, i, group), child, inherit = Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["get"])(node, id), k = 0, l = children.length; k < l; ++k) {
  19798. if (child = children[k]) {
  19799. Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["default"])(child, name, id, k, children, inherit);
  19800. }
  19801. }
  19802. subgroups.push(children);
  19803. parents.push(node);
  19804. }
  19805. }
  19806. }
  19807. return new _index__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, parents, name, id);
  19808. });
  19809. /***/ }),
  19810. /***/ "./node_modules/d3-transition/src/transition/selection.js":
  19811. /*!****************************************************************!*\
  19812. !*** ./node_modules/d3-transition/src/transition/selection.js ***!
  19813. \****************************************************************/
  19814. /*! exports provided: default */
  19815. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19816. "use strict";
  19817. __webpack_require__.r(__webpack_exports__);
  19818. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19819. var Selection = d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.constructor;
  19820. /* harmony default export */ __webpack_exports__["default"] = (function() {
  19821. return new Selection(this._groups, this._parents);
  19822. });
  19823. /***/ }),
  19824. /***/ "./node_modules/d3-transition/src/transition/style.js":
  19825. /*!************************************************************!*\
  19826. !*** ./node_modules/d3-transition/src/transition/style.js ***!
  19827. \************************************************************/
  19828. /*! exports provided: default */
  19829. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19830. "use strict";
  19831. __webpack_require__.r(__webpack_exports__);
  19832. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  19833. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19834. /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js");
  19835. /* harmony import */ var _interpolate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interpolate */ "./node_modules/d3-transition/src/transition/interpolate.js");
  19836. function styleRemove(name, interpolate) {
  19837. var value00,
  19838. value10,
  19839. interpolate0;
  19840. return function() {
  19841. var value0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name),
  19842. value1 = (this.style.removeProperty(name), Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name));
  19843. return value0 === value1 ? null
  19844. : value0 === value00 && value1 === value10 ? interpolate0
  19845. : interpolate0 = interpolate(value00 = value0, value10 = value1);
  19846. };
  19847. }
  19848. function styleRemoveEnd(name) {
  19849. return function() {
  19850. this.style.removeProperty(name);
  19851. };
  19852. }
  19853. function styleConstant(name, interpolate, value1) {
  19854. var value00,
  19855. interpolate0;
  19856. return function() {
  19857. var value0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name);
  19858. return value0 === value1 ? null
  19859. : value0 === value00 ? interpolate0
  19860. : interpolate0 = interpolate(value00 = value0, value1);
  19861. };
  19862. }
  19863. function styleFunction(name, interpolate, value) {
  19864. var value00,
  19865. value10,
  19866. interpolate0;
  19867. return function() {
  19868. var value0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name),
  19869. value1 = value(this);
  19870. if (value1 == null) value1 = (this.style.removeProperty(name), Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name));
  19871. return value0 === value1 ? null
  19872. : value0 === value00 && value1 === value10 ? interpolate0
  19873. : interpolate0 = interpolate(value00 = value0, value10 = value1);
  19874. };
  19875. }
  19876. /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) {
  19877. var i = (name += "") === "transform" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateTransformCss"] : _interpolate__WEBPACK_IMPORTED_MODULE_3__["default"];
  19878. return value == null ? this
  19879. .styleTween(name, styleRemove(name, i))
  19880. .on("end.style." + name, styleRemoveEnd(name))
  19881. : this.styleTween(name, typeof value === "function"
  19882. ? styleFunction(name, i, Object(_tween__WEBPACK_IMPORTED_MODULE_2__["tweenValue"])(this, "style." + name, value))
  19883. : styleConstant(name, i, value + ""), priority);
  19884. });
  19885. /***/ }),
  19886. /***/ "./node_modules/d3-transition/src/transition/styleTween.js":
  19887. /*!*****************************************************************!*\
  19888. !*** ./node_modules/d3-transition/src/transition/styleTween.js ***!
  19889. \*****************************************************************/
  19890. /*! exports provided: default */
  19891. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19892. "use strict";
  19893. __webpack_require__.r(__webpack_exports__);
  19894. function styleTween(name, value, priority) {
  19895. function tween() {
  19896. var node = this, i = value.apply(node, arguments);
  19897. return i && function(t) {
  19898. node.style.setProperty(name, i(t), priority);
  19899. };
  19900. }
  19901. tween._value = value;
  19902. return tween;
  19903. }
  19904. /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) {
  19905. var key = "style." + (name += "");
  19906. if (arguments.length < 2) return (key = this.tween(key)) && key._value;
  19907. if (value == null) return this.tween(key, null);
  19908. if (typeof value !== "function") throw new Error;
  19909. return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
  19910. });
  19911. /***/ }),
  19912. /***/ "./node_modules/d3-transition/src/transition/text.js":
  19913. /*!***********************************************************!*\
  19914. !*** ./node_modules/d3-transition/src/transition/text.js ***!
  19915. \***********************************************************/
  19916. /*! exports provided: default */
  19917. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19918. "use strict";
  19919. __webpack_require__.r(__webpack_exports__);
  19920. /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js");
  19921. function textConstant(value) {
  19922. return function() {
  19923. this.textContent = value;
  19924. };
  19925. }
  19926. function textFunction(value) {
  19927. return function() {
  19928. var value1 = value(this);
  19929. this.textContent = value1 == null ? "" : value1;
  19930. };
  19931. }
  19932. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  19933. return this.tween("text", typeof value === "function"
  19934. ? textFunction(Object(_tween__WEBPACK_IMPORTED_MODULE_0__["tweenValue"])(this, "text", value))
  19935. : textConstant(value == null ? "" : value + ""));
  19936. });
  19937. /***/ }),
  19938. /***/ "./node_modules/d3-transition/src/transition/transition.js":
  19939. /*!*****************************************************************!*\
  19940. !*** ./node_modules/d3-transition/src/transition/transition.js ***!
  19941. \*****************************************************************/
  19942. /*! exports provided: default */
  19943. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19944. "use strict";
  19945. __webpack_require__.r(__webpack_exports__);
  19946. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js");
  19947. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19948. /* harmony default export */ __webpack_exports__["default"] = (function() {
  19949. var name = this._name,
  19950. id0 = this._id,
  19951. id1 = Object(_index__WEBPACK_IMPORTED_MODULE_0__["newId"])();
  19952. for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
  19953. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  19954. if (node = group[i]) {
  19955. var inherit = Object(_schedule__WEBPACK_IMPORTED_MODULE_1__["get"])(node, id0);
  19956. Object(_schedule__WEBPACK_IMPORTED_MODULE_1__["default"])(node, name, id1, i, group, {
  19957. time: inherit.time + inherit.delay + inherit.duration,
  19958. delay: 0,
  19959. duration: inherit.duration,
  19960. ease: inherit.ease
  19961. });
  19962. }
  19963. }
  19964. }
  19965. return new _index__WEBPACK_IMPORTED_MODULE_0__["Transition"](groups, this._parents, name, id1);
  19966. });
  19967. /***/ }),
  19968. /***/ "./node_modules/d3-transition/src/transition/tween.js":
  19969. /*!************************************************************!*\
  19970. !*** ./node_modules/d3-transition/src/transition/tween.js ***!
  19971. \************************************************************/
  19972. /*! exports provided: default, tweenValue */
  19973. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19974. "use strict";
  19975. __webpack_require__.r(__webpack_exports__);
  19976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tweenValue", function() { return tweenValue; });
  19977. /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js");
  19978. function tweenRemove(id, name) {
  19979. var tween0, tween1;
  19980. return function() {
  19981. var schedule = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id),
  19982. tween = schedule.tween;
  19983. // If this node shared tween with the previous node,
  19984. // just assign the updated shared tween and we’re done!
  19985. // Otherwise, copy-on-write.
  19986. if (tween !== tween0) {
  19987. tween1 = tween0 = tween;
  19988. for (var i = 0, n = tween1.length; i < n; ++i) {
  19989. if (tween1[i].name === name) {
  19990. tween1 = tween1.slice();
  19991. tween1.splice(i, 1);
  19992. break;
  19993. }
  19994. }
  19995. }
  19996. schedule.tween = tween1;
  19997. };
  19998. }
  19999. function tweenFunction(id, name, value) {
  20000. var tween0, tween1;
  20001. if (typeof value !== "function") throw new Error;
  20002. return function() {
  20003. var schedule = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id),
  20004. tween = schedule.tween;
  20005. // If this node shared tween with the previous node,
  20006. // just assign the updated shared tween and we’re done!
  20007. // Otherwise, copy-on-write.
  20008. if (tween !== tween0) {
  20009. tween1 = (tween0 = tween).slice();
  20010. for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {
  20011. if (tween1[i].name === name) {
  20012. tween1[i] = t;
  20013. break;
  20014. }
  20015. }
  20016. if (i === n) tween1.push(t);
  20017. }
  20018. schedule.tween = tween1;
  20019. };
  20020. }
  20021. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  20022. var id = this._id;
  20023. name += "";
  20024. if (arguments.length < 2) {
  20025. var tween = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).tween;
  20026. for (var i = 0, n = tween.length, t; i < n; ++i) {
  20027. if ((t = tween[i]).name === name) {
  20028. return t.value;
  20029. }
  20030. }
  20031. return null;
  20032. }
  20033. return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));
  20034. });
  20035. function tweenValue(transition, name, value) {
  20036. var id = transition._id;
  20037. transition.each(function() {
  20038. var schedule = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id);
  20039. (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);
  20040. });
  20041. return function(node) {
  20042. return Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(node, id).value[name];
  20043. };
  20044. }
  20045. /***/ }),
  20046. /***/ "./node_modules/d3-voronoi/src/Beach.js":
  20047. /*!**********************************************!*\
  20048. !*** ./node_modules/d3-voronoi/src/Beach.js ***!
  20049. \**********************************************/
  20050. /*! exports provided: removeBeach, addBeach */
  20051. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20052. "use strict";
  20053. __webpack_require__.r(__webpack_exports__);
  20054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeBeach", function() { return removeBeach; });
  20055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addBeach", function() { return addBeach; });
  20056. /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "./node_modules/d3-voronoi/src/RedBlackTree.js");
  20057. /* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "./node_modules/d3-voronoi/src/Cell.js");
  20058. /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Circle */ "./node_modules/d3-voronoi/src/Circle.js");
  20059. /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Edge */ "./node_modules/d3-voronoi/src/Edge.js");
  20060. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20061. var beachPool = [];
  20062. function Beach() {
  20063. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(this);
  20064. this.edge =
  20065. this.site =
  20066. this.circle = null;
  20067. }
  20068. function createBeach(site) {
  20069. var beach = beachPool.pop() || new Beach;
  20070. beach.site = site;
  20071. return beach;
  20072. }
  20073. function detachBeach(beach) {
  20074. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(beach);
  20075. _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].remove(beach);
  20076. beachPool.push(beach);
  20077. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(beach);
  20078. }
  20079. function removeBeach(beach) {
  20080. var circle = beach.circle,
  20081. x = circle.x,
  20082. y = circle.cy,
  20083. vertex = [x, y],
  20084. previous = beach.P,
  20085. next = beach.N,
  20086. disappearing = [beach];
  20087. detachBeach(beach);
  20088. var lArc = previous;
  20089. while (lArc.circle
  20090. && Math.abs(x - lArc.circle.x) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]
  20091. && Math.abs(y - lArc.circle.cy) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20092. previous = lArc.P;
  20093. disappearing.unshift(lArc);
  20094. detachBeach(lArc);
  20095. lArc = previous;
  20096. }
  20097. disappearing.unshift(lArc);
  20098. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc);
  20099. var rArc = next;
  20100. while (rArc.circle
  20101. && Math.abs(x - rArc.circle.x) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]
  20102. && Math.abs(y - rArc.circle.cy) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20103. next = rArc.N;
  20104. disappearing.push(rArc);
  20105. detachBeach(rArc);
  20106. rArc = next;
  20107. }
  20108. disappearing.push(rArc);
  20109. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(rArc);
  20110. var nArcs = disappearing.length,
  20111. iArc;
  20112. for (iArc = 1; iArc < nArcs; ++iArc) {
  20113. rArc = disappearing[iArc];
  20114. lArc = disappearing[iArc - 1];
  20115. Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["setEdgeEnd"])(rArc.edge, lArc.site, rArc.site, vertex);
  20116. }
  20117. lArc = disappearing[0];
  20118. rArc = disappearing[nArcs - 1];
  20119. rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, rArc.site, null, vertex);
  20120. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc);
  20121. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc);
  20122. }
  20123. function addBeach(site) {
  20124. var x = site[0],
  20125. directrix = site[1],
  20126. lArc,
  20127. rArc,
  20128. dxl,
  20129. dxr,
  20130. node = _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"]._;
  20131. while (node) {
  20132. dxl = leftBreakPoint(node, directrix) - x;
  20133. if (dxl > _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) node = node.L; else {
  20134. dxr = x - rightBreakPoint(node, directrix);
  20135. if (dxr > _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20136. if (!node.R) {
  20137. lArc = node;
  20138. break;
  20139. }
  20140. node = node.R;
  20141. } else {
  20142. if (dxl > -_Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20143. lArc = node.P;
  20144. rArc = node;
  20145. } else if (dxr > -_Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20146. lArc = node;
  20147. rArc = node.N;
  20148. } else {
  20149. lArc = rArc = node;
  20150. }
  20151. break;
  20152. }
  20153. }
  20154. }
  20155. Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["createCell"])(site);
  20156. var newArc = createBeach(site);
  20157. _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].insert(lArc, newArc);
  20158. if (!lArc && !rArc) return;
  20159. if (lArc === rArc) {
  20160. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc);
  20161. rArc = createBeach(lArc.site);
  20162. _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].insert(newArc, rArc);
  20163. newArc.edge = rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, newArc.site);
  20164. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc);
  20165. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc);
  20166. return;
  20167. }
  20168. if (!rArc) { // && lArc
  20169. newArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, newArc.site);
  20170. return;
  20171. }
  20172. // else lArc !== rArc
  20173. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc);
  20174. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(rArc);
  20175. var lSite = lArc.site,
  20176. ax = lSite[0],
  20177. ay = lSite[1],
  20178. bx = site[0] - ax,
  20179. by = site[1] - ay,
  20180. rSite = rArc.site,
  20181. cx = rSite[0] - ax,
  20182. cy = rSite[1] - ay,
  20183. d = 2 * (bx * cy - by * cx),
  20184. hb = bx * bx + by * by,
  20185. hc = cx * cx + cy * cy,
  20186. vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];
  20187. Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["setEdgeEnd"])(rArc.edge, lSite, rSite, vertex);
  20188. newArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lSite, site, null, vertex);
  20189. rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(site, rSite, null, vertex);
  20190. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc);
  20191. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc);
  20192. }
  20193. function leftBreakPoint(arc, directrix) {
  20194. var site = arc.site,
  20195. rfocx = site[0],
  20196. rfocy = site[1],
  20197. pby2 = rfocy - directrix;
  20198. if (!pby2) return rfocx;
  20199. var lArc = arc.P;
  20200. if (!lArc) return -Infinity;
  20201. site = lArc.site;
  20202. var lfocx = site[0],
  20203. lfocy = site[1],
  20204. plby2 = lfocy - directrix;
  20205. if (!plby2) return lfocx;
  20206. var hl = lfocx - rfocx,
  20207. aby2 = 1 / pby2 - 1 / plby2,
  20208. b = hl / plby2;
  20209. if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;
  20210. return (rfocx + lfocx) / 2;
  20211. }
  20212. function rightBreakPoint(arc, directrix) {
  20213. var rArc = arc.N;
  20214. if (rArc) return leftBreakPoint(rArc, directrix);
  20215. var site = arc.site;
  20216. return site[1] === directrix ? site[0] : Infinity;
  20217. }
  20218. /***/ }),
  20219. /***/ "./node_modules/d3-voronoi/src/Cell.js":
  20220. /*!*********************************************!*\
  20221. !*** ./node_modules/d3-voronoi/src/Cell.js ***!
  20222. \*********************************************/
  20223. /*! exports provided: createCell, cellHalfedgeStart, cellHalfedgeEnd, sortCellHalfedges, clipCells */
  20224. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20225. "use strict";
  20226. __webpack_require__.r(__webpack_exports__);
  20227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createCell", function() { return createCell; });
  20228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cellHalfedgeStart", function() { return cellHalfedgeStart; });
  20229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cellHalfedgeEnd", function() { return cellHalfedgeEnd; });
  20230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortCellHalfedges", function() { return sortCellHalfedges; });
  20231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipCells", function() { return clipCells; });
  20232. /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Edge */ "./node_modules/d3-voronoi/src/Edge.js");
  20233. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20234. function createCell(site) {
  20235. return _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][site.index] = {
  20236. site: site,
  20237. halfedges: []
  20238. };
  20239. }
  20240. function cellHalfedgeAngle(cell, edge) {
  20241. var site = cell.site,
  20242. va = edge.left,
  20243. vb = edge.right;
  20244. if (site === vb) vb = va, va = site;
  20245. if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);
  20246. if (site === va) va = edge[1], vb = edge[0];
  20247. else va = edge[0], vb = edge[1];
  20248. return Math.atan2(va[0] - vb[0], vb[1] - va[1]);
  20249. }
  20250. function cellHalfedgeStart(cell, edge) {
  20251. return edge[+(edge.left !== cell.site)];
  20252. }
  20253. function cellHalfedgeEnd(cell, edge) {
  20254. return edge[+(edge.left === cell.site)];
  20255. }
  20256. function sortCellHalfedges() {
  20257. for (var i = 0, n = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"].length, cell, halfedges, j, m; i < n; ++i) {
  20258. if ((cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][i]) && (m = (halfedges = cell.halfedges).length)) {
  20259. var index = new Array(m),
  20260. array = new Array(m);
  20261. for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[j]]);
  20262. index.sort(function(i, j) { return array[j] - array[i]; });
  20263. for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];
  20264. for (j = 0; j < m; ++j) halfedges[j] = array[j];
  20265. }
  20266. }
  20267. }
  20268. function clipCells(x0, y0, x1, y1) {
  20269. var nCells = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"].length,
  20270. iCell,
  20271. cell,
  20272. site,
  20273. iHalfedge,
  20274. halfedges,
  20275. nHalfedges,
  20276. start,
  20277. startX,
  20278. startY,
  20279. end,
  20280. endX,
  20281. endY,
  20282. cover = true;
  20283. for (iCell = 0; iCell < nCells; ++iCell) {
  20284. if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) {
  20285. site = cell.site;
  20286. halfedges = cell.halfedges;
  20287. iHalfedge = halfedges.length;
  20288. // Remove any dangling clipped edges.
  20289. while (iHalfedge--) {
  20290. if (!_Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[iHalfedge]]) {
  20291. halfedges.splice(iHalfedge, 1);
  20292. }
  20293. }
  20294. // Insert any border edges as necessary.
  20295. iHalfedge = 0, nHalfedges = halfedges.length;
  20296. while (iHalfedge < nHalfedges) {
  20297. end = cellHalfedgeEnd(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[iHalfedge]]), endX = end[0], endY = end[1];
  20298. start = cellHalfedgeStart(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];
  20299. if (Math.abs(endX - startX) > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] || Math.abs(endY - startY) > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) {
  20300. halfedges.splice(iHalfedge, 0, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, end,
  20301. Math.abs(endX - x0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && y1 - endY > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [x0, Math.abs(startX - x0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startY : y1]
  20302. : Math.abs(endY - y1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && x1 - endX > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [Math.abs(startY - y1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startX : x1, y1]
  20303. : Math.abs(endX - x1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && endY - y0 > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [x1, Math.abs(startX - x1) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startY : y0]
  20304. : Math.abs(endY - y0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && endX - x0 > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? [Math.abs(startY - y0) < _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? startX : x0, y0]
  20305. : null)) - 1);
  20306. ++nHalfedges;
  20307. }
  20308. }
  20309. if (nHalfedges) cover = false;
  20310. }
  20311. }
  20312. // If there weren’t any edges, have the closest site cover the extent.
  20313. // It doesn’t matter which corner of the extent we measure!
  20314. if (cover) {
  20315. var dx, dy, d2, dc = Infinity;
  20316. for (iCell = 0, cover = null; iCell < nCells; ++iCell) {
  20317. if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) {
  20318. site = cell.site;
  20319. dx = site[0] - x0;
  20320. dy = site[1] - y0;
  20321. d2 = dx * dx + dy * dy;
  20322. if (d2 < dc) dc = d2, cover = cell;
  20323. }
  20324. }
  20325. if (cover) {
  20326. var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];
  20327. cover.halfedges.push(
  20328. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site = cover.site, v00, v01)) - 1,
  20329. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v01, v11)) - 1,
  20330. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v11, v10)) - 1,
  20331. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v10, v00)) - 1
  20332. );
  20333. }
  20334. }
  20335. // Lastly delete any cells with no edges; these were entirely clipped.
  20336. for (iCell = 0; iCell < nCells; ++iCell) {
  20337. if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) {
  20338. if (!cell.halfedges.length) {
  20339. delete _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell];
  20340. }
  20341. }
  20342. }
  20343. }
  20344. /***/ }),
  20345. /***/ "./node_modules/d3-voronoi/src/Circle.js":
  20346. /*!***********************************************!*\
  20347. !*** ./node_modules/d3-voronoi/src/Circle.js ***!
  20348. \***********************************************/
  20349. /*! exports provided: firstCircle, attachCircle, detachCircle */
  20350. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20351. "use strict";
  20352. __webpack_require__.r(__webpack_exports__);
  20353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "firstCircle", function() { return firstCircle; });
  20354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "attachCircle", function() { return attachCircle; });
  20355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detachCircle", function() { return detachCircle; });
  20356. /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "./node_modules/d3-voronoi/src/RedBlackTree.js");
  20357. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20358. var circlePool = [];
  20359. var firstCircle;
  20360. function Circle() {
  20361. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(this);
  20362. this.x =
  20363. this.y =
  20364. this.arc =
  20365. this.site =
  20366. this.cy = null;
  20367. }
  20368. function attachCircle(arc) {
  20369. var lArc = arc.P,
  20370. rArc = arc.N;
  20371. if (!lArc || !rArc) return;
  20372. var lSite = lArc.site,
  20373. cSite = arc.site,
  20374. rSite = rArc.site;
  20375. if (lSite === rSite) return;
  20376. var bx = cSite[0],
  20377. by = cSite[1],
  20378. ax = lSite[0] - bx,
  20379. ay = lSite[1] - by,
  20380. cx = rSite[0] - bx,
  20381. cy = rSite[1] - by;
  20382. var d = 2 * (ax * cy - ay * cx);
  20383. if (d >= -_Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon2"]) return;
  20384. var ha = ax * ax + ay * ay,
  20385. hc = cx * cx + cy * cy,
  20386. x = (cy * ha - ay * hc) / d,
  20387. y = (ax * hc - cx * ha) / d;
  20388. var circle = circlePool.pop() || new Circle;
  20389. circle.arc = arc;
  20390. circle.site = cSite;
  20391. circle.x = x + bx;
  20392. circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom
  20393. arc.circle = circle;
  20394. var before = null,
  20395. node = _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"]._;
  20396. while (node) {
  20397. if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {
  20398. if (node.L) node = node.L;
  20399. else { before = node.P; break; }
  20400. } else {
  20401. if (node.R) node = node.R;
  20402. else { before = node; break; }
  20403. }
  20404. }
  20405. _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"].insert(before, circle);
  20406. if (!before) firstCircle = circle;
  20407. }
  20408. function detachCircle(arc) {
  20409. var circle = arc.circle;
  20410. if (circle) {
  20411. if (!circle.P) firstCircle = circle.N;
  20412. _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"].remove(circle);
  20413. circlePool.push(circle);
  20414. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(circle);
  20415. arc.circle = null;
  20416. }
  20417. }
  20418. /***/ }),
  20419. /***/ "./node_modules/d3-voronoi/src/Diagram.js":
  20420. /*!************************************************!*\
  20421. !*** ./node_modules/d3-voronoi/src/Diagram.js ***!
  20422. \************************************************/
  20423. /*! exports provided: epsilon, epsilon2, beaches, cells, circles, edges, default */
  20424. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20425. "use strict";
  20426. __webpack_require__.r(__webpack_exports__);
  20427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; });
  20428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon2", function() { return epsilon2; });
  20429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beaches", function() { return beaches; });
  20430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cells", function() { return cells; });
  20431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circles", function() { return circles; });
  20432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "edges", function() { return edges; });
  20433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Diagram; });
  20434. /* harmony import */ var _Beach__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Beach */ "./node_modules/d3-voronoi/src/Beach.js");
  20435. /* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "./node_modules/d3-voronoi/src/Cell.js");
  20436. /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Circle */ "./node_modules/d3-voronoi/src/Circle.js");
  20437. /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Edge */ "./node_modules/d3-voronoi/src/Edge.js");
  20438. /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedBlackTree */ "./node_modules/d3-voronoi/src/RedBlackTree.js");
  20439. var epsilon = 1e-6;
  20440. var epsilon2 = 1e-12;
  20441. var beaches;
  20442. var cells;
  20443. var circles;
  20444. var edges;
  20445. function triangleArea(a, b, c) {
  20446. return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);
  20447. }
  20448. function lexicographic(a, b) {
  20449. return b[1] - a[1]
  20450. || b[0] - a[0];
  20451. }
  20452. function Diagram(sites, extent) {
  20453. var site = sites.sort(lexicographic).pop(),
  20454. x,
  20455. y,
  20456. circle;
  20457. edges = [];
  20458. cells = new Array(sites.length);
  20459. beaches = new _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__["default"];
  20460. circles = new _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__["default"];
  20461. while (true) {
  20462. circle = _Circle__WEBPACK_IMPORTED_MODULE_2__["firstCircle"];
  20463. if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {
  20464. if (site[0] !== x || site[1] !== y) {
  20465. Object(_Beach__WEBPACK_IMPORTED_MODULE_0__["addBeach"])(site);
  20466. x = site[0], y = site[1];
  20467. }
  20468. site = sites.pop();
  20469. } else if (circle) {
  20470. Object(_Beach__WEBPACK_IMPORTED_MODULE_0__["removeBeach"])(circle.arc);
  20471. } else {
  20472. break;
  20473. }
  20474. }
  20475. Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["sortCellHalfedges"])();
  20476. if (extent) {
  20477. var x0 = +extent[0][0],
  20478. y0 = +extent[0][1],
  20479. x1 = +extent[1][0],
  20480. y1 = +extent[1][1];
  20481. Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["clipEdges"])(x0, y0, x1, y1);
  20482. Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["clipCells"])(x0, y0, x1, y1);
  20483. }
  20484. this.edges = edges;
  20485. this.cells = cells;
  20486. beaches =
  20487. circles =
  20488. edges =
  20489. cells = null;
  20490. }
  20491. Diagram.prototype = {
  20492. constructor: Diagram,
  20493. polygons: function() {
  20494. var edges = this.edges;
  20495. return this.cells.map(function(cell) {
  20496. var polygon = cell.halfedges.map(function(i) { return Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["cellHalfedgeStart"])(cell, edges[i]); });
  20497. polygon.data = cell.site.data;
  20498. return polygon;
  20499. });
  20500. },
  20501. triangles: function() {
  20502. var triangles = [],
  20503. edges = this.edges;
  20504. this.cells.forEach(function(cell, i) {
  20505. if (!(m = (halfedges = cell.halfedges).length)) return;
  20506. var site = cell.site,
  20507. halfedges,
  20508. j = -1,
  20509. m,
  20510. s0,
  20511. e1 = edges[halfedges[m - 1]],
  20512. s1 = e1.left === site ? e1.right : e1.left;
  20513. while (++j < m) {
  20514. s0 = s1;
  20515. e1 = edges[halfedges[j]];
  20516. s1 = e1.left === site ? e1.right : e1.left;
  20517. if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {
  20518. triangles.push([site.data, s0.data, s1.data]);
  20519. }
  20520. }
  20521. });
  20522. return triangles;
  20523. },
  20524. links: function() {
  20525. return this.edges.filter(function(edge) {
  20526. return edge.right;
  20527. }).map(function(edge) {
  20528. return {
  20529. source: edge.left.data,
  20530. target: edge.right.data
  20531. };
  20532. });
  20533. },
  20534. find: function(x, y, radius) {
  20535. var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;
  20536. // Use the previously-found cell, or start with an arbitrary one.
  20537. while (!(cell = that.cells[i1])) if (++i1 >= n) return null;
  20538. var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;
  20539. // Traverse the half-edges to find a closer cell, if any.
  20540. do {
  20541. cell = that.cells[i0 = i1], i1 = null;
  20542. cell.halfedges.forEach(function(e) {
  20543. var edge = that.edges[e], v = edge.left;
  20544. if ((v === cell.site || !v) && !(v = edge.right)) return;
  20545. var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;
  20546. if (v2 < d2) d2 = v2, i1 = v.index;
  20547. });
  20548. } while (i1 !== null);
  20549. that._found = i0;
  20550. return radius == null || d2 <= radius * radius ? cell.site : null;
  20551. }
  20552. }
  20553. /***/ }),
  20554. /***/ "./node_modules/d3-voronoi/src/Edge.js":
  20555. /*!*********************************************!*\
  20556. !*** ./node_modules/d3-voronoi/src/Edge.js ***!
  20557. \*********************************************/
  20558. /*! exports provided: createEdge, createBorderEdge, setEdgeEnd, clipEdges */
  20559. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20560. "use strict";
  20561. __webpack_require__.r(__webpack_exports__);
  20562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEdge", function() { return createEdge; });
  20563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBorderEdge", function() { return createBorderEdge; });
  20564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setEdgeEnd", function() { return setEdgeEnd; });
  20565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipEdges", function() { return clipEdges; });
  20566. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20567. function createEdge(left, right, v0, v1) {
  20568. var edge = [null, null],
  20569. index = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"].push(edge) - 1;
  20570. edge.left = left;
  20571. edge.right = right;
  20572. if (v0) setEdgeEnd(edge, left, right, v0);
  20573. if (v1) setEdgeEnd(edge, right, left, v1);
  20574. _Diagram__WEBPACK_IMPORTED_MODULE_0__["cells"][left.index].halfedges.push(index);
  20575. _Diagram__WEBPACK_IMPORTED_MODULE_0__["cells"][right.index].halfedges.push(index);
  20576. return edge;
  20577. }
  20578. function createBorderEdge(left, v0, v1) {
  20579. var edge = [v0, v1];
  20580. edge.left = left;
  20581. return edge;
  20582. }
  20583. function setEdgeEnd(edge, left, right, vertex) {
  20584. if (!edge[0] && !edge[1]) {
  20585. edge[0] = vertex;
  20586. edge.left = left;
  20587. edge.right = right;
  20588. } else if (edge.left === right) {
  20589. edge[1] = vertex;
  20590. } else {
  20591. edge[0] = vertex;
  20592. }
  20593. }
  20594. // Liang–Barsky line clipping.
  20595. function clipEdge(edge, x0, y0, x1, y1) {
  20596. var a = edge[0],
  20597. b = edge[1],
  20598. ax = a[0],
  20599. ay = a[1],
  20600. bx = b[0],
  20601. by = b[1],
  20602. t0 = 0,
  20603. t1 = 1,
  20604. dx = bx - ax,
  20605. dy = by - ay,
  20606. r;
  20607. r = x0 - ax;
  20608. if (!dx && r > 0) return;
  20609. r /= dx;
  20610. if (dx < 0) {
  20611. if (r < t0) return;
  20612. if (r < t1) t1 = r;
  20613. } else if (dx > 0) {
  20614. if (r > t1) return;
  20615. if (r > t0) t0 = r;
  20616. }
  20617. r = x1 - ax;
  20618. if (!dx && r < 0) return;
  20619. r /= dx;
  20620. if (dx < 0) {
  20621. if (r > t1) return;
  20622. if (r > t0) t0 = r;
  20623. } else if (dx > 0) {
  20624. if (r < t0) return;
  20625. if (r < t1) t1 = r;
  20626. }
  20627. r = y0 - ay;
  20628. if (!dy && r > 0) return;
  20629. r /= dy;
  20630. if (dy < 0) {
  20631. if (r < t0) return;
  20632. if (r < t1) t1 = r;
  20633. } else if (dy > 0) {
  20634. if (r > t1) return;
  20635. if (r > t0) t0 = r;
  20636. }
  20637. r = y1 - ay;
  20638. if (!dy && r < 0) return;
  20639. r /= dy;
  20640. if (dy < 0) {
  20641. if (r > t1) return;
  20642. if (r > t0) t0 = r;
  20643. } else if (dy > 0) {
  20644. if (r < t0) return;
  20645. if (r < t1) t1 = r;
  20646. }
  20647. if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?
  20648. if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];
  20649. if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];
  20650. return true;
  20651. }
  20652. function connectEdge(edge, x0, y0, x1, y1) {
  20653. var v1 = edge[1];
  20654. if (v1) return true;
  20655. var v0 = edge[0],
  20656. left = edge.left,
  20657. right = edge.right,
  20658. lx = left[0],
  20659. ly = left[1],
  20660. rx = right[0],
  20661. ry = right[1],
  20662. fx = (lx + rx) / 2,
  20663. fy = (ly + ry) / 2,
  20664. fm,
  20665. fb;
  20666. if (ry === ly) {
  20667. if (fx < x0 || fx >= x1) return;
  20668. if (lx > rx) {
  20669. if (!v0) v0 = [fx, y0];
  20670. else if (v0[1] >= y1) return;
  20671. v1 = [fx, y1];
  20672. } else {
  20673. if (!v0) v0 = [fx, y1];
  20674. else if (v0[1] < y0) return;
  20675. v1 = [fx, y0];
  20676. }
  20677. } else {
  20678. fm = (lx - rx) / (ry - ly);
  20679. fb = fy - fm * fx;
  20680. if (fm < -1 || fm > 1) {
  20681. if (lx > rx) {
  20682. if (!v0) v0 = [(y0 - fb) / fm, y0];
  20683. else if (v0[1] >= y1) return;
  20684. v1 = [(y1 - fb) / fm, y1];
  20685. } else {
  20686. if (!v0) v0 = [(y1 - fb) / fm, y1];
  20687. else if (v0[1] < y0) return;
  20688. v1 = [(y0 - fb) / fm, y0];
  20689. }
  20690. } else {
  20691. if (ly < ry) {
  20692. if (!v0) v0 = [x0, fm * x0 + fb];
  20693. else if (v0[0] >= x1) return;
  20694. v1 = [x1, fm * x1 + fb];
  20695. } else {
  20696. if (!v0) v0 = [x1, fm * x1 + fb];
  20697. else if (v0[0] < x0) return;
  20698. v1 = [x0, fm * x0 + fb];
  20699. }
  20700. }
  20701. }
  20702. edge[0] = v0;
  20703. edge[1] = v1;
  20704. return true;
  20705. }
  20706. function clipEdges(x0, y0, x1, y1) {
  20707. var i = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"].length,
  20708. edge;
  20709. while (i--) {
  20710. if (!connectEdge(edge = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"][i], x0, y0, x1, y1)
  20711. || !clipEdge(edge, x0, y0, x1, y1)
  20712. || !(Math.abs(edge[0][0] - edge[1][0]) > _Diagram__WEBPACK_IMPORTED_MODULE_0__["epsilon"]
  20713. || Math.abs(edge[0][1] - edge[1][1]) > _Diagram__WEBPACK_IMPORTED_MODULE_0__["epsilon"])) {
  20714. delete _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"][i];
  20715. }
  20716. }
  20717. }
  20718. /***/ }),
  20719. /***/ "./node_modules/d3-voronoi/src/RedBlackTree.js":
  20720. /*!*****************************************************!*\
  20721. !*** ./node_modules/d3-voronoi/src/RedBlackTree.js ***!
  20722. \*****************************************************/
  20723. /*! exports provided: RedBlackNode, default */
  20724. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20725. "use strict";
  20726. __webpack_require__.r(__webpack_exports__);
  20727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedBlackNode", function() { return RedBlackNode; });
  20728. function RedBlackTree() {
  20729. this._ = null; // root node
  20730. }
  20731. function RedBlackNode(node) {
  20732. node.U = // parent node
  20733. node.C = // color - true for red, false for black
  20734. node.L = // left node
  20735. node.R = // right node
  20736. node.P = // previous node
  20737. node.N = null; // next node
  20738. }
  20739. RedBlackTree.prototype = {
  20740. constructor: RedBlackTree,
  20741. insert: function(after, node) {
  20742. var parent, grandpa, uncle;
  20743. if (after) {
  20744. node.P = after;
  20745. node.N = after.N;
  20746. if (after.N) after.N.P = node;
  20747. after.N = node;
  20748. if (after.R) {
  20749. after = after.R;
  20750. while (after.L) after = after.L;
  20751. after.L = node;
  20752. } else {
  20753. after.R = node;
  20754. }
  20755. parent = after;
  20756. } else if (this._) {
  20757. after = RedBlackFirst(this._);
  20758. node.P = null;
  20759. node.N = after;
  20760. after.P = after.L = node;
  20761. parent = after;
  20762. } else {
  20763. node.P = node.N = null;
  20764. this._ = node;
  20765. parent = null;
  20766. }
  20767. node.L = node.R = null;
  20768. node.U = parent;
  20769. node.C = true;
  20770. after = node;
  20771. while (parent && parent.C) {
  20772. grandpa = parent.U;
  20773. if (parent === grandpa.L) {
  20774. uncle = grandpa.R;
  20775. if (uncle && uncle.C) {
  20776. parent.C = uncle.C = false;
  20777. grandpa.C = true;
  20778. after = grandpa;
  20779. } else {
  20780. if (after === parent.R) {
  20781. RedBlackRotateLeft(this, parent);
  20782. after = parent;
  20783. parent = after.U;
  20784. }
  20785. parent.C = false;
  20786. grandpa.C = true;
  20787. RedBlackRotateRight(this, grandpa);
  20788. }
  20789. } else {
  20790. uncle = grandpa.L;
  20791. if (uncle && uncle.C) {
  20792. parent.C = uncle.C = false;
  20793. grandpa.C = true;
  20794. after = grandpa;
  20795. } else {
  20796. if (after === parent.L) {
  20797. RedBlackRotateRight(this, parent);
  20798. after = parent;
  20799. parent = after.U;
  20800. }
  20801. parent.C = false;
  20802. grandpa.C = true;
  20803. RedBlackRotateLeft(this, grandpa);
  20804. }
  20805. }
  20806. parent = after.U;
  20807. }
  20808. this._.C = false;
  20809. },
  20810. remove: function(node) {
  20811. if (node.N) node.N.P = node.P;
  20812. if (node.P) node.P.N = node.N;
  20813. node.N = node.P = null;
  20814. var parent = node.U,
  20815. sibling,
  20816. left = node.L,
  20817. right = node.R,
  20818. next,
  20819. red;
  20820. if (!left) next = right;
  20821. else if (!right) next = left;
  20822. else next = RedBlackFirst(right);
  20823. if (parent) {
  20824. if (parent.L === node) parent.L = next;
  20825. else parent.R = next;
  20826. } else {
  20827. this._ = next;
  20828. }
  20829. if (left && right) {
  20830. red = next.C;
  20831. next.C = node.C;
  20832. next.L = left;
  20833. left.U = next;
  20834. if (next !== right) {
  20835. parent = next.U;
  20836. next.U = node.U;
  20837. node = next.R;
  20838. parent.L = node;
  20839. next.R = right;
  20840. right.U = next;
  20841. } else {
  20842. next.U = parent;
  20843. parent = next;
  20844. node = next.R;
  20845. }
  20846. } else {
  20847. red = node.C;
  20848. node = next;
  20849. }
  20850. if (node) node.U = parent;
  20851. if (red) return;
  20852. if (node && node.C) { node.C = false; return; }
  20853. do {
  20854. if (node === this._) break;
  20855. if (node === parent.L) {
  20856. sibling = parent.R;
  20857. if (sibling.C) {
  20858. sibling.C = false;
  20859. parent.C = true;
  20860. RedBlackRotateLeft(this, parent);
  20861. sibling = parent.R;
  20862. }
  20863. if ((sibling.L && sibling.L.C)
  20864. || (sibling.R && sibling.R.C)) {
  20865. if (!sibling.R || !sibling.R.C) {
  20866. sibling.L.C = false;
  20867. sibling.C = true;
  20868. RedBlackRotateRight(this, sibling);
  20869. sibling = parent.R;
  20870. }
  20871. sibling.C = parent.C;
  20872. parent.C = sibling.R.C = false;
  20873. RedBlackRotateLeft(this, parent);
  20874. node = this._;
  20875. break;
  20876. }
  20877. } else {
  20878. sibling = parent.L;
  20879. if (sibling.C) {
  20880. sibling.C = false;
  20881. parent.C = true;
  20882. RedBlackRotateRight(this, parent);
  20883. sibling = parent.L;
  20884. }
  20885. if ((sibling.L && sibling.L.C)
  20886. || (sibling.R && sibling.R.C)) {
  20887. if (!sibling.L || !sibling.L.C) {
  20888. sibling.R.C = false;
  20889. sibling.C = true;
  20890. RedBlackRotateLeft(this, sibling);
  20891. sibling = parent.L;
  20892. }
  20893. sibling.C = parent.C;
  20894. parent.C = sibling.L.C = false;
  20895. RedBlackRotateRight(this, parent);
  20896. node = this._;
  20897. break;
  20898. }
  20899. }
  20900. sibling.C = true;
  20901. node = parent;
  20902. parent = parent.U;
  20903. } while (!node.C);
  20904. if (node) node.C = false;
  20905. }
  20906. };
  20907. function RedBlackRotateLeft(tree, node) {
  20908. var p = node,
  20909. q = node.R,
  20910. parent = p.U;
  20911. if (parent) {
  20912. if (parent.L === p) parent.L = q;
  20913. else parent.R = q;
  20914. } else {
  20915. tree._ = q;
  20916. }
  20917. q.U = parent;
  20918. p.U = q;
  20919. p.R = q.L;
  20920. if (p.R) p.R.U = p;
  20921. q.L = p;
  20922. }
  20923. function RedBlackRotateRight(tree, node) {
  20924. var p = node,
  20925. q = node.L,
  20926. parent = p.U;
  20927. if (parent) {
  20928. if (parent.L === p) parent.L = q;
  20929. else parent.R = q;
  20930. } else {
  20931. tree._ = q;
  20932. }
  20933. q.U = parent;
  20934. p.U = q;
  20935. p.L = q.R;
  20936. if (p.L) p.L.U = p;
  20937. q.R = p;
  20938. }
  20939. function RedBlackFirst(node) {
  20940. while (node.L) node = node.L;
  20941. return node;
  20942. }
  20943. /* harmony default export */ __webpack_exports__["default"] = (RedBlackTree);
  20944. /***/ }),
  20945. /***/ "./node_modules/d3-voronoi/src/constant.js":
  20946. /*!*************************************************!*\
  20947. !*** ./node_modules/d3-voronoi/src/constant.js ***!
  20948. \*************************************************/
  20949. /*! exports provided: default */
  20950. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20951. "use strict";
  20952. __webpack_require__.r(__webpack_exports__);
  20953. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  20954. return function() {
  20955. return x;
  20956. };
  20957. });
  20958. /***/ }),
  20959. /***/ "./node_modules/d3-voronoi/src/index.js":
  20960. /*!**********************************************!*\
  20961. !*** ./node_modules/d3-voronoi/src/index.js ***!
  20962. \**********************************************/
  20963. /*! exports provided: voronoi */
  20964. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20965. "use strict";
  20966. __webpack_require__.r(__webpack_exports__);
  20967. /* harmony import */ var _voronoi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./voronoi */ "./node_modules/d3-voronoi/src/voronoi.js");
  20968. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "voronoi", function() { return _voronoi__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  20969. /***/ }),
  20970. /***/ "./node_modules/d3-voronoi/src/point.js":
  20971. /*!**********************************************!*\
  20972. !*** ./node_modules/d3-voronoi/src/point.js ***!
  20973. \**********************************************/
  20974. /*! exports provided: x, y */
  20975. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20976. "use strict";
  20977. __webpack_require__.r(__webpack_exports__);
  20978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; });
  20979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; });
  20980. function x(d) {
  20981. return d[0];
  20982. }
  20983. function y(d) {
  20984. return d[1];
  20985. }
  20986. /***/ }),
  20987. /***/ "./node_modules/d3-voronoi/src/voronoi.js":
  20988. /*!************************************************!*\
  20989. !*** ./node_modules/d3-voronoi/src/voronoi.js ***!
  20990. \************************************************/
  20991. /*! exports provided: default */
  20992. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20993. "use strict";
  20994. __webpack_require__.r(__webpack_exports__);
  20995. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-voronoi/src/constant.js");
  20996. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-voronoi/src/point.js");
  20997. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20998. /* harmony default export */ __webpack_exports__["default"] = (function() {
  20999. var x = _point__WEBPACK_IMPORTED_MODULE_1__["x"],
  21000. y = _point__WEBPACK_IMPORTED_MODULE_1__["y"],
  21001. extent = null;
  21002. function voronoi(data) {
  21003. return new _Diagram__WEBPACK_IMPORTED_MODULE_2__["default"](data.map(function(d, i) {
  21004. var s = [Math.round(x(d, i, data) / _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) * _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"], Math.round(y(d, i, data) / _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) * _Diagram__WEBPACK_IMPORTED_MODULE_2__["epsilon"]];
  21005. s.index = i;
  21006. s.data = d;
  21007. return s;
  21008. }), extent);
  21009. }
  21010. voronoi.polygons = function(data) {
  21011. return voronoi(data).polygons();
  21012. };
  21013. voronoi.links = function(data) {
  21014. return voronoi(data).links();
  21015. };
  21016. voronoi.triangles = function(data) {
  21017. return voronoi(data).triangles();
  21018. };
  21019. voronoi.x = function(_) {
  21020. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), voronoi) : x;
  21021. };
  21022. voronoi.y = function(_) {
  21023. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), voronoi) : y;
  21024. };
  21025. voronoi.extent = function(_) {
  21026. return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];
  21027. };
  21028. voronoi.size = function(_) {
  21029. return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];
  21030. };
  21031. return voronoi;
  21032. });
  21033. /***/ }),
  21034. /***/ "./node_modules/d3-zoom/src/constant.js":
  21035. /*!**********************************************!*\
  21036. !*** ./node_modules/d3-zoom/src/constant.js ***!
  21037. \**********************************************/
  21038. /*! exports provided: default */
  21039. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21040. "use strict";
  21041. __webpack_require__.r(__webpack_exports__);
  21042. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  21043. return function() {
  21044. return x;
  21045. };
  21046. });
  21047. /***/ }),
  21048. /***/ "./node_modules/d3-zoom/src/event.js":
  21049. /*!*******************************************!*\
  21050. !*** ./node_modules/d3-zoom/src/event.js ***!
  21051. \*******************************************/
  21052. /*! exports provided: default */
  21053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21054. "use strict";
  21055. __webpack_require__.r(__webpack_exports__);
  21056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ZoomEvent; });
  21057. function ZoomEvent(target, type, transform) {
  21058. this.target = target;
  21059. this.type = type;
  21060. this.transform = transform;
  21061. }
  21062. /***/ }),
  21063. /***/ "./node_modules/d3-zoom/src/index.js":
  21064. /*!*******************************************!*\
  21065. !*** ./node_modules/d3-zoom/src/index.js ***!
  21066. \*******************************************/
  21067. /*! exports provided: zoom, zoomTransform, zoomIdentity */
  21068. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21069. "use strict";
  21070. __webpack_require__.r(__webpack_exports__);
  21071. /* harmony import */ var _zoom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./zoom */ "./node_modules/d3-zoom/src/zoom.js");
  21072. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoom", function() { return _zoom__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  21073. /* harmony import */ var _transform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transform */ "./node_modules/d3-zoom/src/transform.js");
  21074. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomTransform", function() { return _transform__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  21075. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomIdentity", function() { return _transform__WEBPACK_IMPORTED_MODULE_1__["identity"]; });
  21076. /***/ }),
  21077. /***/ "./node_modules/d3-zoom/src/noevent.js":
  21078. /*!*********************************************!*\
  21079. !*** ./node_modules/d3-zoom/src/noevent.js ***!
  21080. \*********************************************/
  21081. /*! exports provided: nopropagation, default */
  21082. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21083. "use strict";
  21084. __webpack_require__.r(__webpack_exports__);
  21085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; });
  21086. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  21087. function nopropagation() {
  21088. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  21089. }
  21090. /* harmony default export */ __webpack_exports__["default"] = (function() {
  21091. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault();
  21092. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  21093. });
  21094. /***/ }),
  21095. /***/ "./node_modules/d3-zoom/src/transform.js":
  21096. /*!***********************************************!*\
  21097. !*** ./node_modules/d3-zoom/src/transform.js ***!
  21098. \***********************************************/
  21099. /*! exports provided: Transform, identity, default */
  21100. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21101. "use strict";
  21102. __webpack_require__.r(__webpack_exports__);
  21103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Transform", function() { return Transform; });
  21104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
  21105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return transform; });
  21106. function Transform(k, x, y) {
  21107. this.k = k;
  21108. this.x = x;
  21109. this.y = y;
  21110. }
  21111. Transform.prototype = {
  21112. constructor: Transform,
  21113. scale: function(k) {
  21114. return k === 1 ? this : new Transform(this.k * k, this.x, this.y);
  21115. },
  21116. translate: function(x, y) {
  21117. return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);
  21118. },
  21119. apply: function(point) {
  21120. return [point[0] * this.k + this.x, point[1] * this.k + this.y];
  21121. },
  21122. applyX: function(x) {
  21123. return x * this.k + this.x;
  21124. },
  21125. applyY: function(y) {
  21126. return y * this.k + this.y;
  21127. },
  21128. invert: function(location) {
  21129. return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];
  21130. },
  21131. invertX: function(x) {
  21132. return (x - this.x) / this.k;
  21133. },
  21134. invertY: function(y) {
  21135. return (y - this.y) / this.k;
  21136. },
  21137. rescaleX: function(x) {
  21138. return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));
  21139. },
  21140. rescaleY: function(y) {
  21141. return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));
  21142. },
  21143. toString: function() {
  21144. return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
  21145. }
  21146. };
  21147. var identity = new Transform(1, 0, 0);
  21148. transform.prototype = Transform.prototype;
  21149. function transform(node) {
  21150. return node.__zoom || identity;
  21151. }
  21152. /***/ }),
  21153. /***/ "./node_modules/d3-zoom/src/zoom.js":
  21154. /*!******************************************!*\
  21155. !*** ./node_modules/d3-zoom/src/zoom.js ***!
  21156. \******************************************/
  21157. /*! exports provided: default */
  21158. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21159. "use strict";
  21160. __webpack_require__.r(__webpack_exports__);
  21161. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  21162. /* harmony import */ var d3_drag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-drag */ "./node_modules/d3-drag/src/index.js");
  21163. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  21164. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  21165. /* harmony import */ var d3_transition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-transition */ "./node_modules/d3-transition/src/index.js");
  21166. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-zoom/src/constant.js");
  21167. /* harmony import */ var _event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./event */ "./node_modules/d3-zoom/src/event.js");
  21168. /* harmony import */ var _transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./transform */ "./node_modules/d3-zoom/src/transform.js");
  21169. /* harmony import */ var _noevent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./noevent */ "./node_modules/d3-zoom/src/noevent.js");
  21170. // Ignore right-click, since that should open the context menu.
  21171. function defaultFilter() {
  21172. return !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].button;
  21173. }
  21174. function defaultExtent() {
  21175. var e = this, w, h;
  21176. if (e instanceof SVGElement) {
  21177. e = e.ownerSVGElement || e;
  21178. w = e.width.baseVal.value;
  21179. h = e.height.baseVal.value;
  21180. } else {
  21181. w = e.clientWidth;
  21182. h = e.clientHeight;
  21183. }
  21184. return [[0, 0], [w, h]];
  21185. }
  21186. function defaultTransform() {
  21187. return this.__zoom || _transform__WEBPACK_IMPORTED_MODULE_7__["identity"];
  21188. }
  21189. function defaultWheelDelta() {
  21190. return -d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].deltaY * (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].deltaMode ? 120 : 1) / 500;
  21191. }
  21192. function defaultTouchable() {
  21193. return "ontouchstart" in this;
  21194. }
  21195. function defaultConstrain(transform, extent, translateExtent) {
  21196. var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],
  21197. dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],
  21198. dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],
  21199. dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];
  21200. return transform.translate(
  21201. dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),
  21202. dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)
  21203. );
  21204. }
  21205. /* harmony default export */ __webpack_exports__["default"] = (function() {
  21206. var filter = defaultFilter,
  21207. extent = defaultExtent,
  21208. constrain = defaultConstrain,
  21209. wheelDelta = defaultWheelDelta,
  21210. touchable = defaultTouchable,
  21211. scaleExtent = [0, Infinity],
  21212. translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],
  21213. duration = 250,
  21214. interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolateZoom"],
  21215. gestures = [],
  21216. listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "zoom", "end"),
  21217. touchstarting,
  21218. touchending,
  21219. touchDelay = 500,
  21220. wheelDelay = 150,
  21221. clickDistance2 = 0;
  21222. function zoom(selection) {
  21223. selection
  21224. .property("__zoom", defaultTransform)
  21225. .on("wheel.zoom", wheeled)
  21226. .on("mousedown.zoom", mousedowned)
  21227. .on("dblclick.zoom", dblclicked)
  21228. .filter(touchable)
  21229. .on("touchstart.zoom", touchstarted)
  21230. .on("touchmove.zoom", touchmoved)
  21231. .on("touchend.zoom touchcancel.zoom", touchended)
  21232. .style("touch-action", "none")
  21233. .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
  21234. }
  21235. zoom.transform = function(collection, transform) {
  21236. var selection = collection.selection ? collection.selection() : collection;
  21237. selection.property("__zoom", defaultTransform);
  21238. if (collection !== selection) {
  21239. schedule(collection, transform);
  21240. } else {
  21241. selection.interrupt().each(function() {
  21242. gesture(this, arguments)
  21243. .start()
  21244. .zoom(null, typeof transform === "function" ? transform.apply(this, arguments) : transform)
  21245. .end();
  21246. });
  21247. }
  21248. };
  21249. zoom.scaleBy = function(selection, k) {
  21250. zoom.scaleTo(selection, function() {
  21251. var k0 = this.__zoom.k,
  21252. k1 = typeof k === "function" ? k.apply(this, arguments) : k;
  21253. return k0 * k1;
  21254. });
  21255. };
  21256. zoom.scaleTo = function(selection, k) {
  21257. zoom.transform(selection, function() {
  21258. var e = extent.apply(this, arguments),
  21259. t0 = this.__zoom,
  21260. p0 = centroid(e),
  21261. p1 = t0.invert(p0),
  21262. k1 = typeof k === "function" ? k.apply(this, arguments) : k;
  21263. return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);
  21264. });
  21265. };
  21266. zoom.translateBy = function(selection, x, y) {
  21267. zoom.transform(selection, function() {
  21268. return constrain(this.__zoom.translate(
  21269. typeof x === "function" ? x.apply(this, arguments) : x,
  21270. typeof y === "function" ? y.apply(this, arguments) : y
  21271. ), extent.apply(this, arguments), translateExtent);
  21272. });
  21273. };
  21274. zoom.translateTo = function(selection, x, y) {
  21275. zoom.transform(selection, function() {
  21276. var e = extent.apply(this, arguments),
  21277. t = this.__zoom,
  21278. p = centroid(e);
  21279. return constrain(_transform__WEBPACK_IMPORTED_MODULE_7__["identity"].translate(p[0], p[1]).scale(t.k).translate(
  21280. typeof x === "function" ? -x.apply(this, arguments) : -x,
  21281. typeof y === "function" ? -y.apply(this, arguments) : -y
  21282. ), e, translateExtent);
  21283. });
  21284. };
  21285. function scale(transform, k) {
  21286. k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));
  21287. return k === transform.k ? transform : new _transform__WEBPACK_IMPORTED_MODULE_7__["Transform"](k, transform.x, transform.y);
  21288. }
  21289. function translate(transform, p0, p1) {
  21290. var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;
  21291. return x === transform.x && y === transform.y ? transform : new _transform__WEBPACK_IMPORTED_MODULE_7__["Transform"](transform.k, x, y);
  21292. }
  21293. function centroid(extent) {
  21294. return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];
  21295. }
  21296. function schedule(transition, transform, center) {
  21297. transition
  21298. .on("start.zoom", function() { gesture(this, arguments).start(); })
  21299. .on("interrupt.zoom end.zoom", function() { gesture(this, arguments).end(); })
  21300. .tween("zoom", function() {
  21301. var that = this,
  21302. args = arguments,
  21303. g = gesture(that, args),
  21304. e = extent.apply(that, args),
  21305. p = center || centroid(e),
  21306. w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),
  21307. a = that.__zoom,
  21308. b = typeof transform === "function" ? transform.apply(that, args) : transform,
  21309. i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));
  21310. return function(t) {
  21311. if (t === 1) t = b; // Avoid rounding error on end.
  21312. else { var l = i(t), k = w / l[2]; t = new _transform__WEBPACK_IMPORTED_MODULE_7__["Transform"](k, p[0] - l[0] * k, p[1] - l[1] * k); }
  21313. g.zoom(null, t);
  21314. };
  21315. });
  21316. }
  21317. function gesture(that, args) {
  21318. for (var i = 0, n = gestures.length, g; i < n; ++i) {
  21319. if ((g = gestures[i]).that === that) {
  21320. return g;
  21321. }
  21322. }
  21323. return new Gesture(that, args);
  21324. }
  21325. function Gesture(that, args) {
  21326. this.that = that;
  21327. this.args = args;
  21328. this.index = -1;
  21329. this.active = 0;
  21330. this.extent = extent.apply(that, args);
  21331. }
  21332. Gesture.prototype = {
  21333. start: function() {
  21334. if (++this.active === 1) {
  21335. this.index = gestures.push(this) - 1;
  21336. this.emit("start");
  21337. }
  21338. return this;
  21339. },
  21340. zoom: function(key, transform) {
  21341. if (this.mouse && key !== "mouse") this.mouse[1] = transform.invert(this.mouse[0]);
  21342. if (this.touch0 && key !== "touch") this.touch0[1] = transform.invert(this.touch0[0]);
  21343. if (this.touch1 && key !== "touch") this.touch1[1] = transform.invert(this.touch1[0]);
  21344. this.that.__zoom = transform;
  21345. this.emit("zoom");
  21346. return this;
  21347. },
  21348. end: function() {
  21349. if (--this.active === 0) {
  21350. gestures.splice(this.index, 1);
  21351. this.index = -1;
  21352. this.emit("end");
  21353. }
  21354. return this;
  21355. },
  21356. emit: function(type) {
  21357. Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["customEvent"])(new _event__WEBPACK_IMPORTED_MODULE_6__["default"](zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);
  21358. }
  21359. };
  21360. function wheeled() {
  21361. if (!filter.apply(this, arguments)) return;
  21362. var g = gesture(this, arguments),
  21363. t = this.__zoom,
  21364. k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),
  21365. p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(this);
  21366. // If the mouse is in the same location as before, reuse it.
  21367. // If there were recent wheel events, reset the wheel idle timeout.
  21368. if (g.wheel) {
  21369. if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {
  21370. g.mouse[1] = t.invert(g.mouse[0] = p);
  21371. }
  21372. clearTimeout(g.wheel);
  21373. }
  21374. // If this wheel event won’t trigger a transform change, ignore it.
  21375. else if (t.k === k) return;
  21376. // Otherwise, capture the mouse point and location at the start.
  21377. else {
  21378. g.mouse = [p, t.invert(p)];
  21379. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(this);
  21380. g.start();
  21381. }
  21382. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21383. g.wheel = setTimeout(wheelidled, wheelDelay);
  21384. g.zoom("mouse", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));
  21385. function wheelidled() {
  21386. g.wheel = null;
  21387. g.end();
  21388. }
  21389. }
  21390. function mousedowned() {
  21391. if (touchending || !filter.apply(this, arguments)) return;
  21392. var g = gesture(this, arguments),
  21393. v = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view).on("mousemove.zoom", mousemoved, true).on("mouseup.zoom", mouseupped, true),
  21394. p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(this),
  21395. x0 = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientX,
  21396. y0 = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientY;
  21397. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragDisable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view);
  21398. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["nopropagation"])();
  21399. g.mouse = [p, this.__zoom.invert(p)];
  21400. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(this);
  21401. g.start();
  21402. function mousemoved() {
  21403. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21404. if (!g.moved) {
  21405. var dx = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientX - x0, dy = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientY - y0;
  21406. g.moved = dx * dx + dy * dy > clickDistance2;
  21407. }
  21408. g.zoom("mouse", constrain(translate(g.that.__zoom, g.mouse[0] = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(g.that), g.mouse[1]), g.extent, translateExtent));
  21409. }
  21410. function mouseupped() {
  21411. v.on("mousemove.zoom mouseup.zoom", null);
  21412. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragEnable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view, g.moved);
  21413. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21414. g.end();
  21415. }
  21416. }
  21417. function dblclicked() {
  21418. if (!filter.apply(this, arguments)) return;
  21419. var t0 = this.__zoom,
  21420. p0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(this),
  21421. p1 = t0.invert(p0),
  21422. k1 = t0.k * (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].shiftKey ? 0.5 : 2),
  21423. t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);
  21424. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21425. if (duration > 0) Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this).transition().duration(duration).call(schedule, t1, p0);
  21426. else Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this).call(zoom.transform, t1);
  21427. }
  21428. function touchstarted() {
  21429. if (!filter.apply(this, arguments)) return;
  21430. var g = gesture(this, arguments),
  21431. touches = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches,
  21432. started,
  21433. n = touches.length, i, t, p;
  21434. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["nopropagation"])();
  21435. for (i = 0; i < n; ++i) {
  21436. t = touches[i], p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["touch"])(this, touches, t.identifier);
  21437. p = [p, this.__zoom.invert(p), t.identifier];
  21438. if (!g.touch0) g.touch0 = p, started = true;
  21439. else if (!g.touch1) g.touch1 = p;
  21440. }
  21441. // If this is a dbltap, reroute to the (optional) dblclick.zoom handler.
  21442. if (touchstarting) {
  21443. touchstarting = clearTimeout(touchstarting);
  21444. if (!g.touch1) {
  21445. g.end();
  21446. p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this).on("dblclick.zoom");
  21447. if (p) p.apply(this, arguments);
  21448. return;
  21449. }
  21450. }
  21451. if (started) {
  21452. touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);
  21453. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(this);
  21454. g.start();
  21455. }
  21456. }
  21457. function touchmoved() {
  21458. var g = gesture(this, arguments),
  21459. touches = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches,
  21460. n = touches.length, i, t, p, l;
  21461. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21462. if (touchstarting) touchstarting = clearTimeout(touchstarting);
  21463. for (i = 0; i < n; ++i) {
  21464. t = touches[i], p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["touch"])(this, touches, t.identifier);
  21465. if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;
  21466. else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;
  21467. }
  21468. t = g.that.__zoom;
  21469. if (g.touch1) {
  21470. var p0 = g.touch0[0], l0 = g.touch0[1],
  21471. p1 = g.touch1[0], l1 = g.touch1[1],
  21472. dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,
  21473. dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;
  21474. t = scale(t, Math.sqrt(dp / dl));
  21475. p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];
  21476. l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];
  21477. }
  21478. else if (g.touch0) p = g.touch0[0], l = g.touch0[1];
  21479. else return;
  21480. g.zoom("touch", constrain(translate(t, p, l), g.extent, translateExtent));
  21481. }
  21482. function touchended() {
  21483. var g = gesture(this, arguments),
  21484. touches = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches,
  21485. n = touches.length, i, t;
  21486. Object(_noevent__WEBPACK_IMPORTED_MODULE_8__["nopropagation"])();
  21487. if (touchending) clearTimeout(touchending);
  21488. touchending = setTimeout(function() { touchending = null; }, touchDelay);
  21489. for (i = 0; i < n; ++i) {
  21490. t = touches[i];
  21491. if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;
  21492. else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;
  21493. }
  21494. if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;
  21495. if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);
  21496. else g.end();
  21497. }
  21498. zoom.wheelDelta = function(_) {
  21499. return arguments.length ? (wheelDelta = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])(+_), zoom) : wheelDelta;
  21500. };
  21501. zoom.filter = function(_) {
  21502. return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), zoom) : filter;
  21503. };
  21504. zoom.touchable = function(_) {
  21505. return arguments.length ? (touchable = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), zoom) : touchable;
  21506. };
  21507. zoom.extent = function(_) {
  21508. return arguments.length ? (extent = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;
  21509. };
  21510. zoom.scaleExtent = function(_) {
  21511. return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];
  21512. };
  21513. zoom.translateExtent = function(_) {
  21514. return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];
  21515. };
  21516. zoom.constrain = function(_) {
  21517. return arguments.length ? (constrain = _, zoom) : constrain;
  21518. };
  21519. zoom.duration = function(_) {
  21520. return arguments.length ? (duration = +_, zoom) : duration;
  21521. };
  21522. zoom.interpolate = function(_) {
  21523. return arguments.length ? (interpolate = _, zoom) : interpolate;
  21524. };
  21525. zoom.on = function() {
  21526. var value = listeners.on.apply(listeners, arguments);
  21527. return value === listeners ? zoom : value;
  21528. };
  21529. zoom.clickDistance = function(_) {
  21530. return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);
  21531. };
  21532. return zoom;
  21533. });
  21534. /***/ }),
  21535. /***/ "./node_modules/d3/dist/package.js":
  21536. /*!*****************************************!*\
  21537. !*** ./node_modules/d3/dist/package.js ***!
  21538. \*****************************************/
  21539. /*! exports provided: name, version, description, keywords, homepage, license, author, main, unpkg, jsdelivr, module, repository, scripts, devDependencies, dependencies */
  21540. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21541. "use strict";
  21542. __webpack_require__.r(__webpack_exports__);
  21543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
  21544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
  21545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "description", function() { return description; });
  21546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keywords", function() { return keywords; });
  21547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "homepage", function() { return homepage; });
  21548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "license", function() { return license; });
  21549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "author", function() { return author; });
  21550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "main", function() { return main; });
  21551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unpkg", function() { return unpkg; });
  21552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jsdelivr", function() { return jsdelivr; });
  21553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "module", function() { return module; });
  21554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repository", function() { return repository; });
  21555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scripts", function() { return scripts; });
  21556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "devDependencies", function() { return devDependencies; });
  21557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dependencies", function() { return dependencies; });
  21558. var name = "d3";
  21559. var version = "5.7.0";
  21560. var description = "Data-Driven Documents";
  21561. var keywords = ["dom","visualization","svg","animation","canvas"];
  21562. var homepage = "https://d3js.org";
  21563. var license = "BSD-3-Clause";
  21564. var author = {"name":"Mike Bostock","url":"https://bost.ocks.org/mike"};
  21565. var main = "dist/d3.node.js";
  21566. var unpkg = "dist/d3.min.js";
  21567. var jsdelivr = "dist/d3.min.js";
  21568. var module = "index.js";
  21569. var repository = {"type":"git","url":"https://github.com/d3/d3.git"};
  21570. var scripts = {"pretest":"rimraf dist && mkdir dist && json2module package.json > dist/package.js && node rollup.node","test":"tape 'test/**/*-test.js'","prepublishOnly":"yarn test && rollup -c","postpublish":"git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \"d3 ${npm_package_version}\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \"${npm_package_version}\" && git tag -am \"${npm_package_version}\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js"};
  21571. var devDependencies = {"json2module":"0.0","rimraf":"2","rollup":"0.64","rollup-plugin-ascii":"0.0","rollup-plugin-node-resolve":"3","rollup-plugin-terser":"1","tape":"4"};
  21572. var dependencies = {"d3-array":"1","d3-axis":"1","d3-brush":"1","d3-chord":"1","d3-collection":"1","d3-color":"1","d3-contour":"1","d3-dispatch":"1","d3-drag":"1","d3-dsv":"1","d3-ease":"1","d3-fetch":"1","d3-force":"1","d3-format":"1","d3-geo":"1","d3-hierarchy":"1","d3-interpolate":"1","d3-path":"1","d3-polygon":"1","d3-quadtree":"1","d3-random":"1","d3-scale":"2","d3-scale-chromatic":"1","d3-selection":"1","d3-shape":"1","d3-time":"1","d3-time-format":"2","d3-timer":"1","d3-transition":"1","d3-voronoi":"1","d3-zoom":"1"};
  21573. /***/ }),
  21574. /***/ "./node_modules/d3/index.js":
  21575. /*!**********************************!*\
  21576. !*** ./node_modules/d3/index.js ***!
  21577. \**********************************/
  21578. /*! exports provided: version, bisect, bisectRight, bisectLeft, ascending, bisector, cross, descending, deviation, extent, histogram, thresholdFreedmanDiaconis, thresholdScott, thresholdSturges, max, mean, median, merge, min, pairs, permute, quantile, range, scan, shuffle, sum, ticks, tickIncrement, tickStep, transpose, variance, zip, axisTop, axisRight, axisBottom, axisLeft, brush, brushX, brushY, brushSelection, chord, ribbon, nest, set, map, keys, values, entries, color, rgb, hsl, lab, hcl, lch, gray, cubehelix, contours, contourDensity, dispatch, drag, dragDisable, dragEnable, dsvFormat, csvParse, csvParseRows, csvFormat, csvFormatRows, tsvParse, tsvParseRows, tsvFormat, tsvFormatRows, easeLinear, easeQuad, easeQuadIn, easeQuadOut, easeQuadInOut, easeCubic, easeCubicIn, easeCubicOut, easeCubicInOut, easePoly, easePolyIn, easePolyOut, easePolyInOut, easeSin, easeSinIn, easeSinOut, easeSinInOut, easeExp, easeExpIn, easeExpOut, easeExpInOut, easeCircle, easeCircleIn, easeCircleOut, easeCircleInOut, easeBounce, easeBounceIn, easeBounceOut, easeBounceInOut, easeBack, easeBackIn, easeBackOut, easeBackInOut, easeElastic, easeElasticIn, easeElasticOut, easeElasticInOut, blob, buffer, dsv, csv, tsv, image, json, text, xml, html, svg, forceCenter, forceCollide, forceLink, forceManyBody, forceRadial, forceSimulation, forceX, forceY, formatDefaultLocale, format, formatPrefix, formatLocale, formatSpecifier, precisionFixed, precisionPrefix, precisionRound, geoArea, geoBounds, geoCentroid, geoCircle, geoClipAntimeridian, geoClipCircle, geoClipExtent, geoClipRectangle, geoContains, geoDistance, geoGraticule, geoGraticule10, geoInterpolate, geoLength, geoPath, geoAlbers, geoAlbersUsa, geoAzimuthalEqualArea, geoAzimuthalEqualAreaRaw, geoAzimuthalEquidistant, geoAzimuthalEquidistantRaw, geoConicConformal, geoConicConformalRaw, geoConicEqualArea, geoConicEqualAreaRaw, geoConicEquidistant, geoConicEquidistantRaw, geoEqualEarth, geoEqualEarthRaw, geoEquirectangular, geoEquirectangularRaw, geoGnomonic, geoGnomonicRaw, geoIdentity, geoProjection, geoProjectionMutator, geoMercator, geoMercatorRaw, geoNaturalEarth1, geoNaturalEarth1Raw, geoOrthographic, geoOrthographicRaw, geoStereographic, geoStereographicRaw, geoTransverseMercator, geoTransverseMercatorRaw, geoRotation, geoStream, geoTransform, cluster, hierarchy, pack, packSiblings, packEnclose, partition, stratify, tree, treemap, treemapBinary, treemapDice, treemapSlice, treemapSliceDice, treemapSquarify, treemapResquarify, interpolate, interpolateArray, interpolateBasis, interpolateBasisClosed, interpolateDate, interpolateDiscrete, interpolateHue, interpolateNumber, interpolateObject, interpolateRound, interpolateString, interpolateTransformCss, interpolateTransformSvg, interpolateZoom, interpolateRgb, interpolateRgbBasis, interpolateRgbBasisClosed, interpolateHsl, interpolateHslLong, interpolateLab, interpolateHcl, interpolateHclLong, interpolateCubehelix, interpolateCubehelixLong, piecewise, quantize, path, polygonArea, polygonCentroid, polygonHull, polygonContains, polygonLength, quadtree, randomUniform, randomNormal, randomLogNormal, randomBates, randomIrwinHall, randomExponential, scaleBand, scalePoint, scaleIdentity, scaleLinear, scaleLog, scaleOrdinal, scaleImplicit, scalePow, scaleSqrt, scaleQuantile, scaleQuantize, scaleThreshold, scaleTime, scaleUtc, scaleSequential, scaleDiverging, schemeCategory10, schemeAccent, schemeDark2, schemePaired, schemePastel1, schemePastel2, schemeSet1, schemeSet2, schemeSet3, interpolateBrBG, schemeBrBG, interpolatePRGn, schemePRGn, interpolatePiYG, schemePiYG, interpolatePuOr, schemePuOr, interpolateRdBu, schemeRdBu, interpolateRdGy, schemeRdGy, interpolateRdYlBu, schemeRdYlBu, interpolateRdYlGn, schemeRdYlGn, interpolateSpectral, schemeSpectral, interpolateBuGn, schemeBuGn, interpolateBuPu, schemeBuPu, interpolateGnBu, schemeGnBu, interpolateOrRd, schemeOrRd, interpolatePuBuGn, schemePuBuGn, interpolatePuBu, schemePuBu, interpolatePuRd, schemePuRd, interpolateRdPu, schemeRdPu, interpolateYlGnBu, schemeYlGnBu, interpolateYlGn, schemeYlGn, interpolateYlOrBr, schemeYlOrBr, interpolateYlOrRd, schemeYlOrRd, interpolateBlues, schemeBlues, interpolateGreens, schemeGreens, interpolateGreys, schemeGreys, interpolatePurples, schemePurples, interpolateReds, schemeReds, interpolateOranges, schemeOranges, interpolateCubehelixDefault, interpolateRainbow, interpolateWarm, interpolateCool, interpolateSinebow, interpolateViridis, interpolateMagma, interpolateInferno, interpolatePlasma, create, creator, local, matcher, mouse, namespace, namespaces, clientPoint, select, selectAll, selection, selector, selectorAll, style, touch, touches, window, event, customEvent, arc, area, line, pie, areaRadial, radialArea, lineRadial, radialLine, pointRadial, linkHorizontal, linkVertical, linkRadial, symbol, symbols, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, curveBasisClosed, curveBasisOpen, curveBasis, curveBundle, curveCardinalClosed, curveCardinalOpen, curveCardinal, curveCatmullRomClosed, curveCatmullRomOpen, curveCatmullRom, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, stack, stackOffsetExpand, stackOffsetDiverging, stackOffsetNone, stackOffsetSilhouette, stackOffsetWiggle, stackOrderAscending, stackOrderDescending, stackOrderInsideOut, stackOrderNone, stackOrderReverse, timeInterval, timeMillisecond, timeMilliseconds, utcMillisecond, utcMilliseconds, timeSecond, timeSeconds, utcSecond, utcSeconds, timeMinute, timeMinutes, timeHour, timeHours, timeDay, timeDays, timeWeek, timeWeeks, timeSunday, timeSundays, timeMonday, timeMondays, timeTuesday, timeTuesdays, timeWednesday, timeWednesdays, timeThursday, timeThursdays, timeFriday, timeFridays, timeSaturday, timeSaturdays, timeMonth, timeMonths, timeYear, timeYears, utcMinute, utcMinutes, utcHour, utcHours, utcDay, utcDays, utcWeek, utcWeeks, utcSunday, utcSundays, utcMonday, utcMondays, utcTuesday, utcTuesdays, utcWednesday, utcWednesdays, utcThursday, utcThursdays, utcFriday, utcFridays, utcSaturday, utcSaturdays, utcMonth, utcMonths, utcYear, utcYears, timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse, timeFormatLocale, isoFormat, isoParse, now, timer, timerFlush, timeout, interval, transition, active, interrupt, voronoi, zoom, zoomTransform, zoomIdentity */
  21579. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21580. "use strict";
  21581. __webpack_require__.r(__webpack_exports__);
  21582. /* harmony import */ var _dist_package__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dist/package */ "./node_modules/d3/dist/package.js");
  21583. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _dist_package__WEBPACK_IMPORTED_MODULE_0__["version"]; });
  21584. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  21585. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisect"]; });
  21586. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisectRight"]; });
  21587. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisectLeft"]; });
  21588. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["ascending"]; });
  21589. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisector"]; });
  21590. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["cross"]; });
  21591. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["descending"]; });
  21592. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["deviation"]; });
  21593. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["extent"]; });
  21594. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["histogram"]; });
  21595. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["thresholdFreedmanDiaconis"]; });
  21596. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["thresholdScott"]; });
  21597. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["thresholdSturges"]; });
  21598. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["max"]; });
  21599. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["mean"]; });
  21600. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "median", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["median"]; });
  21601. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["merge"]; });
  21602. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["min"]; });
  21603. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["pairs"]; });
  21604. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["permute"]; });
  21605. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["quantile"]; });
  21606. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["range"]; });
  21607. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["scan"]; });
  21608. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["shuffle"]; });
  21609. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["sum"]; });
  21610. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["ticks"]; });
  21611. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["tickIncrement"]; });
  21612. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["tickStep"]; });
  21613. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["transpose"]; });
  21614. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["variance"]; });
  21615. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["zip"]; });
  21616. /* harmony import */ var d3_axis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-axis */ "./node_modules/d3-axis/src/index.js");
  21617. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisTop", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisTop"]; });
  21618. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisRight", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisRight"]; });
  21619. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisBottom", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisBottom"]; });
  21620. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisLeft", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisLeft"]; });
  21621. /* harmony import */ var d3_brush__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-brush */ "./node_modules/d3-brush/src/index.js");
  21622. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brush", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brush"]; });
  21623. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brushX"]; });
  21624. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brushY"]; });
  21625. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brushSelection"]; });
  21626. /* harmony import */ var d3_chord__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-chord */ "./node_modules/d3-chord/src/index.js");
  21627. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "chord", function() { return d3_chord__WEBPACK_IMPORTED_MODULE_4__["chord"]; });
  21628. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ribbon", function() { return d3_chord__WEBPACK_IMPORTED_MODULE_4__["ribbon"]; });
  21629. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  21630. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["nest"]; });
  21631. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "set", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["set"]; });
  21632. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["map"]; });
  21633. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["keys"]; });
  21634. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "values", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["values"]; });
  21635. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "entries", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["entries"]; });
  21636. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  21637. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["color"]; });
  21638. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["rgb"]; });
  21639. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["hsl"]; });
  21640. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lab", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["lab"]; });
  21641. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["hcl"]; });
  21642. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["lch"]; });
  21643. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["gray"]; });
  21644. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cubehelix", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["cubehelix"]; });
  21645. /* harmony import */ var d3_contour__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-contour */ "./node_modules/d3-contour/src/index.js");
  21646. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contours", function() { return d3_contour__WEBPACK_IMPORTED_MODULE_7__["contours"]; });
  21647. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contourDensity", function() { return d3_contour__WEBPACK_IMPORTED_MODULE_7__["contourDensity"]; });
  21648. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  21649. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return d3_dispatch__WEBPACK_IMPORTED_MODULE_8__["dispatch"]; });
  21650. /* harmony import */ var d3_drag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-drag */ "./node_modules/d3-drag/src/index.js");
  21651. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "drag", function() { return d3_drag__WEBPACK_IMPORTED_MODULE_9__["drag"]; });
  21652. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragDisable", function() { return d3_drag__WEBPACK_IMPORTED_MODULE_9__["dragDisable"]; });
  21653. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragEnable", function() { return d3_drag__WEBPACK_IMPORTED_MODULE_9__["dragEnable"]; });
  21654. /* harmony import */ var d3_dsv__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! d3-dsv */ "./node_modules/d3-dsv/src/index.js");
  21655. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsvFormat", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["dsvFormat"]; });
  21656. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParse", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvParse"]; });
  21657. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParseRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvParseRows"]; });
  21658. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormat", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvFormat"]; });
  21659. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvFormatRows"]; });
  21660. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParse", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvParse"]; });
  21661. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParseRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvParseRows"]; });
  21662. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormat", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvFormat"]; });
  21663. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvFormatRows"]; });
  21664. /* harmony import */ var d3_ease__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! d3-ease */ "./node_modules/d3-ease/src/index.js");
  21665. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeLinear", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeLinear"]; });
  21666. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuad", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuad"]; });
  21667. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuadIn"]; });
  21668. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuadOut"]; });
  21669. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuadInOut"]; });
  21670. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubic", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubic"]; });
  21671. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubicIn"]; });
  21672. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubicOut"]; });
  21673. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubicInOut"]; });
  21674. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePoly", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePoly"]; });
  21675. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePolyIn"]; });
  21676. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePolyOut"]; });
  21677. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePolyInOut"]; });
  21678. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSin", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSin"]; });
  21679. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSinIn"]; });
  21680. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSinOut"]; });
  21681. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSinInOut"]; });
  21682. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExp", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExp"]; });
  21683. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExpIn"]; });
  21684. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExpOut"]; });
  21685. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExpInOut"]; });
  21686. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircle", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircle"]; });
  21687. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircleIn"]; });
  21688. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircleOut"]; });
  21689. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircleInOut"]; });
  21690. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounce", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounce"]; });
  21691. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounceIn"]; });
  21692. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounceOut"]; });
  21693. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounceInOut"]; });
  21694. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBack", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBack"]; });
  21695. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBackIn"]; });
  21696. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBackOut"]; });
  21697. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBackInOut"]; });
  21698. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElastic", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElastic"]; });
  21699. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElasticIn"]; });
  21700. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElasticOut"]; });
  21701. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElasticInOut"]; });
  21702. /* harmony import */ var d3_fetch__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! d3-fetch */ "./node_modules/d3-fetch/src/index.js");
  21703. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "blob", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["blob"]; });
  21704. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["buffer"]; });
  21705. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsv", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["dsv"]; });
  21706. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csv", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["csv"]; });
  21707. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsv", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["tsv"]; });
  21708. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "image", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["image"]; });
  21709. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "json", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["json"]; });
  21710. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "text", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["text"]; });
  21711. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "xml", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["xml"]; });
  21712. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "html", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["html"]; });
  21713. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svg", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["svg"]; });
  21714. /* harmony import */ var d3_force__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! d3-force */ "./node_modules/d3-force/src/index.js");
  21715. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCenter", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceCenter"]; });
  21716. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCollide", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceCollide"]; });
  21717. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceLink", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceLink"]; });
  21718. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceManyBody", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceManyBody"]; });
  21719. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceRadial", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceRadial"]; });
  21720. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceSimulation", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceSimulation"]; });
  21721. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceX", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceX"]; });
  21722. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceY", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceY"]; });
  21723. /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js");
  21724. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDefaultLocale", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatDefaultLocale"]; });
  21725. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["format"]; });
  21726. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatPrefix"]; });
  21727. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatLocale", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatLocale"]; });
  21728. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatSpecifier", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatSpecifier"]; });
  21729. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionFixed", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["precisionFixed"]; });
  21730. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionPrefix", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["precisionPrefix"]; });
  21731. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["precisionRound"]; });
  21732. /* harmony import */ var d3_geo__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! d3-geo */ "./node_modules/d3-geo/src/index.js");
  21733. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoArea", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoArea"]; });
  21734. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoBounds", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoBounds"]; });
  21735. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCentroid", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoCentroid"]; });
  21736. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCircle", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoCircle"]; });
  21737. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipAntimeridian", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipAntimeridian"]; });
  21738. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipCircle", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipCircle"]; });
  21739. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipExtent", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipExtent"]; });
  21740. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipRectangle", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipRectangle"]; });
  21741. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoContains", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoContains"]; });
  21742. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoDistance", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoDistance"]; });
  21743. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGraticule"]; });
  21744. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule10", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGraticule10"]; });
  21745. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoInterpolate", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoInterpolate"]; });
  21746. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoLength", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoLength"]; });
  21747. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoPath", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoPath"]; });
  21748. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbers", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAlbers"]; });
  21749. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbersUsa", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAlbersUsa"]; });
  21750. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualArea", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEqualArea"]; });
  21751. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualAreaRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEqualAreaRaw"]; });
  21752. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistant", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEquidistant"]; });
  21753. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistantRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEquidistantRaw"]; });
  21754. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformal", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicConformal"]; });
  21755. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformalRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicConformalRaw"]; });
  21756. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualArea", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEqualArea"]; });
  21757. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualAreaRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEqualAreaRaw"]; });
  21758. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistant", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEquidistant"]; });
  21759. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistantRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEquidistantRaw"]; });
  21760. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarth", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEqualEarth"]; });
  21761. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarthRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEqualEarthRaw"]; });
  21762. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangular", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEquirectangular"]; });
  21763. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangularRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEquirectangularRaw"]; });
  21764. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonic", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGnomonic"]; });
  21765. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonicRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGnomonicRaw"]; });
  21766. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoIdentity", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoIdentity"]; });
  21767. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjection", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoProjection"]; });
  21768. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjectionMutator", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoProjectionMutator"]; });
  21769. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercator", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoMercator"]; });
  21770. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercatorRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoMercatorRaw"]; });
  21771. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoNaturalEarth1"]; });
  21772. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1Raw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoNaturalEarth1Raw"]; });
  21773. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographic", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoOrthographic"]; });
  21774. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographicRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoOrthographicRaw"]; });
  21775. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographic", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoStereographic"]; });
  21776. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographicRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoStereographicRaw"]; });
  21777. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercator", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoTransverseMercator"]; });
  21778. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercatorRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoTransverseMercatorRaw"]; });
  21779. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoRotation", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoRotation"]; });
  21780. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStream", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoStream"]; });
  21781. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransform", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoTransform"]; });
  21782. /* harmony import */ var d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! d3-hierarchy */ "./node_modules/d3-hierarchy/src/index.js");
  21783. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cluster", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["cluster"]; });
  21784. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hierarchy", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["hierarchy"]; });
  21785. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pack", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["pack"]; });
  21786. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packSiblings", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["packSiblings"]; });
  21787. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["packEnclose"]; });
  21788. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["partition"]; });
  21789. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stratify", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["stratify"]; });
  21790. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tree", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["tree"]; });
  21791. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemap", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemap"]; });
  21792. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapBinary", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapBinary"]; });
  21793. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapDice", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapDice"]; });
  21794. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSlice", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapSlice"]; });
  21795. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSliceDice", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapSliceDice"]; });
  21796. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSquarify", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapSquarify"]; });
  21797. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapResquarify", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapResquarify"]; });
  21798. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  21799. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolate", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolate"]; });
  21800. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateArray", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateArray"]; });
  21801. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasis", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateBasis"]; });
  21802. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasisClosed", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateBasisClosed"]; });
  21803. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDate", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateDate"]; });
  21804. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDiscrete", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateDiscrete"]; });
  21805. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHue", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHue"]; });
  21806. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumber", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateNumber"]; });
  21807. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateObject"]; });
  21808. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRound", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRound"]; });
  21809. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateString"]; });
  21810. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateTransformCss"]; });
  21811. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateTransformSvg"]; });
  21812. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateZoom", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateZoom"]; });
  21813. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgb", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRgb"]; });
  21814. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasis", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRgbBasis"]; });
  21815. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasisClosed", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRgbBasisClosed"]; });
  21816. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHsl", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHsl"]; });
  21817. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHslLong", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHslLong"]; });
  21818. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateLab", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateLab"]; });
  21819. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHcl", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHcl"]; });
  21820. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHclLong", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHclLong"]; });
  21821. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelix", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateCubehelix"]; });
  21822. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixLong", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateCubehelixLong"]; });
  21823. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "piecewise", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["piecewise"]; });
  21824. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantize", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["quantize"]; });
  21825. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  21826. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "path", function() { return d3_path__WEBPACK_IMPORTED_MODULE_18__["path"]; });
  21827. /* harmony import */ var d3_polygon__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! d3-polygon */ "./node_modules/d3-polygon/src/index.js");
  21828. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonArea", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonArea"]; });
  21829. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonCentroid", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonCentroid"]; });
  21830. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonHull", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonHull"]; });
  21831. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonContains", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonContains"]; });
  21832. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonLength", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonLength"]; });
  21833. /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/src/index.js");
  21834. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quadtree", function() { return d3_quadtree__WEBPACK_IMPORTED_MODULE_20__["quadtree"]; });
  21835. /* harmony import */ var d3_random__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! d3-random */ "./node_modules/d3-random/src/index.js");
  21836. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomUniform", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomUniform"]; });
  21837. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomNormal", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomNormal"]; });
  21838. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomLogNormal", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomLogNormal"]; });
  21839. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomBates", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomBates"]; });
  21840. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomIrwinHall", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomIrwinHall"]; });
  21841. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomExponential", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomExponential"]; });
  21842. /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/src/index.js");
  21843. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleBand", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleBand"]; });
  21844. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePoint", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scalePoint"]; });
  21845. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleIdentity"]; });
  21846. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleLinear"]; });
  21847. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLog", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleLog"]; });
  21848. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleOrdinal"]; });
  21849. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleImplicit"]; });
  21850. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePow", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scalePow"]; });
  21851. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSqrt"]; });
  21852. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleQuantile"]; });
  21853. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleQuantize"]; });
  21854. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleThreshold"]; });
  21855. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleTime", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleTime"]; });
  21856. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleUtc"]; });
  21857. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSequential"]; });
  21858. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDiverging", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleDiverging"]; });
  21859. /* harmony import */ var d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! d3-scale-chromatic */ "./node_modules/d3-scale-chromatic/src/index.js");
  21860. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeCategory10"]; });
  21861. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeAccent", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeAccent"]; });
  21862. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeDark2", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeDark2"]; });
  21863. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePaired", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePaired"]; });
  21864. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel1", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePastel1"]; });
  21865. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel2", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePastel2"]; });
  21866. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet1", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSet1"]; });
  21867. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet2", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSet2"]; });
  21868. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet3", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSet3"]; });
  21869. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBrBG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBrBG"]; });
  21870. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBrBG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBrBG"]; });
  21871. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePRGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePRGn"]; });
  21872. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePRGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePRGn"]; });
  21873. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePiYG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePiYG"]; });
  21874. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePiYG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePiYG"]; });
  21875. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuOr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuOr"]; });
  21876. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuOr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuOr"]; });
  21877. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdBu"]; });
  21878. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdBu"]; });
  21879. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdGy", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdGy"]; });
  21880. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdGy", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdGy"]; });
  21881. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdYlBu"]; });
  21882. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdYlBu"]; });
  21883. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdYlGn"]; });
  21884. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdYlGn"]; });
  21885. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSpectral", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateSpectral"]; });
  21886. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSpectral", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSpectral"]; });
  21887. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBuGn"]; });
  21888. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBuGn"]; });
  21889. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBuPu"]; });
  21890. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBuPu"]; });
  21891. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateGnBu"]; });
  21892. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeGnBu"]; });
  21893. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateOrRd"]; });
  21894. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeOrRd"]; });
  21895. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuBuGn"]; });
  21896. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuBuGn"]; });
  21897. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuBu"]; });
  21898. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuBu"]; });
  21899. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuRd"]; });
  21900. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuRd"]; });
  21901. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdPu"]; });
  21902. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdPu"]; });
  21903. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlGnBu"]; });
  21904. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlGnBu"]; });
  21905. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlGn"]; });
  21906. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlGn"]; });
  21907. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrBr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlOrBr"]; });
  21908. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrBr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlOrBr"]; });
  21909. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlOrRd"]; });
  21910. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlOrRd"]; });
  21911. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBlues", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBlues"]; });
  21912. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBlues", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBlues"]; });
  21913. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreens", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateGreens"]; });
  21914. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreens", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeGreens"]; });
  21915. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreys", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateGreys"]; });
  21916. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreys", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeGreys"]; });
  21917. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePurples", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePurples"]; });
  21918. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePurples", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePurples"]; });
  21919. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateReds", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateReds"]; });
  21920. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeReds", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeReds"]; });
  21921. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOranges", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateOranges"]; });
  21922. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOranges", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeOranges"]; });
  21923. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateCubehelixDefault"]; });
  21924. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRainbow"]; });
  21925. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateWarm"]; });
  21926. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateCool"]; });
  21927. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSinebow", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateSinebow"]; });
  21928. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateViridis"]; });
  21929. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateMagma"]; });
  21930. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateInferno"]; });
  21931. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePlasma"]; });
  21932. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  21933. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["create"]; });
  21934. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "creator", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["creator"]; });
  21935. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "local", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["local"]; });
  21936. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matcher", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["matcher"]; });
  21937. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mouse", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["mouse"]; });
  21938. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespace", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["namespace"]; });
  21939. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespaces", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["namespaces"]; });
  21940. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clientPoint", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["clientPoint"]; });
  21941. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["select"]; });
  21942. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectAll", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selectAll"]; });
  21943. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selection", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selection"]; });
  21944. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selector", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selector"]; });
  21945. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectorAll", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selectorAll"]; });
  21946. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "style", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["style"]; });
  21947. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touch", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["touch"]; });
  21948. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touches", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["touches"]; });
  21949. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["window"]; });
  21950. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "event", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["event"]; });
  21951. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["customEvent"]; });
  21952. /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js");
  21953. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arc", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["arc"]; });
  21954. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "area", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["area"]; });
  21955. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "line", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["line"]; });
  21956. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pie", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["pie"]; });
  21957. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "areaRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["areaRadial"]; });
  21958. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialArea", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["radialArea"]; });
  21959. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["lineRadial"]; });
  21960. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialLine", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["radialLine"]; });
  21961. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pointRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["pointRadial"]; });
  21962. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["linkHorizontal"]; });
  21963. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["linkVertical"]; });
  21964. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["linkRadial"]; });
  21965. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbol", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbol"]; });
  21966. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbols"]; });
  21967. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCircle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolCircle"]; });
  21968. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCross", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolCross"]; });
  21969. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolDiamond", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolDiamond"]; });
  21970. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolSquare", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolSquare"]; });
  21971. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolStar", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolStar"]; });
  21972. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolTriangle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolTriangle"]; });
  21973. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolWye", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolWye"]; });
  21974. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBasisClosed"]; });
  21975. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisOpen", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBasisOpen"]; });
  21976. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasis", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBasis"]; });
  21977. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBundle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBundle"]; });
  21978. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCardinalClosed"]; });
  21979. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalOpen", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCardinalOpen"]; });
  21980. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinal", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCardinal"]; });
  21981. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCatmullRomClosed"]; });
  21982. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomOpen", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCatmullRomOpen"]; });
  21983. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRom", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCatmullRom"]; });
  21984. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinearClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveLinearClosed"]; });
  21985. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinear", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveLinear"]; });
  21986. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneX", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveMonotoneX"]; });
  21987. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneY", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveMonotoneY"]; });
  21988. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveNatural", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveNatural"]; });
  21989. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStep", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveStep"]; });
  21990. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepAfter", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveStepAfter"]; });
  21991. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepBefore", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveStepBefore"]; });
  21992. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stack", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stack"]; });
  21993. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetExpand", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetExpand"]; });
  21994. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetDiverging", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetDiverging"]; });
  21995. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetNone", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetNone"]; });
  21996. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetSilhouette", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetSilhouette"]; });
  21997. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetWiggle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetWiggle"]; });
  21998. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAscending", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderAscending"]; });
  21999. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderDescending", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderDescending"]; });
  22000. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderInsideOut", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderInsideOut"]; });
  22001. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderNone", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderNone"]; });
  22002. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderReverse", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderReverse"]; });
  22003. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  22004. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeInterval"]; });
  22005. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMillisecond"]; });
  22006. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMilliseconds"]; });
  22007. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMillisecond"]; });
  22008. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMilliseconds"]; });
  22009. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSecond"]; });
  22010. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSeconds"]; });
  22011. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSecond"]; });
  22012. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSeconds"]; });
  22013. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMinute"]; });
  22014. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMinutes"]; });
  22015. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeHour"]; });
  22016. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeHours"]; });
  22017. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeDay"]; });
  22018. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeDays"]; });
  22019. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWeek"]; });
  22020. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWeeks"]; });
  22021. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSunday"]; });
  22022. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSundays"]; });
  22023. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMonday"]; });
  22024. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMondays"]; });
  22025. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeTuesday"]; });
  22026. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeTuesdays"]; });
  22027. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWednesday"]; });
  22028. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWednesdays"]; });
  22029. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeThursday"]; });
  22030. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeThursdays"]; });
  22031. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeFriday"]; });
  22032. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeFridays"]; });
  22033. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSaturday"]; });
  22034. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSaturdays"]; });
  22035. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMonth"]; });
  22036. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMonths"]; });
  22037. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeYear"]; });
  22038. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeYears"]; });
  22039. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMinute"]; });
  22040. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMinutes"]; });
  22041. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcHour"]; });
  22042. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcHours"]; });
  22043. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcDay"]; });
  22044. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcDays"]; });
  22045. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWeek"]; });
  22046. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWeeks"]; });
  22047. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSunday"]; });
  22048. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSundays"]; });
  22049. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMonday"]; });
  22050. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMondays"]; });
  22051. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcTuesday"]; });
  22052. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcTuesdays"]; });
  22053. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWednesday"]; });
  22054. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWednesdays"]; });
  22055. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcThursday"]; });
  22056. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcThursdays"]; });
  22057. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcFriday"]; });
  22058. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcFridays"]; });
  22059. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSaturday"]; });
  22060. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSaturdays"]; });
  22061. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMonth"]; });
  22062. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMonths"]; });
  22063. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcYear"]; });
  22064. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcYears"]; });
  22065. /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js");
  22066. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatDefaultLocale", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeFormatDefaultLocale"]; });
  22067. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeFormat"]; });
  22068. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeParse"]; });
  22069. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["utcFormat"]; });
  22070. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["utcParse"]; });
  22071. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatLocale", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeFormatLocale"]; });
  22072. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoFormat", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["isoFormat"]; });
  22073. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoParse", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["isoParse"]; });
  22074. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  22075. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "now", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["now"]; });
  22076. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["timer"]; });
  22077. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["timerFlush"]; });
  22078. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["timeout"]; });
  22079. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["interval"]; });
  22080. /* harmony import */ var d3_transition__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! d3-transition */ "./node_modules/d3-transition/src/index.js");
  22081. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return d3_transition__WEBPACK_IMPORTED_MODULE_29__["transition"]; });
  22082. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "active", function() { return d3_transition__WEBPACK_IMPORTED_MODULE_29__["active"]; });
  22083. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interrupt", function() { return d3_transition__WEBPACK_IMPORTED_MODULE_29__["interrupt"]; });
  22084. /* harmony import */ var d3_voronoi__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! d3-voronoi */ "./node_modules/d3-voronoi/src/index.js");
  22085. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "voronoi", function() { return d3_voronoi__WEBPACK_IMPORTED_MODULE_30__["voronoi"]; });
  22086. /* harmony import */ var d3_zoom__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! d3-zoom */ "./node_modules/d3-zoom/src/index.js");
  22087. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoom", function() { return d3_zoom__WEBPACK_IMPORTED_MODULE_31__["zoom"]; });
  22088. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomTransform", function() { return d3_zoom__WEBPACK_IMPORTED_MODULE_31__["zoomTransform"]; });
  22089. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomIdentity", function() { return d3_zoom__WEBPACK_IMPORTED_MODULE_31__["zoomIdentity"]; });
  22090. /***/ }),
  22091. /***/ "./node_modules/dagre-d3-renderer/dist/dagre-d3.core.js":
  22092. /*!**************************************************************!*\
  22093. !*** ./node_modules/dagre-d3-renderer/dist/dagre-d3.core.js ***!
  22094. \**************************************************************/
  22095. /*! no static exports found */
  22096. /***/ (function(module, exports, __webpack_require__) {
  22097. module.exports=function(t){var e={};function a(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,r){a.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},a.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a.w={},a(a.s=25)}([function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=a(2),l=(r=n)&&r.__esModule?r:{default:r};var u=/:/g;function i(t){return t?String(t).replace(u,"\\:"):""}e.default={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return i(t.v)+":"+i(t.w)+":"+i(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,a){e&&t.attr("class",e).attr("class",a+" "+t.attr("class"))},applyTransition:function(t,e){var a=e.graph();if(l.default.isPlainObject(a)){var r=a.transition;if(l.default.isFunction(r))return r(t)}return t}}},function(t,e){t.exports=__webpack_require__(/*! d3 */ "./node_modules/d3/index.js")},function(t,e){t.exports=__webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js")},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(a(16)),n=u(a(15)),l=u(a(14));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,a){var u=e.label,i=t.append("g");"svg"===e.labelType?(0,l.default)(i,e):"string"!=typeof u||"html"===e.labelType?(0,n.default)(i,e):(0,r.default)(i,e);var d=i.node().getBBox(),o=void 0;switch(a){case"top":o=-e.height/2;break;case"bottom":o=e.height/2-d.height;break;default:o=-d.height/2}return i.attr("transform","translate("+-d.width/2+","+o+")"),i}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,a,r){var n=t.x,l=t.y,u=n-r.x,i=l-r.y,d=Math.sqrt(e*e*i*i+a*a*u*u),o=Math.abs(e*a*u/d);r.x<n&&(o=-o);var s=Math.abs(e*a*i/d);return r.y<l&&(s=-s),{x:n+o,y:l+s}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var a=t.x,r=t.y,n=e.x-a,l=e.y-r,u=t.width/2,i=t.height/2,d=void 0,o=void 0;return Math.abs(l)*u>Math.abs(n)*i?(l<0&&(i=-i),d=0===l?0:i*n/l,o=i):(n<0&&(u=-u),d=u,o=0===n?0:u*l/n),{x:a+d,y:r+o}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=a(23),l=(r=n)&&r.__esModule?r:{default:r};e.default=function(t,e,a){var r=t.x,n=t.y,u=[],i=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY;e.forEach(function(t){i=Math.min(i,t.x),d=Math.min(d,t.y)});for(var o=r-t.width/2-i,s=n-t.height/2-d,f=0;f<e.length;f+=1){var c=e[f],h=e[f<e.length-1?f+1:0],p=(0,l.default)(t,a,{x:o+c.x,y:s+c.y},{x:o+h.x,y:s+h.y});p&&u.push(p)}return u.length?(u.length>1&&u.sort(function(t,e){var r=t.x-a.x,n=t.y-a.y,l=Math.sqrt(r*r+n*n),u=e.x-a.x,i=e.y-a.y,d=Math.sqrt(u*u+i*i);return l<d?-1:l===d?0:1}),u[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=a(4),l=(r=n)&&r.__esModule?r:{default:r};e.default=function(t,e,a){return(0,l.default)(t,e,e,a)}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.intersect(e)}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=a(0),l=(r=n)&&r.__esModule?r:{default:r};function u(t,e,a,r){var n=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");l.default.applyStyle(n,a[r+"Style"]),a[r+"Class"]&&n.attr("class",a[r+"Class"])}e.default={normal:u,vee:function(t,e,a,r){var n=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");l.default.applyStyle(n,a[r+"Style"]),a[r+"Class"]&&n.attr("class",a[r+"Class"])},undirected:function(t,e,a,r){var n=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");l.default.applyStyle(n,a[r+"Style"]),a[r+"Class"]&&n.attr("class",a[r+"Class"])},default:u}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(a(5)),n=i(a(4)),l=i(a(7)),u=i(a(6));function i(t){return t&&t.__esModule?t:{default:t}}e.default={rect:function(t,e,a){var n=t.insert("rect",":first-child").attr("rx",a.rx).attr("ry",a.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return a.intersect=function(t){return(0,r.default)(a,t)},n},ellipse:function(t,e,a){var r=e.width/2,l=e.height/2,u=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",l);return a.intersect=function(t){return(0,n.default)(a,r,l,t)},u},circle:function(t,e,a){var r=Math.max(e.width,e.height)/2,n=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return a.intersect=function(t){return(0,l.default)(a,r,t)},n},diamond:function(t,e,a){var r=e.width*Math.SQRT2/2,n=e.height*Math.SQRT2/2,l=[{x:0,y:-n},{x:-r,y:0},{x:0,y:n},{x:r,y:0}],i=t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" "));return a.intersect=function(t){return(0,u.default)(a,l,t)},i}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),n=i(a(2)),l=i(a(8)),u=i(a(0));function i(t){return t&&t.__esModule?t:{default:t}}function d(t,e){var a=r.line().x(function(t){return t.x}).y(function(t){return t.y});return a.curve(t.curve),a(e)}e.default=function(t,e,a){var i=t.selectAll("g.edgePath").data(e.edges(),function(t){return u.default.edgeToId(t)}).classed("update",!0);return function(t,e){var a=t.enter().append("g").attr("class","edgePath").style("opacity",0);a.append("path").attr("class","path").attr("d",function(t){var a=e.edge(t),r=e.node(t.v).elem,l=n.default.range(a.points.length).map(function(){return e=(t=r).getBBox(),{x:(a=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:a.f};var t,e,a});return d(a,l)}),a.append("defs")}(i,e),function(t,e){var a=t.exit();u.default.applyTransition(a,e).style("opacity",0).remove(),u.default.applyTransition(a.select("path.path"),e).attr("d",function(t){var a=e.node(t.v);if(a){var l=n.default.range(this.getTotalLength()).map(function(){return a});return d({},l)}return r.select(this).attr("d")})}(i,e),i=t.selectAll("g.edgePath"),u.default.applyTransition(i,e).style("opacity",1),i.each(function(t){var a=r.select(this),n=e.edge(t);n.elem=this,n.id&&a.attr("id",n.id),u.default.applyClass(a,n.class,(a.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(t){var a=e.edge(t);a.arrowheadId=n.default.uniqueId("arrowhead");var i=r.select(this).attr("marker-end",function(){return"url(#"+a.arrowheadId+")"}).style("fill","none");u.default.applyTransition(i,e).attr("d",function(t){return function(t,e){var a=t.edge(e),r=t.node(e.v),n=t.node(e.w),u=a.points.slice(1,a.points.length-1);return u.unshift((0,l.default)(r,u[0])),u.push((0,l.default)(n,u[u.length-1])),d(a,u)}(e,t)}),u.default.applyStyle(i,a.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(t){var n=e.edge(t);(0,a[n.arrowhead])(r.select(this),n.arrowheadId,n,"arrowhead")}),i}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),n=i(a(2)),l=i(a(3)),u=i(a(0));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var a=t.selectAll("g.edgeLabel").data(e.edges(),function(t){return u.default.edgeToId(t)}).classed("update",!0);return a.selectAll("*").remove(),a.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(a=t.selectAll("g.edgeLabel")).each(function(t){var a=e.edge(t),u=(0,l.default)(r.select(this),e.edge(t),0,0).classed("label",!0),i=u.node().getBBox();a.labelId&&u.attr("id",a.labelId),n.default.has(a,"width")||(a.width=i.width),n.default.has(a,"height")||(a.height=i.height)}),u.default.applyTransition(a.exit(),e).style("opacity",0).remove(),a}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),n=u(a(0)),l=u(a(3));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var a=e.nodes().filter(function(t){return n.default.isSubgraph(e,t)}),u=t.selectAll("g.cluster").data(a,function(t){return t});return u.selectAll("*").remove(),u.enter().append("g").attr("class","cluster").attr("id",function(t){return e.node(t).id}).style("opacity",0),u=t.selectAll("g.cluster"),n.default.applyTransition(u,e).style("opacity",1),u.each(function(t){var a=e.node(t),n=r.select(this);r.select(this).append("rect");var u=n.append("g").attr("class","label");(0,l.default)(u,a,a.clusterLabelPos)}),u.selectAll("rect").each(function(t){var a=e.node(t),l=r.select(this);n.default.applyStyle(l,a.style)}),n.default.applyTransition(u.exit(),e).style("opacity",0).remove(),u}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=a(0),l=(r=n)&&r.__esModule?r:{default:r};e.default=function(t,e){var a=t;return a.node().appendChild(e.label),l.default.applyStyle(a,e.labelStyle),a}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=a(0),u=(r=l)&&r.__esModule?r:{default:r};e.default=function(t,e){var a=t.append("foreignObject").attr("width","100000"),r=a.append("xhtml:div");r.attr("xmlns","http://www.w3.org/1999/xhtml");var l=e.label;switch(void 0===l?"undefined":n(l)){case"function":r.insert(l);break;case"object":r.insert(function(){return l});break;default:r.html(l)}u.default.applyStyle(r,e.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap");var i=r.node().getBoundingClientRect();return a.attr("width",i.width).attr("height",i.height),a}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=a(0),l=(r=n)&&r.__esModule?r:{default:r};e.default=function(t,e){for(var a=t.append("text"),r=function(t){for(var e="",a=!1,r=null,n=0;n<t.length;n+=1)if(r=t[n],a){switch(r){case"n":e+="\n";break;default:e+=r}a=!1}else"\\"===r?a=!0:e+=r;return e}(e.label).split("\n"),n=0;n<r.length;n+=1)a.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(r[n]);return l.default.applyStyle(a,e.labelStyle),a}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(a(2)),n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),l=i(a(3)),u=i(a(0));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,a){var i=e.nodes().filter(function(t){return!u.default.isSubgraph(e,t)}),d=t.selectAll("g.node").data(i,function(t){return t}).classed("update",!0);return d.selectAll("*").remove(),d.enter().append("g").attr("class","node").style("opacity",0),(d=t.selectAll("g.node")).each(function(t){var i=e.node(t),d=n.select(this);u.default.applyClass(d,i.class,(d.classed("update")?"update ":"")+"node");var o=d.append("g").attr("class","label"),s=(0,l.default)(o,i),f=a[i.shape],c=r.default.pick(s.node().getBBox(),"width","height");i.elem=this,i.id&&d.attr("id",i.id),i.labelId&&o.attr("id",i.labelId),r.default.has(i,"width")&&(c.width=i.width),r.default.has(i,"height")&&(c.height=i.height),c.width+=i.paddingLeft+i.paddingRight,c.height+=i.paddingTop+i.paddingBottom,o.attr("transform","translate("+(i.paddingLeft-i.paddingRight)/2+","+(i.paddingTop-i.paddingBottom)/2+")");var h=f(n.select(this),c,i);u.default.applyStyle(h,i.style);var p=h.node().getBBox();i.width=p.width,i.height=p.height}),u.default.applyTransition(d.exit(),e).style("opacity",0).remove(),d}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),l=a(0),u=(r=l)&&r.__esModule?r:{default:r};e.default=function(t,e){var a=t.filter(function(){return!n.select(this).classed("update")});function r(t){var a=e.node(t);return"translate("+a.x+","+a.y+")"}a.attr("transform",r),u.default.applyTransition(t,e).style("opacity",1).attr("transform",r),u.default.applyTransition(a.selectAll("rect"),e).attr("width",function(t){return e.node(t).width}).attr("height",function(t){return e.node(t).height}).attr("x",function(t){return-e.node(t).width/2}).attr("y",function(t){return-e.node(t).height/2})}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),n=u(a(2)),l=u(a(0));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){function a(t){var a=e.edge(t);return n.default.has(a,"x")?"translate("+a.x+","+a.y+")":""}t.filter(function(){return!r.select(this).classed("update")}).attr("transform",a),l.default.applyTransition(t,e).style("opacity",1).attr("transform",a)}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),l=a(0),u=(r=l)&&r.__esModule?r:{default:r};e.default=function(t,e){function a(t){var a=e.node(t);return"translate("+a.x+","+a.y+")"}t.filter(function(){return!n.select(this).classed("update")}).attr("transform",a),u.default.applyTransition(t,e).style("opacity",1).attr("transform",a)}},function(t,e){t.exports=__webpack_require__(/*! dagre-layout */ "./node_modules/dagre-layout/dist/dagre-layout.core.js")},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(a(2)),n=y(a(21)),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(1)),u=y(a(20)),i=y(a(19)),d=y(a(18)),o=y(a(17)),s=y(a(13)),f=y(a(12)),c=y(a(11)),h=y(a(10)),p=y(a(9));function y(t){return t&&t.__esModule?t:{default:t}}var g={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},v={arrowhead:"normal",curve:l.curveLinear};function _(t,e){var a=t.select("g."+e);return a.empty()&&(a=t.append("g").attr("class",e)),a}e.default=function(){var t=o.default,e=s.default,a=f.default,l=c.default,y=h.default,x=p.default,b=function(o,s){!function(t){t.nodes().forEach(function(e){var a=t.node(e);r.default.has(a,"label")||t.children(e).length||(a.label=e),r.default.has(a,"paddingX")&&r.default.defaults(a,{paddingLeft:a.paddingX,paddingRight:a.paddingX}),r.default.has(a,"paddingY")&&r.default.defaults(a,{paddingTop:a.paddingY,paddingBottom:a.paddingY}),r.default.has(a,"padding")&&r.default.defaults(a,{paddingLeft:a.padding,paddingRight:a.padding,paddingTop:a.padding,paddingBottom:a.padding}),r.default.defaults(a,g),r.default.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(t){a[t]=Number(a[t])}),r.default.has(a,"width")&&(a._prevWidth=a.width),r.default.has(a,"height")&&(a._prevHeight=a.height)}),t.edges().forEach(function(e){var a=t.edge(e);r.default.has(a,"label")||(a.label=""),r.default.defaults(a,v)})}(s),o.selectAll("*").remove();var f=_(o,"output"),c=_(f,"clusters"),h=_(f,"edgePaths"),p=a(_(f,"edgeLabels"),s),b=t(_(f,"nodes"),s,y);n.default.layout(s);var m=1e3,M=1e3,w=-1e3,O=-1e3,P=s;P.nodes().map(function(t){return P.node(t)}).forEach(function(t){m=Math.min(m,t.x-t.width/2),M=Math.min(M,t.y-t.height/2),w=Math.max(w,t.x+t.width/2),O=Math.max(O,t.y+t.height/2)}),P.edges().forEach(function(t){var e=P.edge(t);void 0!==e.label&&void 0!==e.x&&void 0!==e.y&&(m=Math.min(m,e.x-e.width/2),M=Math.min(M,e.y-e.height/2),w=Math.max(w,e.x+e.width/2),O=Math.max(O,e.y+e.height/2));for(var a=e.points.slice(1,e.points.length-1),r=0;r<a.length;r++){var n=a[r];m=Math.min(m,n.x),M=Math.min(M,n.y),w=Math.max(w,n.x),O=Math.max(O,n.y)}}),P.minX=m,P.minY=M,P.maxX=w,P.maxY=O,(0,u.default)(b,s),(0,i.default)(p,s),l(h,s,x);var j=e(c,s);(0,d.default)(j,s),function(t){r.default.each(t.nodes(),function(e){var a=t.node(e);r.default.has(a,"_prevWidth")?a.width=a._prevWidth:delete a.width,r.default.has(a,"_prevHeight")?a.height=a._prevHeight:delete a.height,delete a._prevWidth,delete a._prevHeight})}(s)};return b.createNodes=function(e){return arguments.length?(t=e,b):t},b.createClusters=function(t){return arguments.length?(e=t,b):e},b.createEdgeLabels=function(t){return arguments.length?(a=t,b):a},b.createEdgePaths=function(t){return arguments.length?(l=t,b):l},b.shapes=function(t){return arguments.length?(y=t,b):y},b.arrows=function(t){return arguments.length?(x=t,b):x},b}},function(t,e,a){"use strict";function r(t,e){return t*e>0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,a,n){var l=e.y-t.y,u=t.x-e.x,i=e.x*t.y-t.x*e.y,d=l*a.x+u*a.y+i,o=l*n.x+u*n.y+i;if(0===d||0===o||!r(d,o)){var s=n.y-a.y,f=a.x-n.x,c=n.x*a.y-a.x*n.y,h=s*t.x+f*t.y+c,p=s*e.x+f*e.y+c;if(0===h||0===p||!r(h,p)){var y=l*f-s*u;if(0!==y){var g=Math.abs(y/2),v=u*c-f*i;return{x:v<0?(v-g)/y:(v+g)/y,y:(v=s*i-l*c)<0?(v-g)/y:(v+g)/y}}}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(a(8)),n=d(a(7)),l=d(a(4)),u=d(a(6)),i=d(a(5));function d(t){return t&&t.__esModule?t:{default:t}}e.default={node:r.default,circle:n.default,ellipse:l.default,polygon:u.default,rect:i.default}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(a(24)),n=u(a(22)),l=u(a(0));function u(t){return t&&t.__esModule?t:{default:t}}e.default={intersect:r.default,render:n.default,util:l.default}}]);
  22098. //# sourceMappingURL=dagre-d3.core.js.map
  22099. /***/ }),
  22100. /***/ "./node_modules/dagre-d3-renderer/lib/label/add-html-label.js":
  22101. /*!********************************************************************!*\
  22102. !*** ./node_modules/dagre-d3-renderer/lib/label/add-html-label.js ***!
  22103. \********************************************************************/
  22104. /*! exports provided: default */
  22105. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22106. "use strict";
  22107. __webpack_require__.r(__webpack_exports__);
  22108. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./node_modules/dagre-d3-renderer/lib/util.js");
  22109. function addHtmlLabel(root, node) {
  22110. const fo = root.append('foreignObject').attr('width', '100000');
  22111. const div = fo.append('xhtml:div');
  22112. div.attr('xmlns', 'http://www.w3.org/1999/xhtml');
  22113. const label = node.label;
  22114. switch (typeof label) {
  22115. case 'function':
  22116. div.insert(label);
  22117. break;
  22118. case 'object':
  22119. // Currently we assume this is a DOM object.
  22120. div.insert(function () {
  22121. return label;
  22122. });
  22123. break;
  22124. default:
  22125. div.html(label);
  22126. }
  22127. _util__WEBPACK_IMPORTED_MODULE_0__["default"].applyStyle(div, node.labelStyle);
  22128. div.style('display', 'inline-block'); // Fix for firefox
  22129. div.style('white-space', 'nowrap');
  22130. const client = div.node().getBoundingClientRect();
  22131. fo.attr('width', client.width).attr('height', client.height);
  22132. return fo;
  22133. }
  22134. /* harmony default export */ __webpack_exports__["default"] = (addHtmlLabel);
  22135. /***/ }),
  22136. /***/ "./node_modules/dagre-d3-renderer/lib/util.js":
  22137. /*!****************************************************!*\
  22138. !*** ./node_modules/dagre-d3-renderer/lib/util.js ***!
  22139. \****************************************************/
  22140. /*! exports provided: default */
  22141. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22142. "use strict";
  22143. __webpack_require__.r(__webpack_exports__);
  22144. /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
  22145. /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
  22146. /*
  22147. * Returns true if the specified node in the graph is a subgraph node. A
  22148. * subgraph node is one that contains other nodes.
  22149. */
  22150. function isSubgraph(g, v) {
  22151. return !!g.children(v).length;
  22152. }
  22153. function edgeToId(e) {
  22154. return escapeId(e.v) + ':' + escapeId(e.w) + ':' + escapeId(e.name);
  22155. }
  22156. const ID_DELIM = /:/g;
  22157. function escapeId(str) {
  22158. return str ? String(str).replace(ID_DELIM, '\\:') : '';
  22159. }
  22160. function applyStyle(dom, styleFn) {
  22161. if (styleFn) {
  22162. dom.attr('style', styleFn);
  22163. }
  22164. }
  22165. function applyClass(dom, classFn, otherClasses) {
  22166. if (classFn) {
  22167. dom.attr('class', classFn).attr('class', otherClasses + ' ' + dom.attr('class'));
  22168. }
  22169. }
  22170. function applyTransition(selection, g) {
  22171. const graph = g.graph();
  22172. if (lodash__WEBPACK_IMPORTED_MODULE_0___default.a.isPlainObject(graph)) {
  22173. const transition = graph.transition;
  22174. if (lodash__WEBPACK_IMPORTED_MODULE_0___default.a.isFunction(transition)) {
  22175. return transition(selection);
  22176. }
  22177. }
  22178. return selection;
  22179. } // Public utility functions
  22180. /* harmony default export */ __webpack_exports__["default"] = ({
  22181. isSubgraph,
  22182. edgeToId,
  22183. applyStyle,
  22184. applyClass,
  22185. applyTransition
  22186. });
  22187. /***/ }),
  22188. /***/ "./node_modules/dagre-layout/dist/dagre-layout.core.js":
  22189. /*!*************************************************************!*\
  22190. !*** ./node_modules/dagre-layout/dist/dagre-layout.core.js ***!
  22191. \*************************************************************/
  22192. /*! no static exports found */
  22193. /***/ (function(module, exports, __webpack_require__) {
  22194. module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n.w={},n(n.s=27)}([function(e,t){e.exports=__webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDummyNode=d,t.simplify=f,t.asNonCompoundGraph=i,t.successorWeights=l,t.predecessorWeights=c,t.intersectRect=s,t.buildLayerMatrix=h,t.normalizeRanks=v,t.removeEmptyRanks=g,t.addBorderNode=p,t.maxRank=m,t.partition=E,t.time=b,t.notime=w;var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r},o=n(2);function d(e,t,n,r){var a=void 0;do{a=u.default.uniqueId(r)}while(e.hasNode(a));return n.dummy=t,e.setNode(a,n),a}function f(e){var t=(new o.Graph).setGraph(e.graph());return u.default.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),u.default.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},a=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+a.weight,minlen:Math.max(r.minlen,a.minlen)})}),t}function i(e){var t=new o.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return u.default.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),u.default.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function l(e){var t=u.default.map(e.nodes(),function(t){var n={};return u.default.forEach(e.outEdges(t),function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return u.default.zipObject(e.nodes(),t)}function c(e){var t=u.default.map(e.nodes(),function(t){var n={};return u.default.forEach(e.inEdges(t),function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return u.default.zipObject(e.nodes(),t)}function s(e,t){var n=e.x,r=e.y,a=t.x-n,u=t.y-r,o=e.width/2,d=e.height/2;if(!a&&!u)throw new Error("Not possible to find intersection inside of the rectangle");var f=void 0,i=void 0;return Math.abs(u)*o>Math.abs(a)*d?(u<0&&(d=-d),f=d*a/u,i=d):(a<0&&(o=-o),f=o,i=o*u/a),{x:n+f,y:r+i}}function h(e){var t=u.default.map(u.default.range(m(e)+1),function(){return[]});return u.default.forEach(e.nodes(),function(n){var r=e.node(n),a=r.rank;u.default.isUndefined(a)||(t[a][r.order]=n)}),t}function v(e){var t=u.default.min(u.default.map(e.nodes(),function(t){return e.node(t).rank}));u.default.forEach(e.nodes(),function(n){var r=e.node(n);u.default.has(r,"rank")&&(r.rank-=t)})}function g(e){var t=u.default.min(u.default.map(e.nodes(),function(t){return e.node(t).rank})),n=[];u.default.forEach(e.nodes(),function(r){var a=e.node(r).rank-t;n[a]||(n[a]=[]),n[a].push(r)});var r=0,a=e.graph().nodeRankFactor;u.default.forEach(n,function(t,n){u.default.isUndefined(t)&&n%a!=0?--r:r&&u.default.forEach(t,function(t){e.node(t).rank+=r})})}function p(e,t,n,r){var a={width:0,height:0};return arguments.length>=4&&(a.rank=n,a.order=r),d(e,"border",a,t)}function m(e){return u.default.max(u.default.map(e.nodes(),function(t){var n=e.node(t).rank;if(!u.default.isUndefined(n))return n}))}function E(e,t){var n={lhs:[],rhs:[]};return u.default.forEach(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function b(e,t){var n=u.default.now();try{return t()}finally{console.log(e+" time: "+(u.default.now()-n)+"ms")}}function w(e,t){return t()}t.default={addDummyNode:d,simplify:f,asNonCompoundGraph:i,successorWeights:l,predecessorWeights:c,intersectRect:s,buildLayerMatrix:h,normalizeRanks:v,removeEmptyRanks:g,addBorderNode:p,maxRank:m,partition:E,time:b,notime:w}},function(e,t){e.exports=__webpack_require__(/*! graphlibrary */ "./node_modules/graphlibrary/index.js")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.longestPath=o,t.slack=d;var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};function o(e){var t={};u.default.forEach(e.sources(),function n(r){var a=e.node(r);if(u.default.has(t,r))return a.rank;t[r]=!0;var o=u.default.min(u.default.map(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}))||0;return a.rank=o})}function d(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}t.default={longestPath:o,slack:d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r},o=n(2),d=n(3);function f(e,t){return u.default.forEach(e.nodes(),function n(r){u.default.forEach(t.nodeEdges(r),function(a){var u=a.v,o=r===u?a.w:u;e.hasNode(o)||(0,d.slack)(t,a)||(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}),e.nodeCount()}function i(e,t){return u.default.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return(0,d.slack)(t,n)})}function l(e,t,n){u.default.forEach(e.nodes(),function(e){t.node(e).rank+=n})}t.default=function(e){var t=new o.Graph({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var a=void 0;f(t,e)<r;)a=i(t,e),l(t,e,t.hasNode(a.v)?(0,d.slack)(e,a):-(0,d.slack)(e,a));return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.positionX=p;var r=o(n(0)),a=n(2),u=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n={};return r.default.reduce(t,function(t,a){var u=0,o=0,d=t.length,f=r.default.last(a);return r.default.forEach(a,function(t,l){var c=function(e,t){if(e.node(t).dummy)return r.default.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),s=c?e.node(c).order:d;(c||t===f)&&(r.default.forEach(a.slice(o,l+1),function(t){r.default.forEach(e.predecessors(t),function(r){var a=e.node(r),o=a.order;!(o<u||s<o)||a.dummy&&e.node(t).dummy||i(n,r,t)})}),o=l+1,u=s)}),a}),n}function f(e,t){var n={};function a(t,a,u,o,d){var f=void 0;r.default.forEach(r.default.range(a,u),function(a){f=t[a],e.node(f).dummy&&r.default.forEach(e.predecessors(f),function(t){var r=e.node(t);r.dummy&&(r.order<o||r.order>d)&&i(n,t,f)})})}return r.default.reduce(t,function(t,n){var u=-1,o=void 0,d=0;return r.default.forEach(n,function(r,f){if("border"===e.node(r).dummy){var i=e.predecessors(r);i.length&&(o=e.node(i[0]).order,a(n,d,f,u,o),d=f,u=o)}a(n,d,n.length,o,t.length)}),n}),n}function i(e,t,n){if(t>n){var r=t;t=n,n=r}var a=e[t];a||(e[t]=a={}),a[n]=!0}function l(e,t,n){if(t>n){var a=t;t=n,n=a}return r.default.has(e[t],n)}function c(e,t,n,a){var u={},o={},d={};return r.default.forEach(t,function(e){r.default.forEach(e,function(e,t){u[e]=e,o[e]=e,d[e]=t})}),r.default.forEach(t,function(e){var t=-1;r.default.forEach(e,function(e){var f=a(e);if(f.length)for(var i=((f=r.default.sortBy(f,function(e){return d[e]})).length-1)/2,c=Math.floor(i),s=Math.ceil(i);c<=s;++c){var h=f[c];o[e]===e&&t<d[h]&&!l(n,e,h)&&(o[h]=e,o[e]=u[e]=u[h],t=d[h])}})}),{root:u,align:o}}function s(e,t,n,u,o){var d={},f=function(e,t,n,u){var o=new a.Graph,d=e.graph(),f=function(e,t,n){return function(a,u,o){var d=a.node(u),f=a.node(o),i=0,l=void 0;if(i+=d.width/2,r.default.has(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":l=-d.width/2;break;case"r":l=d.width/2}if(l&&(i+=n?l:-l),l=0,i+=(d.dummy?t:e)/2,i+=(f.dummy?t:e)/2,i+=f.width/2,r.default.has(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":l=f.width/2;break;case"r":l=-f.width/2}return l&&(i+=n?l:-l),l=0,i}}(d.nodesep,d.edgesep,u);return r.default.forEach(t,function(t){var a=void 0;r.default.forEach(t,function(t){var r=n[t];if(o.setNode(r),a){var u=n[a],d=o.edge(u,r);o.setEdge(u,r,Math.max(f(e,t,a),d||0))}a=t})}),o}(e,t,n,o),i={};r.default.forEach(f.nodes(),function e(t){r.default.has(i,t)||(i[t]=!0,d[t]=r.default.reduce(f.inEdges(t),function(t,n){return e(n.v),Math.max(t,d[n.v]+f.edge(n))},0))});var l=o?"borderLeft":"borderRight";return r.default.forEach(f.nodes(),function t(n){if(2!==i[n]){i[n]++;var a=e.node(n),u=r.default.reduce(f.outEdges(n),function(e,n){return t(n.w),Math.min(e,d[n.w]-f.edge(n))},Number.POSITIVE_INFINITY);u!==Number.POSITIVE_INFINITY&&a.borderType!==l&&(d[n]=Math.max(d[n],u))}}),r.default.forEach(u,function(e){d[e]=d[n[e]]}),d}function h(e,t){return r.default.minBy(r.default.values(t),function(t){var n=(r.default.minBy(r.default.toPairs(t),function(t){return t[1]-m(e,t[0])/2})||["k",0])[1];return(r.default.maxBy(r.default.toPairs(t),function(t){return t[1]+m(e,t[0])/2})||["k",0])[1]-n})}function v(e,t){var n=r.default.values(t),a=r.default.min(n),u=r.default.max(n);r.default.forEach(["u","d"],function(n){r.default.forEach(["l","r"],function(o){var d=n+o,f=e[d];if(f!==t){var i=r.default.values(f),l="l"===o?a-r.default.min(i):u-r.default.max(i);l&&(e[d]=r.default.mapValues(f,function(e){return e+l}))}})})}function g(e,t){return r.default.mapValues(e.ul,function(n,a){if(t)return e[t.toLowerCase()][a];var u=r.default.sortBy(r.default.map(e,a));return(u[1]+u[2])/2})}function p(e){var t=u.default.buildLayerMatrix(e),n=r.default.merge(d(e,t),f(e,t)),a={},o=void 0;r.default.forEach(["u","d"],function(u){o="u"===u?t:r.default.values(t).reverse(),r.default.forEach(["l","r"],function(t){"r"===t&&(o=r.default.map(o,function(e){return r.default.values(e).reverse()}));var d=r.default.bind("u"===u?e.predecessors:e.successors,e),f=c(0,o,n,d),i=s(e,o,f.root,f.align,"r"===t);"r"===t&&(i=r.default.mapValues(i,function(e){return-e})),a[u+t]=i})});var i=h(e,a);return v(a,i),g(a,e.graph().align)}function m(e,t){return e.node(t).width}t.default={positionX:p,findType1Conflicts:d,findType2Conflicts:f,addConflict:i,hasConflict:l,verticalAlignment:c,horizontalCompaction:s,alignCoordinates:v,findSmallestWidthAlignment:h,balance:g}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),a=o(n(1)),u=n(5);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){(function(e){var t=a.default.buildLayerMatrix(e),n=e.graph().ranksep,u=0;r.default.forEach(t,function(t){var a=r.default.max(r.default.map(t,function(t){return e.node(t).height}));r.default.forEach(t,function(t){e.node(t).y=u+a/2}),u+=a+n})})(e=a.default.asNonCompoundGraph(e)),r.default.forEach((0,u.positionX)(e),function(t,n){e.node(n).x=t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};t.default=function(e,t,n){var r={},a=void 0;u.default.forEach(n,function(n){for(var u=e.parent(n),o=void 0,d=void 0;u;){if((o=e.parent(u))?(d=r[o],r[o]=u):(d=a,a=u),d&&d!==u)return void t.setEdge(d,u);u=o}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r},o=n(2);t.default=function(e,t,n){var r=function(e){for(var t=void 0;e.hasNode(t=u.default.uniqueId("_root")););return t}(e),a=new o.Graph({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return u.default.forEach(e.nodes(),function(o){var d=e.node(o),f=e.parent(o);(d.rank===t||d.minRank<=t&&t<=d.maxRank)&&(a.setNode(o),a.setParent(o,f||r),u.default.forEach(e[n](o),function(t){var n=t.v===o?t.w:t.v,r=a.edge(n,o),d=u.default.isUndefined(r)?0:r.weight;a.setEdge(n,o,{weight:e.edge(t).weight+d})}),u.default.has(d,"minRank")&&a.setNode(o,{borderLeft:d.borderLeft[t],borderRight:d.borderRight[t]}))}),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),a=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){for(var a=void 0;t.length&&(a=r.default.last(t)).i<=n;)t.pop(),e.push(a.vs),n++;return n}t.default=function(e,t){var n,u=a.default.partition(e,function(e){return r.default.has(e,"barycenter")}),d=u.lhs,f=r.default.sortBy(u.rhs,function(e){return-e.i}),i=[],l=0,c=0,s=0;d.sort((n=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:n?t.i-e.i:e.i-t.i})),s=o(i,f,s),r.default.forEach(d,function(e){s+=e.vs.length,i.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,s=o(i,f,s)});var h={vs:r.default.flatten(i,!0)};return c&&(h.barycenter=l/c,h.weight=c),h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};t.default=function(e,t){var n={};return u.default.forEach(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};u.default.isUndefined(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),u.default.forEach(t.edges(),function(e){var t=n[e.v],r=n[e.w];u.default.isUndefined(t)||u.default.isUndefined(r)||(r.indegree++,t.out.push(n[e.w]))}),function(e){var t=[];function n(e){return function(t){var n,r,a,o;t.merged||(u.default.isUndefined(t.barycenter)||u.default.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&(r=t,a=0,o=0,(n=e).weight&&(a+=n.barycenter*n.weight,o+=n.weight),r.weight&&(a+=r.barycenter*r.weight,o+=r.weight),n.vs=r.vs.concat(n.vs),n.barycenter=a/o,n.weight=o,n.i=Math.min(r.i,n.i),r.merged=!0)}}function r(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var a=e.pop();t.push(a),u.default.forEach(a.in.reverse(),n(a)),u.default.forEach(a.out,r(a))}return u.default.chain(t).filter(function(e){return!e.merged}).map(function(e){return u.default.pick(e,["vs","i","barycenter","weight"])}).value()}(u.default.filter(n,function(e){return!e.indegree}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};t.default=function(e,t){return u.default.map(t,function(t){var n=e.inEdges(t);if(n.length){var r=u.default.reduce(n,function(t,n){var r=e.edge(n),a=e.node(n.v);return{sum:t.sum+r.weight*a.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(0)),a=d(n(11)),u=d(n(10)),o=d(n(9));function d(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t,n,d,f){var i=t.children(n),l=t.node(n),c=l?l.borderLeft:void 0,s=l?l.borderRight:void 0,h={};c&&(i=r.default.filter(i,function(e){return e!==c&&e!==s}));var v=(0,a.default)(t,i);r.default.forEach(v,function(n){if(t.children(n.v).length){var a=e(t,n.v,d,f);h[n.v]=a,r.default.has(a,"barycenter")&&(u=n,o=a,r.default.isUndefined(u.barycenter)?(u.barycenter=o.barycenter,u.weight=o.weight):(u.barycenter=(u.barycenter*u.weight+o.barycenter*o.weight)/(u.weight+o.weight),u.weight+=o.weight))}var u,o});var g=(0,u.default)(v,d);!function(e,t){r.default.forEach(e,function(e){e.vs=r.default.flatten(e.vs.map(function(e){return t[e]?t[e].vs:e}),!0)})}(g,h);var p=(0,o.default)(g,f);if(c&&(p.vs=r.default.flatten([c,p.vs,s],!0),t.predecessors(c).length)){var m=t.node(t.predecessors(c)[0]),E=t.node(t.predecessors(s)[0]);r.default.has(p,"barycenter")||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+m.order+E.order)/(p.weight+2),p.weight+=2}return p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};function o(e,t,n){for(var r=u.default.zipObject(n,u.default.map(n,function(e,t){return t})),a=u.default.flatten(u.default.map(t,function(t){return u.default.chain(e.outEdges(t)).map(function(t){return{pos:r[t.w],weight:e.edge(t).weight}}).sortBy("pos").value()}),!0),o=1;o<n.length;)o<<=1;var d=2*o-1;o-=1;var f=u.default.map(new Array(d),function(){return 0}),i=0;return u.default.forEach(a.forEach(function(e){var t=e.pos+o;f[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=f[t+1]),f[t=t-1>>1]+=e.weight;i+=e.weight*n})),i}t.default=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=o(e,t[r-1],t[r]);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t={},n=u.default.filter(e.nodes(),function(t){return!e.children(t).length}),r=u.default.max(u.default.map(n,function(t){return e.node(t).rank})),a=u.default.map(u.default.range(r+1),function(){return[]}),o=u.default.sortBy(n,function(t){return e.node(t).rank});return u.default.forEach(o,function n(r){if(!u.default.has(t,r)){t[r]=!0;var o=e.node(r);a[o.rank].push(r),u.default.forEach(e.successors(r),n)}}),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),a=n(2),u=c(n(14)),o=c(n(13)),d=c(n(12)),f=c(n(8)),i=c(n(7)),l=c(n(1));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return r.default.map(t,function(t){return(0,f.default)(e,t,n)})}function h(e,t){var n=new a.Graph;r.default.forEach(e,function(e){var a=e.graph().root,u=(0,d.default)(e,a,n,t);r.default.forEach(u.vs,function(t,n){e.node(t).order=n}),(0,i.default)(e,n,u.vs)})}function v(e,t){r.default.forEach(t,function(t){r.default.forEach(t,function(t,n){e.node(t).order=n})})}t.default=function(e){var t=l.default.maxRank(e),n=s(e,r.default.range(1,t+1),"inEdges"),a=s(e,r.default.range(t-1,-1,-1),"outEdges"),d=(0,u.default)(e);v(e,d);for(var f=Number.POSITIVE_INFINITY,i=void 0,c=0,g=0;g<4;++c,++g){h(c%2?n:a,c%4>=2),d=l.default.buildLayerMatrix(e);var p=(0,o.default)(e,d);p<f&&(g=0,i=r.default.cloneDeep(d),f=p)}v(e,i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};function o(e){u.default.forEach(e.nodes(),function(t){d(e.node(t))}),u.default.forEach(e.edges(),function(t){d(e.edge(t))})}function d(e){var t=e.width;e.width=e.height,e.height=t}function f(e){e.y=-e.y}function i(e){var t=e.x;e.x=e.y,e.y=t}t.default={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||o(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){u.default.forEach(e.nodes(),function(t){f(e.node(t))}),u.default.forEach(e.edges(),function(t){var n=e.edge(t);u.default.forEach(n.points,f),u.default.has(n,"y")&&f(n)})}(e),"lr"!==t&&"rl"!==t||(function(e){u.default.forEach(e.nodes(),function(t){i(e.node(t))}),u.default.forEach(e.edges(),function(t){var n=e.edge(t);u.default.forEach(n.points,i),u.default.has(n,"x")&&i(n)})}(e),o(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),a=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,u,o){var d={width:0,height:0,rank:o,borderType:t},f=u[t][o-1],i=a.default.addDummyNode(e,"border",d,n);u[t][o]=i,e.setParent(i,r),f&&e.setEdge(f,i,{weight:1})}t.default=function(e){r.default.forEach(e.children(),function t(n){var a=e.children(n),u=e.node(n);if(a.length&&r.default.forEach(a,t),r.default.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var d=u.minRank,f=u.maxRank+1;d<f;++d)o(e,"borderLeft","_bl",n,u,d),o(e,"borderRight","_br",n,u,d)}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),a=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}t.default={run:function(e){var t=a.default.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return r.default.forEach(e.children(),function(n){!function n(a,u){var o=e.children(a);o&&o.length&&r.default.forEach(o,function(e){n(e,u+1)}),t[a]=u}(n,1)}),t}(e),u=r.default.max(r.default.values(n))-1,o=2*u+1;e.graph().nestingRoot=t,r.default.forEach(e.edges(),function(t){e.edge(t).minlen*=o});var d=function(e){return r.default.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(e)+1;r.default.forEach(e.children(),function(f){!function e(t,n,u,o,d,f,i){var l=t.children(i);if(l.length){var c=a.default.addBorderNode(t,"_bt"),s=a.default.addBorderNode(t,"_bb"),h=t.node(i);t.setParent(c,i),h.borderTop=c,t.setParent(s,i),h.borderBottom=s,r.default.forEach(l,function(r){e(t,n,u,o,d,f,r);var a=t.node(r),l=a.borderTop?a.borderTop:r,h=a.borderBottom?a.borderBottom:r,v=a.borderTop?o:2*o,g=l!==h?1:d-f[i]+1;t.setEdge(c,l,{weight:v,minlen:g,nestingEdge:!0}),t.setEdge(h,s,{weight:v,minlen:g,nestingEdge:!0})}),t.parent(i)||t.setEdge(n,c,{weight:0,minlen:d+f[i]})}else i!==n&&t.setEdge(n,i,{weight:0,minlen:u})}(e,t,o,d,u,n,f)}),e.graph().nodeRankFactor=o},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.default.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),u=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t=function(e){var t={},n=0;return u.default.forEach(e.children(),function r(a){var o=n;u.default.forEach(e.children(a),r),t[a]={low:o,lim:n++}}),t}(e);u.default.forEach(e.graph().dummyChains,function(n){for(var r=e.node(n),a=r.edgeObj,u=function(e,t,n,r){var a=[],u=[],o=Math.min(t[n].low,t[r].low),d=Math.max(t[n].lim,t[r].lim),f=void 0,i=void 0;f=n;do{f=e.parent(f),a.push(f)}while(f&&(t[f].low>o||d>t[f].lim));for(i=f,f=r;(f=e.parent(f))!==i;)u.push(f);return{path:a.concat(u.reverse()),lca:i}}(e,t,a.v,a.w),o=u.path,d=u.lca,f=0,i=o[f],l=!0;n!==a.w;){if(r=e.node(n),l){for(;(i=o[f])!==d&&e.node(i).maxRank<r.rank;)f++;i===d&&(l=!1)}if(!l){for(;f<o.length-1&&e.node(i=o[f+1]).minRank<=r.rank;)f++;i=o[f]}e.setParent(n,i),n=e.successors(n)[0]}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(0)),a=n(2),u=f(n(4)),o=n(3),d=n(1);function f(e){return e&&e.__esModule?e:{default:e}}var i=a.alg.preorder,l=a.alg.postorder;function c(e){e=(0,d.simplify)(e),(0,o.longestPath)(e);var t=(0,u.default)(e);v(t),s(t,e);for(var n=void 0;n=g(t);)m(t,e,n,p(t,e,n))}function s(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.default.forEach(n,function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=h(e,t,n)}(e,t,n)})}function h(e,t,n){var a=e.node(n).parent,u=!0,o=t.edge(n,a),d=0;return o||(u=!1,o=t.edge(a,n)),d=o.weight,r.default.forEach(t.nodeEdges(n),function(r){var o,f,i=r.v===n,l=i?r.w:r.v;if(l!==a){var c=i===u,s=t.edge(r).weight;if(d+=c?s:-s,o=n,f=l,e.hasEdge(o,f)){var h=e.edge(n,l).cutvalue;d+=c?-h:h}}}),d}function v(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,a,u,o){var d=a;var f=t.node(u);n[u]=!0;r.default.forEach(t.neighbors(u),function(o){r.default.has(n,o)||(a=e(t,n,a,o,u))});f.low=d;f.lim=a++;o?f.parent=o:delete f.parent;return a}(e,{},1,t)}function g(e){return r.default.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function p(e,t,n){var a=n.v,u=n.w;t.hasEdge(a,u)||(a=n.w,u=n.v);var d=e.node(a),f=e.node(u),i=d,l=!1;d.lim>f.lim&&(i=f,l=!0);var c=r.default.filter(t.edges(),function(t){return l===E(e,e.node(t.v),i)&&l!==E(e,e.node(t.w),i)});return r.default.minBy(c,function(e){return(0,o.slack)(t,e)})}function m(e,t,n,a){var u=n.v,o=n.w;e.removeEdge(u,o),e.setEdge(a.v,a.w,{}),v(e),s(e,t),function(e,t){var n=r.default.find(e.nodes(),function(e){return!t.node(e).parent}),a=i(e,n);a=a.slice(1),r.default.forEach(a,function(n){var r=e.node(n).parent,a=t.edge(n,r),u=!1;a||(a=t.edge(r,n),u=!0),t.node(n).rank=t.node(r).rank+(u?a.minlen:-a.minlen)})}(e,t)}function E(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}c.initLowLimValues=v,c.initCutValues=s,c.calcCutValue=h,c.leaveEdge=g,c.enterEdge=p,c.exchangeEdges=m,t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=o(n(4)),u=o(n(20));function o(e){return e&&e.__esModule?e:{default:e}}var d=r.longestPath;function f(e){(0,u.default)(e)}t.default=function(e){switch(e.graph().ranker){case"network-simplex":f(e);break;case"tight-tree":!function(e){(0,r.longestPath)(e),(0,a.default)(e)}(e);break;case"longest-path":d(e);break;default:f(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),a=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}t.default={run:function(e){e.graph().dummyChains=[],r.default.forEach(e.edges(),function(t){!function(e,t){var n=t.v,r=e.node(n).rank,u=t.w,o=e.node(u).rank,d=t.name,f=e.edge(t),i=f.labelRank;if(o!==r+1){e.removeEdge(t);var l=void 0,c=void 0,s=void 0;for(s=0,++r;r<o;++s,++r)f.points=[],c={width:0,height:0,edgeLabel:f,edgeObj:t,rank:r},l=a.default.addDummyNode(e,"edge",c,"_d"),r===i&&(c.width=f.width,c.height=f.height,c.dummy="edge-label",c.labelpos=f.labelpos),e.setEdge(n,l,{weight:f.weight},d),0===s&&e.graph().dummyChains.push(l),n=l;e.setEdge(n,u,{weight:f.weight},d)}}(e,t)})},undo:function(e){r.default.forEach(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,a=null;for(e.setEdge(n.edgeObj,r);n.dummy;)a=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=a,n=e.node(t)})}}},function(e,t,n){"use strict";function r(){var e={};e._next=e._prev=e,this._sentinel=e}function a(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function u(e,t){if("_next"!==e&&"_prev"!==e)return t}Object.defineProperty(t,"__esModule",{value:!0}),r.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return a(t),t},r.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&a(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},r.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,u)),n=n._prev;return"["+e.join(", ")+"]"},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),a=n(2),u=o(n(23));function o(e){return e&&e.__esModule?e:{default:e}}var d=r.default.constant(1);function f(e,t,n,a,u){var o=u?[]:void 0;return r.default.forEach(e.inEdges(a.v),function(r){var a=e.edge(r),d=e.node(r.v);u&&o.push({v:r.v,w:r.w}),d.out-=a,i(t,n,d)}),r.default.forEach(e.outEdges(a.v),function(r){var a=e.edge(r),u=r.w,o=e.node(u);o.in-=a,i(t,n,o)}),e.removeNode(a.v),o}function i(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}t.default=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new a.Graph,o=0,d=0;r.default.forEach(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),r.default.forEach(e.edges(),function(e){var r=n.edge(e.v,e.w)||0,a=t(e),u=r+a;n.setEdge(e.v,e.w,u),d=Math.max(d,n.node(e.v).out+=a),o=Math.max(o,n.node(e.w).in+=a)});var f=r.default.range(d+o+3).map(function(){return new u.default}),l=o+1;return r.default.forEach(n.nodes(),function(e){i(f,l,n.node(e))}),{graph:n,buckets:f,zeroIdx:l}}(e,t||d),o=function(e,t,n){for(var r=[],a=t[t.length-1],u=t[0],o=void 0;e.nodeCount();){for(;o=u.dequeue();)f(e,t,n,o);for(;o=a.dequeue();)f(e,t,n,o);if(e.nodeCount())for(var d=t.length-2;d>0;--d)if(o=t[d].dequeue()){r=r.concat(f(e,t,n,o,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return r.default.flatten(r.default.map(o,function(t){return e.outEdges(t.v,t.w)}),!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),a=u(n(24));function u(e){return e&&e.__esModule?e:{default:e}}t.default={run:function(e){var t="greedy"===e.graph().acyclicer?(0,a.default)(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},a={};return r.default.forEach(e.nodes(),function u(o){r.default.has(a,o)||(a[o]=!0,n[o]=!0,r.default.forEach(e.outEdges(o),function(e){r.default.has(n,e.w)?t.push(e):u(e.w)}),delete n[o])}),t}(e);r.default.forEach(t,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.default.uniqueId("rev"))})},undo:function(e){r.default.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(0)),a=n(2),u=p(n(25)),o=p(n(22)),d=p(n(21)),f=n(1),i=p(f),l=p(n(19)),c=p(n(18)),s=p(n(17)),h=p(n(16)),v=p(n(15)),g=p(n(6));function p(e){return e&&e.__esModule?e:{default:e}}var m=["nodesep","edgesep","ranksep","marginx","marginy"],E={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],y={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],x={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function M(e,t){return r.default.mapValues(r.default.pick(e,t),Number)}function N(e){var t={};return r.default.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}t.default=function(e,t){var n=t&&t.debugTiming?i.default.time:i.default.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){return function(e){var t=new a.Graph({multigraph:!0,compound:!0}),n=N(e.graph());return t.setGraph(r.default.merge({},E,M(n,m),r.default.pick(n,b))),r.default.forEach(e.nodes(),function(n){var a=N(e.node(n));t.setNode(n,r.default.defaults(M(a,w),y)),t.setParent(n,e.parent(n))}),r.default.forEach(e.edges(),function(n){var a=N(e.edge(n));t.setEdge(n,r.default.merge({},x,M(a,_),r.default.pick(a,k)))}),t}(e)});n(" runLayout",function(){!function(e,t){t(" makeSpaceForEdgeLabels",function(){!function(e){var t=e.graph();t.ranksep/=2,r.default.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(e)}),t(" removeSelfEdges",function(){!function(e){r.default.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(e)}),t(" acyclic",function(){u.default.run(e)}),t(" nestingGraph.run",function(){c.default.run(e)}),t(" rank",function(){(0,d.default)(i.default.asNonCompoundGraph(e))}),t(" injectEdgeLabelProxies",function(){!function(e){r.default.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),a=e.node(t.w),u={rank:(a.rank-r.rank)/2+r.rank,e:t};i.default.addDummyNode(e,"edge-proxy",u,"_ep")}})}(e)}),t(" removeEmptyRanks",function(){(0,f.removeEmptyRanks)(e)}),t(" nestingGraph.cleanup",function(){c.default.cleanup(e)}),t(" normalizeRanks",function(){(0,f.normalizeRanks)(e)}),t(" assignRankMinMax",function(){!function(e){var t=0;r.default.forEach(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Math.max(t,r.maxRank))}),e.graph().maxRank=t}(e)}),t(" removeEdgeLabelProxies",function(){!function(e){r.default.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(e)}),t(" normalize.run",function(){o.default.run(e)}),t(" parentDummyChains",function(){(0,l.default)(e)}),t(" addBorderSegments",function(){(0,s.default)(e)}),t(" order",function(){(0,v.default)(e)}),t(" insertSelfEdges",function(){!function(e){var t=i.default.buildLayerMatrix(e);r.default.forEach(t,function(t){var n=0;r.default.forEach(t,function(t,a){var u=e.node(t);u.order=a+n,r.default.forEach(u.selfEdges,function(t){i.default.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:u.rank,order:a+ ++n,e:t.e,label:t.label},"_se")}),delete u.selfEdges})})}(e)}),t(" adjustCoordinateSystem",function(){h.default.adjust(e)}),t(" position",function(){(0,g.default)(e)}),t(" positionSelfEdges",function(){!function(e){r.default.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),a=r.x+r.width/2,u=r.y,o=n.x-a,d=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:a+2*o/3,y:u-d},{x:a+5*o/6,y:u-d},{x:a+o,y:u},{x:a+5*o/6,y:u+d},{x:a+2*o/3,y:u+d}],n.label.x=n.x,n.label.y=n.y}})}(e)}),t(" removeBorderNodes",function(){!function(e){r.default.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),a=e.node(n.borderTop),u=e.node(n.borderBottom),o=e.node(r.default.last(n.borderLeft)),d=e.node(r.default.last(n.borderRight));n.width=Math.abs(d.x-o.x),n.height=Math.abs(u.y-a.y),n.x=o.x+n.width/2,n.y=a.y+n.height/2}}),r.default.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(e)}),t(" normalize.undo",function(){o.default.undo(e)}),t(" fixupEdgeLabelCoords",function(){!function(e){r.default.forEach(e.edges(),function(t){var n=e.edge(t);if(r.default.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(e)}),t(" undoCoordinateSystem",function(){h.default.undo(e)}),t(" translateGraph",function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,a=Number.POSITIVE_INFINITY,u=0,o=e.graph(),d=o.marginx||0,f=o.marginy||0;function i(e){var r=e.x,o=e.y,d=e.width,f=e.height;t=Math.min(t,r-d/2),n=Math.max(n,r+d/2),a=Math.min(a,o-f/2),u=Math.max(u,o+f/2)}r.default.forEach(e.nodes(),function(t){i(e.node(t))}),r.default.forEach(e.edges(),function(t){var n=e.edge(t);r.default.has(n,"x")&&i(n)}),t-=d,a-=f,r.default.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=a}),r.default.forEach(e.edges(),function(n){var u=e.edge(n);r.default.forEach(u.points,function(e){e.x-=t,e.y-=a}),r.default.has(u,"x")&&(u.x-=t),r.default.has(u,"y")&&(u.y-=a)}),o.width=n-t+d,o.height=u-a+f}(e)}),t(" assignNodeIntersects",function(){!function(e){r.default.forEach(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),a=e.node(t.w),u=null,o=null;n.points?(u=n.points[0],o=n.points[n.points.length-1]):(n.points=[],u=a,o=r),n.points.unshift(i.default.intersectRect(r,u)),n.points.push(i.default.intersectRect(a,o))})}(e)}),t(" reversePoints",function(){!function(e){r.default.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}(e)}),t(" acyclic.undo",function(){u.default.undo(e)})}(t,n)}),n(" updateInputGraph",function(){!function(e,t){r.default.forEach(e.nodes(),function(n){var r=e.node(n),a=t.node(n);r&&(r.x=a.x,r.y=a.y,t.children(n).length&&(r.width=a.width,r.height=a.height))}),r.default.forEach(e.edges(),function(n){var a=e.edge(n),u=t.edge(n);a.points=u.points,r.default.has(u,"x")&&(a.x=u.x,a.y=u.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(26),u=(r=a)&&r.__esModule?r:{default:r};t.default={layout:u.default}}]);
  22195. //# sourceMappingURL=dagre-layout.core.js.map
  22196. /***/ }),
  22197. /***/ "./node_modules/escaper/dist/escaper.js":
  22198. /*!**********************************************!*\
  22199. !*** ./node_modules/escaper/dist/escaper.js ***!
  22200. \**********************************************/
  22201. /*! no static exports found */
  22202. /***/ (function(module, exports, __webpack_require__) {
  22203. /*!
  22204. * Escaper v2.5.3
  22205. * https://github.com/kobezzza/Escaper
  22206. *
  22207. * Released under the MIT license
  22208. * https://github.com/kobezzza/Escaper/blob/master/LICENSE
  22209. *
  22210. * Date: Tue, 23 Jan 2018 15:58:45 GMT
  22211. */
  22212. (function (global, factory) {
  22213. true ? factory(exports) :
  22214. undefined;
  22215. }(this, (function (exports) { 'use strict';
  22216. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  22217. return typeof obj;
  22218. } : function (obj) {
  22219. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  22220. };
  22221. var Escaper = void 0;
  22222. var escaper = Escaper = {
  22223. VERSION: [2, 5, 3],
  22224. content: [],
  22225. cache: {},
  22226. snakeskinRgxp: null,
  22227. symbols: null,
  22228. replace: replace,
  22229. paste: paste
  22230. };
  22231. var stringLiterals = {
  22232. '"': true,
  22233. '\'': true,
  22234. '`': true
  22235. };
  22236. var literals = {
  22237. '/': true
  22238. };
  22239. for (var key in stringLiterals) {
  22240. if (!stringLiterals.hasOwnProperty(key)) {
  22241. break;
  22242. }
  22243. literals[key] = true;
  22244. }
  22245. var singleComments = {
  22246. '//': true,
  22247. '//*': true,
  22248. '//!': true,
  22249. '//#': true,
  22250. '//@': true,
  22251. '//$': true
  22252. };
  22253. var multComments = {
  22254. '/*': true,
  22255. '/**': true,
  22256. '/*!': true,
  22257. '/*#': true,
  22258. '/*@': true,
  22259. '/*$': true
  22260. };
  22261. var keyArr = [];
  22262. var finalMap = {};
  22263. for (var _key in literals) {
  22264. if (!literals.hasOwnProperty(_key)) {
  22265. break;
  22266. }
  22267. keyArr.push(_key);
  22268. finalMap[_key] = true;
  22269. }
  22270. for (var _key2 in singleComments) {
  22271. if (!singleComments.hasOwnProperty(_key2)) {
  22272. break;
  22273. }
  22274. keyArr.push(_key2);
  22275. finalMap[_key2] = true;
  22276. }
  22277. for (var _key3 in multComments) {
  22278. if (!multComments.hasOwnProperty(_key3)) {
  22279. break;
  22280. }
  22281. keyArr.push(_key3);
  22282. finalMap[_key3] = true;
  22283. }
  22284. var rgxpFlags = [];
  22285. var rgxpFlagsMap = {
  22286. 'g': true,
  22287. 'm': true,
  22288. 'i': true,
  22289. 'y': true,
  22290. 'u': true
  22291. };
  22292. for (var _key4 in rgxpFlagsMap) {
  22293. if (!rgxpFlagsMap.hasOwnProperty(_key4)) {
  22294. break;
  22295. }
  22296. rgxpFlags.push(_key4);
  22297. }
  22298. var escapeEndMap = {
  22299. '-': true,
  22300. '+': true,
  22301. '*': true,
  22302. '%': true,
  22303. '~': true,
  22304. '>': true,
  22305. '<': true,
  22306. '^': true,
  22307. ',': true,
  22308. ';': true,
  22309. '=': true,
  22310. '|': true,
  22311. '&': true,
  22312. '!': true,
  22313. '?': true,
  22314. ':': true,
  22315. '(': true,
  22316. '{': true,
  22317. '[': true
  22318. };
  22319. var escapeEndWordMap = {
  22320. 'return': true,
  22321. 'yield': true,
  22322. 'await': true,
  22323. 'typeof': true,
  22324. 'void': true,
  22325. 'instanceof': true,
  22326. 'delete': true,
  22327. 'in': true,
  22328. 'new': true,
  22329. 'of': true
  22330. };
  22331. /**
  22332. * @param {!Object} obj
  22333. * @param {!Object} p
  22334. * @param {(boolean|number)} val
  22335. */
  22336. function mix(obj, p, val) {
  22337. for (var _key5 in obj) {
  22338. if (!obj.hasOwnProperty(_key5)) {
  22339. break;
  22340. }
  22341. if (_key5 in p === false) {
  22342. p[_key5] = val;
  22343. }
  22344. }
  22345. }
  22346. var symbols = void 0;
  22347. var snakeskinRgxp = void 0;
  22348. var uSRgxp = /[^\s/]/;
  22349. var wRgxp = /[a-z]/;
  22350. var sRgxp = /\s/;
  22351. var nRgxp = /[\r\n]/;
  22352. var posRgxp = /\${pos}/g;
  22353. var objMap = {
  22354. 'object': true,
  22355. 'function': true
  22356. };
  22357. /**
  22358. * Replaces all found blocks ' ... ', " ... ", ` ... `, / ... /, // ..., /* ... *\/ to
  22359. * __ESCAPER_QUOT__number_ in a string and returns a new string
  22360. *
  22361. * @param {string} str - source string
  22362. * @param {(Object<string, boolean>|boolean)=} [opt_withCommentsOrParams=false] - parameters:
  22363. *
  22364. * (if a parameter value is set to -1, then all found matches will be removed from the final string,
  22365. * or if the value will be set to true/false they will be included/excluded)
  22366. *
  22367. * *) @label - template for replacement, e.g. __ESCAPER_QUOT__${pos}_
  22368. * *) @all - replaces all found matches
  22369. * *) @comments - replaces all kinds of comments
  22370. * *) @strings - replaces all kinds of string literals
  22371. * *) @literals - replaces all kinds of string literals and regular expressions
  22372. * *) `
  22373. * *) '
  22374. * *) "
  22375. * *) /
  22376. * *) //
  22377. * *) //*
  22378. * *) //!
  22379. * *) //#
  22380. * *) //@
  22381. * *) //$
  22382. * *) /*
  22383. * *) /**
  22384. * *) /*!
  22385. * *) /*#
  22386. * *) /*@
  22387. * *) /*$
  22388. *
  22389. * OR if the value is boolean, then will be replaced all found comments (true) / literals (false)
  22390. *
  22391. * @param {Array=} [opt_content=Escaper.content] - array for matches
  22392. * @param {?boolean=} [opt_snakeskin] - private parameter for using with Snakeskin
  22393. * @return {string}
  22394. */
  22395. function replace(str, opt_withCommentsOrParams, opt_content, opt_snakeskin) {
  22396. symbols = symbols || Escaper.symbols || 'a-z';
  22397. snakeskinRgxp = snakeskinRgxp || Escaper.snakeskinRgxp || new RegExp('[!$' + symbols + '_]', 'i');
  22398. var _Escaper = Escaper,
  22399. cache = _Escaper.cache,
  22400. content = _Escaper.content;
  22401. var isObj = Boolean(opt_withCommentsOrParams && objMap[typeof opt_withCommentsOrParams === 'undefined' ? 'undefined' : _typeof(opt_withCommentsOrParams)]);
  22402. var p = isObj ? Object(opt_withCommentsOrParams) : {};
  22403. function mark(pos) {
  22404. if (p['@label']) {
  22405. return p['@label'].replace(posRgxp, pos);
  22406. }
  22407. return '__ESCAPER_QUOT__' + pos + '_';
  22408. }
  22409. var withComments = false;
  22410. if (typeof opt_withCommentsOrParams === 'boolean') {
  22411. withComments = Boolean(opt_withCommentsOrParams);
  22412. }
  22413. if ('@comments' in p) {
  22414. mix(multComments, p, p['@comments']);
  22415. mix(singleComments, p, p['@comments']);
  22416. delete p['@comments'];
  22417. }
  22418. if ('@strings' in p) {
  22419. mix(stringLiterals, p, p['@strings']);
  22420. delete p['@strings'];
  22421. }
  22422. if ('@literals' in p) {
  22423. mix(literals, p, p['@literals']);
  22424. delete p['@literals'];
  22425. }
  22426. if ('@all' in p) {
  22427. mix(finalMap, p, p['@all']);
  22428. delete p['@all'];
  22429. }
  22430. var cacheKey = '';
  22431. for (var i = -1; ++i < keyArr.length;) {
  22432. var el = keyArr[i];
  22433. if (multComments[el] || singleComments[el]) {
  22434. p[el] = withComments || p[el];
  22435. } else {
  22436. p[el] = p[el] || !isObj;
  22437. }
  22438. cacheKey += p[el] + ',';
  22439. }
  22440. var initStr = str,
  22441. stack = opt_content || content;
  22442. if (stack === content && cache[cacheKey] && cache[cacheKey][initStr]) {
  22443. return cache[cacheKey][initStr];
  22444. }
  22445. var begin = false,
  22446. end = true;
  22447. var escape = false,
  22448. comment = false;
  22449. var selectionStart = 0,
  22450. block = false;
  22451. var templateVar = 0,
  22452. filterStart = false;
  22453. var cut = void 0,
  22454. label = void 0;
  22455. var part = '',
  22456. rPart = '';
  22457. for (var _i = -1; ++_i < str.length;) {
  22458. var _el = str.charAt(_i);
  22459. var next = str.charAt(_i + 1),
  22460. word = str.substr(_i, 2),
  22461. extWord = str.substr(_i, 3);
  22462. if (!comment) {
  22463. if (!begin) {
  22464. if (_el === '/') {
  22465. if (singleComments[word] || multComments[word]) {
  22466. if (singleComments[extWord] || multComments[extWord]) {
  22467. comment = extWord;
  22468. } else {
  22469. comment = word;
  22470. }
  22471. }
  22472. if (comment) {
  22473. selectionStart = _i;
  22474. continue;
  22475. }
  22476. }
  22477. if (escapeEndMap[_el] || escapeEndWordMap[rPart]) {
  22478. end = true;
  22479. rPart = '';
  22480. } else if (uSRgxp.test(_el)) {
  22481. end = false;
  22482. }
  22483. if (wRgxp.test(_el)) {
  22484. part += _el;
  22485. } else {
  22486. rPart = part;
  22487. part = '';
  22488. }
  22489. var skip = false;
  22490. if (opt_snakeskin) {
  22491. if (_el === '|' && snakeskinRgxp.test(next)) {
  22492. filterStart = true;
  22493. end = false;
  22494. skip = true;
  22495. } else if (filterStart && sRgxp.test(_el)) {
  22496. filterStart = false;
  22497. end = true;
  22498. skip = true;
  22499. }
  22500. }
  22501. if (!skip) {
  22502. if (escapeEndMap[_el]) {
  22503. end = true;
  22504. } else if (uSRgxp.test(_el)) {
  22505. end = false;
  22506. }
  22507. }
  22508. }
  22509. // [] inside RegExp
  22510. if (begin === '/' && !escape) {
  22511. if (_el === '[') {
  22512. block = true;
  22513. } else if (_el === ']') {
  22514. block = false;
  22515. }
  22516. }
  22517. if (!begin && templateVar) {
  22518. if (_el === '}') {
  22519. templateVar--;
  22520. } else if (_el === '{') {
  22521. templateVar++;
  22522. }
  22523. if (!templateVar) {
  22524. _el = '`';
  22525. }
  22526. }
  22527. if (begin === '`' && !escape && word === '${') {
  22528. _el = '`';
  22529. _i++;
  22530. templateVar++;
  22531. }
  22532. if (finalMap[_el] && (_el !== '/' || end) && !begin) {
  22533. begin = _el;
  22534. selectionStart = _i;
  22535. } else if (begin && (_el === '\\' || escape)) {
  22536. escape = !escape;
  22537. } else if (finalMap[_el] && begin === _el && !escape && (begin !== '/' || !block)) {
  22538. if (_el === '/') {
  22539. for (var j = -1; ++j < rgxpFlags.length;) {
  22540. if (rgxpFlagsMap[str.charAt(_i + 1)]) {
  22541. _i++;
  22542. }
  22543. }
  22544. }
  22545. begin = false;
  22546. end = false;
  22547. if (p[_el]) {
  22548. cut = str.substring(selectionStart, _i + 1);
  22549. if (p[_el] === -1) {
  22550. label = '';
  22551. } else {
  22552. label = mark(stack.length);
  22553. stack.push(cut);
  22554. }
  22555. str = str.substring(0, selectionStart) + label + str.substring(_i + 1);
  22556. _i += label.length - cut.length;
  22557. }
  22558. }
  22559. } else if (nRgxp.test(next) && singleComments[comment] || multComments[_el + str.charAt(_i - 1)] && _i - selectionStart > 2 && multComments[comment]) {
  22560. if (p[comment]) {
  22561. cut = str.substring(selectionStart, _i + 1);
  22562. if (p[comment] === -1) {
  22563. label = '';
  22564. } else {
  22565. label = mark(stack.length);
  22566. stack.push(cut);
  22567. }
  22568. str = str.substring(0, selectionStart) + label + str.substring(_i + 1);
  22569. _i += label.length - cut.length;
  22570. }
  22571. comment = false;
  22572. }
  22573. }
  22574. if (stack === content) {
  22575. cache[cacheKey] = cache[cacheKey] || {};
  22576. cache[cacheKey][initStr] = str;
  22577. }
  22578. return str;
  22579. }
  22580. var pasteRgxp = /__ESCAPER_QUOT__(\d+)_/g;
  22581. /**
  22582. * Replaces all found blocks __ESCAPER_QUOT__number_ to real content in a string
  22583. * and returns a new string
  22584. *
  22585. * @param {string} str - source string
  22586. * @param {Array=} [opt_content=Escaper.content] - array of matches
  22587. * @param {RegExp=} [opt_rgxp] - RegExp for searching, e.g. /__ESCAPER_QUOT__(\d+)_/g
  22588. * @return {string}
  22589. */
  22590. function paste(str, opt_content, opt_rgxp) {
  22591. return str.replace(opt_rgxp || pasteRgxp, function (str, pos) {
  22592. return (opt_content || Escaper.content)[pos];
  22593. });
  22594. }
  22595. exports['default'] = escaper;
  22596. exports.replace = replace;
  22597. exports.paste = paste;
  22598. Object.defineProperty(exports, '__esModule', { value: true });
  22599. })));
  22600. /***/ }),
  22601. /***/ "./node_modules/graphlibrary/index.js":
  22602. /*!********************************************!*\
  22603. !*** ./node_modules/graphlibrary/index.js ***!
  22604. \********************************************/
  22605. /*! no static exports found */
  22606. /***/ (function(module, exports, __webpack_require__) {
  22607. module.exports = {
  22608. Graph: __webpack_require__(/*! ./lib/graph */ "./node_modules/graphlibrary/lib/graph.js"),
  22609. json: __webpack_require__(/*! ./lib/json */ "./node_modules/graphlibrary/lib/json.js"),
  22610. alg: __webpack_require__(/*! ./lib/alg */ "./node_modules/graphlibrary/lib/alg/index.js")
  22611. }
  22612. /***/ }),
  22613. /***/ "./node_modules/graphlibrary/lib/alg/components.js":
  22614. /*!*********************************************************!*\
  22615. !*** ./node_modules/graphlibrary/lib/alg/components.js ***!
  22616. \*********************************************************/
  22617. /*! no static exports found */
  22618. /***/ (function(module, exports, __webpack_require__) {
  22619. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22620. module.exports = components
  22621. function components (g) {
  22622. const visited = {}
  22623. const cmpts = []
  22624. let cmpt
  22625. function dfs (v) {
  22626. if (_.has(visited, v)) return
  22627. visited[v] = true
  22628. cmpt.push(v)
  22629. _.each(g.successors(v), dfs)
  22630. _.each(g.predecessors(v), dfs)
  22631. }
  22632. _.each(g.nodes(), function (v) {
  22633. cmpt = []
  22634. dfs(v)
  22635. if (cmpt.length) {
  22636. cmpts.push(cmpt)
  22637. }
  22638. })
  22639. return cmpts
  22640. }
  22641. /***/ }),
  22642. /***/ "./node_modules/graphlibrary/lib/alg/dfs.js":
  22643. /*!**************************************************!*\
  22644. !*** ./node_modules/graphlibrary/lib/alg/dfs.js ***!
  22645. \**************************************************/
  22646. /*! no static exports found */
  22647. /***/ (function(module, exports, __webpack_require__) {
  22648. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22649. module.exports = dfs
  22650. /*
  22651. * A helper that preforms a pre- or post-order traversal on the input graph
  22652. * and returns the nodes in the order they were visited. If the graph is
  22653. * undirected then this algorithm will navigate using neighbors. If the graph
  22654. * is directed then this algorithm will navigate using successors.
  22655. *
  22656. * Order must be one of "pre" or "post".
  22657. */
  22658. function dfs (g, vs, order) {
  22659. if (!_.isArray(vs)) {
  22660. vs = [vs]
  22661. }
  22662. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g)
  22663. const acc = []
  22664. const visited = {}
  22665. _.each(vs, function (v) {
  22666. if (!g.hasNode(v)) {
  22667. throw new Error('Graph does not have node: ' + v)
  22668. }
  22669. doDfs(g, v, order === 'post', visited, navigation, acc)
  22670. })
  22671. return acc
  22672. }
  22673. function doDfs (g, v, postorder, visited, navigation, acc) {
  22674. if (!_.has(visited, v)) {
  22675. visited[v] = true
  22676. if (!postorder) { acc.push(v) }
  22677. _.each(navigation(v), function (w) {
  22678. doDfs(g, w, postorder, visited, navigation, acc)
  22679. })
  22680. if (postorder) { acc.push(v) }
  22681. }
  22682. }
  22683. /***/ }),
  22684. /***/ "./node_modules/graphlibrary/lib/alg/dijkstra-all.js":
  22685. /*!***********************************************************!*\
  22686. !*** ./node_modules/graphlibrary/lib/alg/dijkstra-all.js ***!
  22687. \***********************************************************/
  22688. /*! no static exports found */
  22689. /***/ (function(module, exports, __webpack_require__) {
  22690. const dijkstra = __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlibrary/lib/alg/dijkstra.js")
  22691. const _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22692. module.exports = dijkstraAll
  22693. function dijkstraAll (g, weightFunc, edgeFunc) {
  22694. return _.transform(g.nodes(), function (acc, v) {
  22695. acc[v] = dijkstra(g, v, weightFunc, edgeFunc)
  22696. }, {})
  22697. }
  22698. /***/ }),
  22699. /***/ "./node_modules/graphlibrary/lib/alg/dijkstra.js":
  22700. /*!*******************************************************!*\
  22701. !*** ./node_modules/graphlibrary/lib/alg/dijkstra.js ***!
  22702. \*******************************************************/
  22703. /*! no static exports found */
  22704. /***/ (function(module, exports, __webpack_require__) {
  22705. const _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22706. const PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlibrary/lib/data/priority-queue.js")
  22707. module.exports = dijkstra
  22708. var DEFAULT_WEIGHT_FUNC = _.constant(1)
  22709. function dijkstra (g, source, weightFn, edgeFn) {
  22710. return runDijkstra(g, String(source),
  22711. weightFn || DEFAULT_WEIGHT_FUNC,
  22712. edgeFn || function (v) { return g.outEdges(v) })
  22713. }
  22714. function runDijkstra (g, source, weightFn, edgeFn) {
  22715. const results = {}
  22716. const pq = new PriorityQueue()
  22717. let v, vEntry
  22718. var updateNeighbors = function (edge) {
  22719. const w = edge.v !== v ? edge.v : edge.w
  22720. const wEntry = results[w]
  22721. const weight = weightFn(edge)
  22722. const distance = vEntry.distance + weight
  22723. if (weight < 0) {
  22724. throw new Error('dijkstra does not allow negative edge weights. ' +
  22725. 'Bad edge: ' + edge + ' Weight: ' + weight)
  22726. }
  22727. if (distance < wEntry.distance) {
  22728. wEntry.distance = distance
  22729. wEntry.predecessor = v
  22730. pq.decrease(w, distance)
  22731. }
  22732. }
  22733. g.nodes().forEach(function (v) {
  22734. var distance = v === source ? 0 : Number.POSITIVE_INFINITY
  22735. results[v] = { distance: distance }
  22736. pq.add(v, distance)
  22737. })
  22738. while (pq.size() > 0) {
  22739. v = pq.removeMin()
  22740. vEntry = results[v]
  22741. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  22742. break
  22743. }
  22744. edgeFn(v).forEach(updateNeighbors)
  22745. }
  22746. return results
  22747. }
  22748. /***/ }),
  22749. /***/ "./node_modules/graphlibrary/lib/alg/find-cycles.js":
  22750. /*!**********************************************************!*\
  22751. !*** ./node_modules/graphlibrary/lib/alg/find-cycles.js ***!
  22752. \**********************************************************/
  22753. /*! no static exports found */
  22754. /***/ (function(module, exports, __webpack_require__) {
  22755. const _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22756. const tarjan = __webpack_require__(/*! ./tarjan */ "./node_modules/graphlibrary/lib/alg/tarjan.js")
  22757. module.exports = findCycles
  22758. function findCycles (g) {
  22759. return _.filter(tarjan(g), function (cmpt) {
  22760. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]))
  22761. })
  22762. }
  22763. /***/ }),
  22764. /***/ "./node_modules/graphlibrary/lib/alg/floyd-warshall.js":
  22765. /*!*************************************************************!*\
  22766. !*** ./node_modules/graphlibrary/lib/alg/floyd-warshall.js ***!
  22767. \*************************************************************/
  22768. /*! no static exports found */
  22769. /***/ (function(module, exports, __webpack_require__) {
  22770. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22771. module.exports = floydWarshall
  22772. var DEFAULT_WEIGHT_FUNC = _.constant(1)
  22773. function floydWarshall (g, weightFn, edgeFn) {
  22774. return runFloydWarshall(g,
  22775. weightFn || DEFAULT_WEIGHT_FUNC,
  22776. edgeFn || function (v) { return g.outEdges(v) })
  22777. }
  22778. function runFloydWarshall (g, weightFn, edgeFn) {
  22779. const results = {}
  22780. const nodes = g.nodes()
  22781. nodes.forEach(function (v) {
  22782. results[v] = {}
  22783. results[v][v] = { distance: 0 }
  22784. nodes.forEach(function (w) {
  22785. if (v !== w) {
  22786. results[v][w] = { distance: Number.POSITIVE_INFINITY }
  22787. }
  22788. })
  22789. edgeFn(v).forEach(function (edge) {
  22790. const w = edge.v === v ? edge.w : edge.v
  22791. const d = weightFn(edge)
  22792. results[v][w] = { distance: d, predecessor: v }
  22793. })
  22794. })
  22795. nodes.forEach(function (k) {
  22796. var rowK = results[k]
  22797. nodes.forEach(function (i) {
  22798. var rowI = results[i]
  22799. nodes.forEach(function (j) {
  22800. var ik = rowI[k]
  22801. var kj = rowK[j]
  22802. var ij = rowI[j]
  22803. var altDistance = ik.distance + kj.distance
  22804. if (altDistance < ij.distance) {
  22805. ij.distance = altDistance
  22806. ij.predecessor = kj.predecessor
  22807. }
  22808. })
  22809. })
  22810. })
  22811. return results
  22812. }
  22813. /***/ }),
  22814. /***/ "./node_modules/graphlibrary/lib/alg/index.js":
  22815. /*!****************************************************!*\
  22816. !*** ./node_modules/graphlibrary/lib/alg/index.js ***!
  22817. \****************************************************/
  22818. /*! no static exports found */
  22819. /***/ (function(module, exports, __webpack_require__) {
  22820. module.exports = {
  22821. components: __webpack_require__(/*! ./components */ "./node_modules/graphlibrary/lib/alg/components.js"),
  22822. dijkstra: __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlibrary/lib/alg/dijkstra.js"),
  22823. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "./node_modules/graphlibrary/lib/alg/dijkstra-all.js"),
  22824. findCycles: __webpack_require__(/*! ./find-cycles */ "./node_modules/graphlibrary/lib/alg/find-cycles.js"),
  22825. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "./node_modules/graphlibrary/lib/alg/floyd-warshall.js"),
  22826. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "./node_modules/graphlibrary/lib/alg/is-acyclic.js"),
  22827. postorder: __webpack_require__(/*! ./postorder */ "./node_modules/graphlibrary/lib/alg/postorder.js"),
  22828. preorder: __webpack_require__(/*! ./preorder */ "./node_modules/graphlibrary/lib/alg/preorder.js"),
  22829. prim: __webpack_require__(/*! ./prim */ "./node_modules/graphlibrary/lib/alg/prim.js"),
  22830. tarjan: __webpack_require__(/*! ./tarjan */ "./node_modules/graphlibrary/lib/alg/tarjan.js"),
  22831. topsort: __webpack_require__(/*! ./topsort */ "./node_modules/graphlibrary/lib/alg/topsort.js")
  22832. }
  22833. /***/ }),
  22834. /***/ "./node_modules/graphlibrary/lib/alg/is-acyclic.js":
  22835. /*!*********************************************************!*\
  22836. !*** ./node_modules/graphlibrary/lib/alg/is-acyclic.js ***!
  22837. \*********************************************************/
  22838. /*! no static exports found */
  22839. /***/ (function(module, exports, __webpack_require__) {
  22840. var topsort = __webpack_require__(/*! ./topsort */ "./node_modules/graphlibrary/lib/alg/topsort.js")
  22841. module.exports = isAcyclic
  22842. function isAcyclic (g) {
  22843. try {
  22844. topsort(g)
  22845. } catch (e) {
  22846. if (e instanceof topsort.CycleException) {
  22847. return false
  22848. }
  22849. throw e
  22850. }
  22851. return true
  22852. }
  22853. /***/ }),
  22854. /***/ "./node_modules/graphlibrary/lib/alg/postorder.js":
  22855. /*!********************************************************!*\
  22856. !*** ./node_modules/graphlibrary/lib/alg/postorder.js ***!
  22857. \********************************************************/
  22858. /*! no static exports found */
  22859. /***/ (function(module, exports, __webpack_require__) {
  22860. var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlibrary/lib/alg/dfs.js")
  22861. module.exports = postorder
  22862. function postorder (g, vs) {
  22863. return dfs(g, vs, 'post')
  22864. }
  22865. /***/ }),
  22866. /***/ "./node_modules/graphlibrary/lib/alg/preorder.js":
  22867. /*!*******************************************************!*\
  22868. !*** ./node_modules/graphlibrary/lib/alg/preorder.js ***!
  22869. \*******************************************************/
  22870. /*! no static exports found */
  22871. /***/ (function(module, exports, __webpack_require__) {
  22872. var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlibrary/lib/alg/dfs.js")
  22873. module.exports = preorder
  22874. function preorder (g, vs) {
  22875. return dfs(g, vs, 'pre')
  22876. }
  22877. /***/ }),
  22878. /***/ "./node_modules/graphlibrary/lib/alg/prim.js":
  22879. /*!***************************************************!*\
  22880. !*** ./node_modules/graphlibrary/lib/alg/prim.js ***!
  22881. \***************************************************/
  22882. /*! no static exports found */
  22883. /***/ (function(module, exports, __webpack_require__) {
  22884. const _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22885. const Graph = __webpack_require__(/*! ../graph */ "./node_modules/graphlibrary/lib/graph.js")
  22886. const PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlibrary/lib/data/priority-queue.js")
  22887. module.exports = prim
  22888. function prim (g, weightFunc) {
  22889. const result = new Graph()
  22890. const parents = {}
  22891. const pq = new PriorityQueue()
  22892. let v
  22893. function updateNeighbors (edge) {
  22894. const w = edge.v === v ? edge.w : edge.v
  22895. const pri = pq.priority(w)
  22896. if (pri !== undefined) {
  22897. var edgeWeight = weightFunc(edge)
  22898. if (edgeWeight < pri) {
  22899. parents[w] = v
  22900. pq.decrease(w, edgeWeight)
  22901. }
  22902. }
  22903. }
  22904. if (g.nodeCount() === 0) {
  22905. return result
  22906. }
  22907. _.each(g.nodes(), function (v) {
  22908. pq.add(v, Number.POSITIVE_INFINITY)
  22909. result.setNode(v)
  22910. })
  22911. // Start from an arbitrary node
  22912. pq.decrease(g.nodes()[0], 0)
  22913. var init = false
  22914. while (pq.size() > 0) {
  22915. v = pq.removeMin()
  22916. if (_.has(parents, v)) {
  22917. result.setEdge(v, parents[v])
  22918. } else if (init) {
  22919. throw new Error('Input graph is not connected: ' + g)
  22920. } else {
  22921. init = true
  22922. }
  22923. g.nodeEdges(v).forEach(updateNeighbors)
  22924. }
  22925. return result
  22926. }
  22927. /***/ }),
  22928. /***/ "./node_modules/graphlibrary/lib/alg/tarjan.js":
  22929. /*!*****************************************************!*\
  22930. !*** ./node_modules/graphlibrary/lib/alg/tarjan.js ***!
  22931. \*****************************************************/
  22932. /*! no static exports found */
  22933. /***/ (function(module, exports, __webpack_require__) {
  22934. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22935. module.exports = tarjan
  22936. function tarjan (g) {
  22937. let index = 0
  22938. const stack = []
  22939. const visited = {} // node id -> { onStack, lowlink, index }
  22940. const results = []
  22941. function dfs (v) {
  22942. var entry = visited[v] = {
  22943. onStack: true,
  22944. lowlink: index,
  22945. index: index++
  22946. }
  22947. stack.push(v)
  22948. g.successors(v).forEach(function (w) {
  22949. if (!_.has(visited, w)) {
  22950. dfs(w)
  22951. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink)
  22952. } else if (visited[w].onStack) {
  22953. entry.lowlink = Math.min(entry.lowlink, visited[w].index)
  22954. }
  22955. })
  22956. if (entry.lowlink === entry.index) {
  22957. const cmpt = []
  22958. let w
  22959. do {
  22960. w = stack.pop()
  22961. visited[w].onStack = false
  22962. cmpt.push(w)
  22963. } while (v !== w)
  22964. results.push(cmpt)
  22965. }
  22966. }
  22967. g.nodes().forEach(function (v) {
  22968. if (!_.has(visited, v)) {
  22969. dfs(v)
  22970. }
  22971. })
  22972. return results
  22973. }
  22974. /***/ }),
  22975. /***/ "./node_modules/graphlibrary/lib/alg/topsort.js":
  22976. /*!******************************************************!*\
  22977. !*** ./node_modules/graphlibrary/lib/alg/topsort.js ***!
  22978. \******************************************************/
  22979. /*! no static exports found */
  22980. /***/ (function(module, exports, __webpack_require__) {
  22981. const _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  22982. module.exports = topsort
  22983. topsort.CycleException = CycleException
  22984. function topsort (g) {
  22985. const visited = {}
  22986. const stack = {}
  22987. const results = []
  22988. function visit (node) {
  22989. if (_.has(stack, node)) {
  22990. throw new CycleException()
  22991. }
  22992. if (!_.has(visited, node)) {
  22993. stack[node] = true
  22994. visited[node] = true
  22995. _.each(g.predecessors(node), visit)
  22996. delete stack[node]
  22997. results.push(node)
  22998. }
  22999. }
  23000. _.each(g.sinks(), visit)
  23001. if (_.size(visited) !== g.nodeCount()) {
  23002. throw new CycleException()
  23003. }
  23004. return results
  23005. }
  23006. function CycleException () {}
  23007. CycleException.prototype = new Error() // must be an instance of Error to pass testing
  23008. /***/ }),
  23009. /***/ "./node_modules/graphlibrary/lib/data/priority-queue.js":
  23010. /*!**************************************************************!*\
  23011. !*** ./node_modules/graphlibrary/lib/data/priority-queue.js ***!
  23012. \**************************************************************/
  23013. /*! no static exports found */
  23014. /***/ (function(module, exports, __webpack_require__) {
  23015. const _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  23016. module.exports = PriorityQueue
  23017. /**
  23018. * A min-priority queue data structure. This algorithm is derived from Cormen,
  23019. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  23020. * queue is that you can efficiently (in O(1) time) get the smallest key in
  23021. * the queue. Adding and removing elements takes O(log n) time. A key can
  23022. * have its priority decreased in O(log n) time.
  23023. */
  23024. function PriorityQueue () {
  23025. this._arr = []
  23026. this._keyIndices = {}
  23027. }
  23028. /**
  23029. * Returns the number of elements in the queue. Takes `O(1)` time.
  23030. */
  23031. PriorityQueue.prototype.size = function () {
  23032. return this._arr.length
  23033. }
  23034. /**
  23035. * Returns the keys that are in the queue. Takes `O(n)` time.
  23036. */
  23037. PriorityQueue.prototype.keys = function () {
  23038. return this._arr.map(function (x) { return x.key })
  23039. }
  23040. /**
  23041. * Returns `true` if **key** is in the queue and `false` if not.
  23042. */
  23043. PriorityQueue.prototype.has = function (key) {
  23044. return _.has(this._keyIndices, key)
  23045. }
  23046. /**
  23047. * Returns the priority for **key**. If **key** is not present in the queue
  23048. * then this function returns `undefined`. Takes `O(1)` time.
  23049. *
  23050. * @param {Object} key
  23051. */
  23052. PriorityQueue.prototype.priority = function (key) {
  23053. var index = this._keyIndices[key]
  23054. if (index !== undefined) {
  23055. return this._arr[index].priority
  23056. }
  23057. }
  23058. /**
  23059. * Returns the key for the minimum element in this queue. If the queue is
  23060. * empty this function throws an Error. Takes `O(1)` time.
  23061. */
  23062. PriorityQueue.prototype.min = function () {
  23063. if (this.size() === 0) {
  23064. throw new Error('Queue underflow')
  23065. }
  23066. return this._arr[0].key
  23067. }
  23068. /**
  23069. * Inserts a new key into the priority queue. If the key already exists in
  23070. * the queue this function returns `false`; otherwise it will return `true`.
  23071. * Takes `O(n)` time.
  23072. *
  23073. * @param {Object} key the key to add
  23074. * @param {Number} priority the initial priority for the key
  23075. */
  23076. PriorityQueue.prototype.add = function (key, priority) {
  23077. var keyIndices = this._keyIndices
  23078. key = String(key)
  23079. if (!_.has(keyIndices, key)) {
  23080. var arr = this._arr
  23081. var index = arr.length
  23082. keyIndices[key] = index
  23083. arr.push({key: key, priority: priority})
  23084. this._decrease(index)
  23085. return true
  23086. }
  23087. return false
  23088. }
  23089. /**
  23090. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  23091. */
  23092. PriorityQueue.prototype.removeMin = function () {
  23093. this._swap(0, this._arr.length - 1)
  23094. var min = this._arr.pop()
  23095. delete this._keyIndices[min.key]
  23096. this._heapify(0)
  23097. return min.key
  23098. }
  23099. /**
  23100. * Decreases the priority for **key** to **priority**. If the new priority is
  23101. * greater than the previous priority, this function will throw an Error.
  23102. *
  23103. * @param {Object} key the key for which to raise priority
  23104. * @param {Number} priority the new priority for the key
  23105. */
  23106. PriorityQueue.prototype.decrease = function (key, priority) {
  23107. var index = this._keyIndices[key]
  23108. if (priority > this._arr[index].priority) {
  23109. throw new Error('New priority is greater than current priority. ' +
  23110. 'Key: ' + key + ' Old: ' + this._arr[index].priority + ' New: ' + priority)
  23111. }
  23112. this._arr[index].priority = priority
  23113. this._decrease(index)
  23114. }
  23115. PriorityQueue.prototype._heapify = function (i) {
  23116. const arr = this._arr
  23117. const l = 2 * i
  23118. const r = l + 1
  23119. let largest = i
  23120. if (l < arr.length) {
  23121. largest = arr[l].priority < arr[largest].priority ? l : largest
  23122. if (r < arr.length) {
  23123. largest = arr[r].priority < arr[largest].priority ? r : largest
  23124. }
  23125. if (largest !== i) {
  23126. this._swap(i, largest)
  23127. this._heapify(largest)
  23128. }
  23129. }
  23130. }
  23131. PriorityQueue.prototype._decrease = function (index) {
  23132. var arr = this._arr
  23133. var priority = arr[index].priority
  23134. var parent
  23135. while (index !== 0) {
  23136. parent = index >> 1
  23137. if (arr[parent].priority < priority) {
  23138. break
  23139. }
  23140. this._swap(index, parent)
  23141. index = parent
  23142. }
  23143. }
  23144. PriorityQueue.prototype._swap = function (i, j) {
  23145. var arr = this._arr
  23146. var keyIndices = this._keyIndices
  23147. var origArrI = arr[i]
  23148. var origArrJ = arr[j]
  23149. arr[i] = origArrJ
  23150. arr[j] = origArrI
  23151. keyIndices[origArrJ.key] = i
  23152. keyIndices[origArrI.key] = j
  23153. }
  23154. /***/ }),
  23155. /***/ "./node_modules/graphlibrary/lib/graph.js":
  23156. /*!************************************************!*\
  23157. !*** ./node_modules/graphlibrary/lib/graph.js ***!
  23158. \************************************************/
  23159. /*! no static exports found */
  23160. /***/ (function(module, exports, __webpack_require__) {
  23161. const _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  23162. module.exports = Graph
  23163. const DEFAULT_EDGE_NAME = '\x00'
  23164. const GRAPH_NODE = '\x00'
  23165. const EDGE_KEY_DELIM = '\x01'
  23166. // Implementation notes:
  23167. //
  23168. // * Node id query functions should return string ids for the nodes
  23169. // * Edge id query functions should return an "edgeObj", edge object, that is
  23170. // composed of enough information to uniquely identify an edge: {v, w, name}.
  23171. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  23172. // reference edges. This is because we need a performant way to look these
  23173. // edges up and, object properties, which have string keys, are the closest
  23174. // we're going to get to a performant hashtable in JavaScript.
  23175. function Graph (opts) {
  23176. this._isDirected = _.has(opts, 'directed') ? opts.directed : true
  23177. this._isMultigraph = _.has(opts, 'multigraph') ? opts.multigraph : false
  23178. this._isCompound = _.has(opts, 'compound') ? opts.compound : false
  23179. // Label for the graph itself
  23180. this._label = undefined
  23181. // Defaults to be set when creating a new node
  23182. this._defaultNodeLabelFn = _.constant(undefined)
  23183. // Defaults to be set when creating a new edge
  23184. this._defaultEdgeLabelFn = _.constant(undefined)
  23185. // v -> label
  23186. this._nodes = {}
  23187. if (this._isCompound) {
  23188. // v -> parent
  23189. this._parent = {}
  23190. // v -> children
  23191. this._children = {}
  23192. this._children[GRAPH_NODE] = {}
  23193. }
  23194. // v -> edgeObj
  23195. this._in = {}
  23196. // u -> v -> Number
  23197. this._preds = {}
  23198. // v -> edgeObj
  23199. this._out = {}
  23200. // v -> w -> Number
  23201. this._sucs = {}
  23202. // e -> edgeObj
  23203. this._edgeObjs = {}
  23204. // e -> label
  23205. this._edgeLabels = {}
  23206. }
  23207. /* Number of nodes in the graph. Should only be changed by the implementation. */
  23208. Graph.prototype._nodeCount = 0
  23209. /* Number of edges in the graph. Should only be changed by the implementation. */
  23210. Graph.prototype._edgeCount = 0
  23211. /* === Graph functions ========= */
  23212. Graph.prototype.isDirected = function () {
  23213. return this._isDirected
  23214. }
  23215. Graph.prototype.isMultigraph = function () {
  23216. return this._isMultigraph
  23217. }
  23218. Graph.prototype.isCompound = function () {
  23219. return this._isCompound
  23220. }
  23221. Graph.prototype.setGraph = function (label) {
  23222. this._label = label
  23223. return this
  23224. }
  23225. Graph.prototype.graph = function () {
  23226. return this._label
  23227. }
  23228. /* === Node functions ========== */
  23229. Graph.prototype.setDefaultNodeLabel = function (newDefault) {
  23230. if (!_.isFunction(newDefault)) {
  23231. newDefault = _.constant(newDefault)
  23232. }
  23233. this._defaultNodeLabelFn = newDefault
  23234. return this
  23235. }
  23236. Graph.prototype.nodeCount = function () {
  23237. return this._nodeCount
  23238. }
  23239. Graph.prototype.nodes = function () {
  23240. return _.keys(this._nodes)
  23241. }
  23242. Graph.prototype.sources = function () {
  23243. var self = this
  23244. return _.filter(this.nodes(), function (v) {
  23245. return _.isEmpty(self._in[v])
  23246. })
  23247. }
  23248. Graph.prototype.sinks = function () {
  23249. var self = this
  23250. return _.filter(this.nodes(), function (v) {
  23251. return _.isEmpty(self._out[v])
  23252. })
  23253. }
  23254. Graph.prototype.setNodes = function (vs, value) {
  23255. var args = arguments
  23256. var self = this
  23257. _.each(vs, function (v) {
  23258. if (args.length > 1) {
  23259. self.setNode(v, value)
  23260. } else {
  23261. self.setNode(v)
  23262. }
  23263. })
  23264. return this
  23265. }
  23266. Graph.prototype.setNode = function (v, value) {
  23267. if (_.has(this._nodes, v)) {
  23268. if (arguments.length > 1) {
  23269. this._nodes[v] = value
  23270. }
  23271. return this
  23272. }
  23273. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v)
  23274. if (this._isCompound) {
  23275. this._parent[v] = GRAPH_NODE
  23276. this._children[v] = {}
  23277. this._children[GRAPH_NODE][v] = true
  23278. }
  23279. this._in[v] = {}
  23280. this._preds[v] = {}
  23281. this._out[v] = {}
  23282. this._sucs[v] = {}
  23283. ++this._nodeCount
  23284. return this
  23285. }
  23286. Graph.prototype.node = function (v) {
  23287. return this._nodes[v]
  23288. }
  23289. Graph.prototype.hasNode = function (v) {
  23290. return _.has(this._nodes, v)
  23291. }
  23292. Graph.prototype.removeNode = function (v) {
  23293. var self = this
  23294. if (_.has(this._nodes, v)) {
  23295. var removeEdge = function (e) { self.removeEdge(self._edgeObjs[e]) }
  23296. delete this._nodes[v]
  23297. if (this._isCompound) {
  23298. this._removeFromParentsChildList(v)
  23299. delete this._parent[v]
  23300. _.each(this.children(v), function (child) {
  23301. self.setParent(child)
  23302. })
  23303. delete this._children[v]
  23304. }
  23305. _.each(_.keys(this._in[v]), removeEdge)
  23306. delete this._in[v]
  23307. delete this._preds[v]
  23308. _.each(_.keys(this._out[v]), removeEdge)
  23309. delete this._out[v]
  23310. delete this._sucs[v]
  23311. --this._nodeCount
  23312. }
  23313. return this
  23314. }
  23315. Graph.prototype.setParent = function (v, parent) {
  23316. if (!this._isCompound) {
  23317. throw new Error('Cannot set parent in a non-compound graph')
  23318. }
  23319. if (_.isUndefined(parent)) {
  23320. parent = GRAPH_NODE
  23321. } else {
  23322. // Coerce parent to string
  23323. parent += ''
  23324. for (var ancestor = parent;
  23325. !_.isUndefined(ancestor);
  23326. ancestor = this.parent(ancestor)) {
  23327. if (ancestor === v) {
  23328. throw new Error('Setting ' + parent + ' as parent of ' + v +
  23329. ' would create a cycle')
  23330. }
  23331. }
  23332. this.setNode(parent)
  23333. }
  23334. this.setNode(v)
  23335. this._removeFromParentsChildList(v)
  23336. this._parent[v] = parent
  23337. this._children[parent][v] = true
  23338. return this
  23339. }
  23340. Graph.prototype._removeFromParentsChildList = function (v) {
  23341. delete this._children[this._parent[v]][v]
  23342. }
  23343. Graph.prototype.parent = function (v) {
  23344. if (this._isCompound) {
  23345. var parent = this._parent[v]
  23346. if (parent !== GRAPH_NODE) {
  23347. return parent
  23348. }
  23349. }
  23350. }
  23351. Graph.prototype.children = function (v) {
  23352. if (_.isUndefined(v)) {
  23353. v = GRAPH_NODE
  23354. }
  23355. if (this._isCompound) {
  23356. var children = this._children[v]
  23357. if (children) {
  23358. return _.keys(children)
  23359. }
  23360. } else if (v === GRAPH_NODE) {
  23361. return this.nodes()
  23362. } else if (this.hasNode(v)) {
  23363. return []
  23364. }
  23365. }
  23366. Graph.prototype.predecessors = function (v) {
  23367. var predsV = this._preds[v]
  23368. if (predsV) {
  23369. return _.keys(predsV)
  23370. }
  23371. }
  23372. Graph.prototype.successors = function (v) {
  23373. var sucsV = this._sucs[v]
  23374. if (sucsV) {
  23375. return _.keys(sucsV)
  23376. }
  23377. }
  23378. Graph.prototype.neighbors = function (v) {
  23379. var preds = this.predecessors(v)
  23380. if (preds) {
  23381. return _.union(preds, this.successors(v))
  23382. }
  23383. }
  23384. Graph.prototype.isLeaf = function (v) {
  23385. var neighbors
  23386. if (this.isDirected()) {
  23387. neighbors = this.successors(v)
  23388. } else {
  23389. neighbors = this.neighbors(v)
  23390. }
  23391. return neighbors.length === 0
  23392. }
  23393. Graph.prototype.filterNodes = function (filter) {
  23394. var copy = new this.constructor({
  23395. directed: this._isDirected,
  23396. multigraph: this._isMultigraph,
  23397. compound: this._isCompound
  23398. })
  23399. copy.setGraph(this.graph())
  23400. var self = this
  23401. _.each(this._nodes, function (value, v) {
  23402. if (filter(v)) {
  23403. copy.setNode(v, value)
  23404. }
  23405. })
  23406. _.each(this._edgeObjs, function (e) {
  23407. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  23408. copy.setEdge(e, self.edge(e))
  23409. }
  23410. })
  23411. var parents = {}
  23412. function findParent (v) {
  23413. var parent = self.parent(v)
  23414. if (parent === undefined || copy.hasNode(parent)) {
  23415. parents[v] = parent
  23416. return parent
  23417. } else if (parent in parents) {
  23418. return parents[parent]
  23419. } else {
  23420. return findParent(parent)
  23421. }
  23422. }
  23423. if (this._isCompound) {
  23424. _.each(copy.nodes(), function (v) {
  23425. copy.setParent(v, findParent(v))
  23426. })
  23427. }
  23428. return copy
  23429. }
  23430. /* === Edge functions ========== */
  23431. Graph.prototype.setDefaultEdgeLabel = function (newDefault) {
  23432. if (!_.isFunction(newDefault)) {
  23433. newDefault = _.constant(newDefault)
  23434. }
  23435. this._defaultEdgeLabelFn = newDefault
  23436. return this
  23437. }
  23438. Graph.prototype.edgeCount = function () {
  23439. return this._edgeCount
  23440. }
  23441. Graph.prototype.edges = function () {
  23442. return _.values(this._edgeObjs)
  23443. }
  23444. Graph.prototype.setPath = function (vs, value) {
  23445. const self = this
  23446. const args = arguments
  23447. _.reduce(vs, function (v, w) {
  23448. if (args.length > 1) {
  23449. self.setEdge(v, w, value)
  23450. } else {
  23451. self.setEdge(v, w)
  23452. }
  23453. return w
  23454. })
  23455. return this
  23456. }
  23457. /*
  23458. * setEdge(v, w, [value, [name]])
  23459. * setEdge({ v, w, [name] }, [value])
  23460. */
  23461. Graph.prototype.setEdge = function () {
  23462. let v, w, name, value
  23463. let valueSpecified = false
  23464. const arg0 = arguments[0]
  23465. if (typeof arg0 === 'object' && arg0 !== null && 'v' in arg0) {
  23466. v = arg0.v
  23467. w = arg0.w
  23468. name = arg0.name
  23469. if (arguments.length === 2) {
  23470. value = arguments[1]
  23471. valueSpecified = true
  23472. }
  23473. } else {
  23474. v = arg0
  23475. w = arguments[1]
  23476. name = arguments[3]
  23477. if (arguments.length > 2) {
  23478. value = arguments[2]
  23479. valueSpecified = true
  23480. }
  23481. }
  23482. v = '' + v
  23483. w = '' + w
  23484. if (!_.isUndefined(name)) {
  23485. name = '' + name
  23486. }
  23487. var e = edgeArgsToId(this._isDirected, v, w, name)
  23488. if (_.has(this._edgeLabels, e)) {
  23489. if (valueSpecified) {
  23490. this._edgeLabels[e] = value
  23491. }
  23492. return this
  23493. }
  23494. if (!_.isUndefined(name) && !this._isMultigraph) {
  23495. throw new Error('Cannot set a named edge when isMultigraph = false')
  23496. }
  23497. // It didn't exist, so we need to create it.
  23498. // First ensure the nodes exist.
  23499. this.setNode(v)
  23500. this.setNode(w)
  23501. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name)
  23502. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name)
  23503. // Ensure we add undirected edges in a consistent way.
  23504. v = edgeObj.v
  23505. w = edgeObj.w
  23506. Object.freeze(edgeObj)
  23507. this._edgeObjs[e] = edgeObj
  23508. incrementOrInitEntry(this._preds[w], v)
  23509. incrementOrInitEntry(this._sucs[v], w)
  23510. this._in[w][e] = edgeObj
  23511. this._out[v][e] = edgeObj
  23512. this._edgeCount++
  23513. return this
  23514. }
  23515. Graph.prototype.edge = function (v, w, name) {
  23516. var e = (arguments.length === 1
  23517. ? edgeObjToId(this._isDirected, arguments[0])
  23518. : edgeArgsToId(this._isDirected, v, w, name))
  23519. return this._edgeLabels[e]
  23520. }
  23521. Graph.prototype.hasEdge = function (v, w, name) {
  23522. var e = (arguments.length === 1
  23523. ? edgeObjToId(this._isDirected, arguments[0])
  23524. : edgeArgsToId(this._isDirected, v, w, name))
  23525. return _.has(this._edgeLabels, e)
  23526. }
  23527. Graph.prototype.removeEdge = function (v, w, name) {
  23528. const e = (arguments.length === 1
  23529. ? edgeObjToId(this._isDirected, arguments[0])
  23530. : edgeArgsToId(this._isDirected, v, w, name))
  23531. const edge = this._edgeObjs[e]
  23532. if (edge) {
  23533. v = edge.v
  23534. w = edge.w
  23535. delete this._edgeLabels[e]
  23536. delete this._edgeObjs[e]
  23537. decrementOrRemoveEntry(this._preds[w], v)
  23538. decrementOrRemoveEntry(this._sucs[v], w)
  23539. delete this._in[w][e]
  23540. delete this._out[v][e]
  23541. this._edgeCount--
  23542. }
  23543. return this
  23544. }
  23545. Graph.prototype.inEdges = function (v, u) {
  23546. var inV = this._in[v]
  23547. if (inV) {
  23548. var edges = _.values(inV)
  23549. if (!u) {
  23550. return edges
  23551. }
  23552. return _.filter(edges, function (edge) { return edge.v === u })
  23553. }
  23554. }
  23555. Graph.prototype.outEdges = function (v, w) {
  23556. var outV = this._out[v]
  23557. if (outV) {
  23558. var edges = _.values(outV)
  23559. if (!w) {
  23560. return edges
  23561. }
  23562. return _.filter(edges, function (edge) { return edge.w === w })
  23563. }
  23564. }
  23565. Graph.prototype.nodeEdges = function (v, w) {
  23566. var inEdges = this.inEdges(v, w)
  23567. if (inEdges) {
  23568. return inEdges.concat(this.outEdges(v, w))
  23569. }
  23570. }
  23571. function incrementOrInitEntry (map, k) {
  23572. if (map[k]) {
  23573. map[k]++
  23574. } else {
  23575. map[k] = 1
  23576. }
  23577. }
  23578. function decrementOrRemoveEntry (map, k) {
  23579. if (!--map[k]) { delete map[k] }
  23580. }
  23581. function edgeArgsToId (isDirected, v_, w_, name) {
  23582. var v = '' + v_
  23583. var w = '' + w_
  23584. if (!isDirected && v > w) {
  23585. var tmp = v
  23586. v = w
  23587. w = tmp
  23588. }
  23589. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  23590. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name)
  23591. }
  23592. function edgeArgsToObj (isDirected, v_, w_, name) {
  23593. var v = '' + v_
  23594. var w = '' + w_
  23595. if (!isDirected && v > w) {
  23596. var tmp = v
  23597. v = w
  23598. w = tmp
  23599. }
  23600. var edgeObj = { v: v, w: w }
  23601. if (name) {
  23602. edgeObj.name = name
  23603. }
  23604. return edgeObj
  23605. }
  23606. function edgeObjToId (isDirected, edgeObj) {
  23607. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name)
  23608. }
  23609. /***/ }),
  23610. /***/ "./node_modules/graphlibrary/lib/json.js":
  23611. /*!***********************************************!*\
  23612. !*** ./node_modules/graphlibrary/lib/json.js ***!
  23613. \***********************************************/
  23614. /*! no static exports found */
  23615. /***/ (function(module, exports, __webpack_require__) {
  23616. const _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlibrary/lib/lodash.js")
  23617. const Graph = __webpack_require__(/*! ./graph */ "./node_modules/graphlibrary/lib/graph.js")
  23618. module.exports = {
  23619. write: write,
  23620. read: read
  23621. }
  23622. function write (g) {
  23623. var json = {
  23624. options: {
  23625. directed: g.isDirected(),
  23626. multigraph: g.isMultigraph(),
  23627. compound: g.isCompound()
  23628. },
  23629. nodes: writeNodes(g),
  23630. edges: writeEdges(g)
  23631. }
  23632. if (!_.isUndefined(g.graph())) {
  23633. json.value = _.clone(g.graph())
  23634. }
  23635. return json
  23636. }
  23637. function writeNodes (g) {
  23638. return _.map(g.nodes(), function (v) {
  23639. const nodeValue = g.node(v)
  23640. const parent = g.parent(v)
  23641. const node = { v: v }
  23642. if (!_.isUndefined(nodeValue)) {
  23643. node.value = nodeValue
  23644. }
  23645. if (!_.isUndefined(parent)) {
  23646. node.parent = parent
  23647. }
  23648. return node
  23649. })
  23650. }
  23651. function writeEdges (g) {
  23652. return _.map(g.edges(), function (e) {
  23653. const edgeValue = g.edge(e)
  23654. const edge = { v: e.v, w: e.w }
  23655. if (!_.isUndefined(e.name)) {
  23656. edge.name = e.name
  23657. }
  23658. if (!_.isUndefined(edgeValue)) {
  23659. edge.value = edgeValue
  23660. }
  23661. return edge
  23662. })
  23663. }
  23664. function read (json) {
  23665. var g = new Graph(json.options).setGraph(json.value)
  23666. _.each(json.nodes, function (entry) {
  23667. g.setNode(entry.v, entry.value)
  23668. if (entry.parent) {
  23669. g.setParent(entry.v, entry.parent)
  23670. }
  23671. })
  23672. _.each(json.edges, function (entry) {
  23673. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value)
  23674. })
  23675. return g
  23676. }
  23677. /***/ }),
  23678. /***/ "./node_modules/graphlibrary/lib/lodash.js":
  23679. /*!*************************************************!*\
  23680. !*** ./node_modules/graphlibrary/lib/lodash.js ***!
  23681. \*************************************************/
  23682. /*! no static exports found */
  23683. /***/ (function(module, exports, __webpack_require__) {
  23684. /* global window */
  23685. var lodash
  23686. if (true) {
  23687. try {
  23688. lodash = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js")
  23689. } catch (e) {}
  23690. }
  23691. if (!lodash) {
  23692. lodash = window._
  23693. }
  23694. module.exports = lodash
  23695. /***/ }),
  23696. /***/ "./node_modules/he/he.js":
  23697. /*!*******************************!*\
  23698. !*** ./node_modules/he/he.js ***!
  23699. \*******************************/
  23700. /*! no static exports found */
  23701. /***/ (function(module, exports, __webpack_require__) {
  23702. /* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/he v1.2.0 by @mathias | MIT license */
  23703. ;(function(root) {
  23704. // Detect free variables `exports`.
  23705. var freeExports = true && exports;
  23706. // Detect free variable `module`.
  23707. var freeModule = true && module &&
  23708. module.exports == freeExports && module;
  23709. // Detect free variable `global`, from Node.js or Browserified code,
  23710. // and use it as `root`.
  23711. var freeGlobal = typeof global == 'object' && global;
  23712. if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
  23713. root = freeGlobal;
  23714. }
  23715. /*--------------------------------------------------------------------------*/
  23716. // All astral symbols.
  23717. var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  23718. // All ASCII symbols (not just printable ASCII) except those listed in the
  23719. // first column of the overrides table.
  23720. // https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides
  23721. var regexAsciiWhitelist = /[\x01-\x7F]/g;
  23722. // All BMP symbols that are not ASCII newlines, printable ASCII symbols, or
  23723. // code points listed in the first column of the overrides table on
  23724. // https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides.
  23725. var regexBmpWhitelist = /[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;
  23726. var regexEncodeNonAscii = /<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;
  23727. var encodeMap = {'\xAD':'shy','\u200C':'zwnj','\u200D':'zwj','\u200E':'lrm','\u2063':'ic','\u2062':'it','\u2061':'af','\u200F':'rlm','\u200B':'ZeroWidthSpace','\u2060':'NoBreak','\u0311':'DownBreve','\u20DB':'tdot','\u20DC':'DotDot','\t':'Tab','\n':'NewLine','\u2008':'puncsp','\u205F':'MediumSpace','\u2009':'thinsp','\u200A':'hairsp','\u2004':'emsp13','\u2002':'ensp','\u2005':'emsp14','\u2003':'emsp','\u2007':'numsp','\xA0':'nbsp','\u205F\u200A':'ThickSpace','\u203E':'oline','_':'lowbar','\u2010':'dash','\u2013':'ndash','\u2014':'mdash','\u2015':'horbar',',':'comma',';':'semi','\u204F':'bsemi',':':'colon','\u2A74':'Colone','!':'excl','\xA1':'iexcl','?':'quest','\xBF':'iquest','.':'period','\u2025':'nldr','\u2026':'mldr','\xB7':'middot','\'':'apos','\u2018':'lsquo','\u2019':'rsquo','\u201A':'sbquo','\u2039':'lsaquo','\u203A':'rsaquo','"':'quot','\u201C':'ldquo','\u201D':'rdquo','\u201E':'bdquo','\xAB':'laquo','\xBB':'raquo','(':'lpar',')':'rpar','[':'lsqb',']':'rsqb','{':'lcub','}':'rcub','\u2308':'lceil','\u2309':'rceil','\u230A':'lfloor','\u230B':'rfloor','\u2985':'lopar','\u2986':'ropar','\u298B':'lbrke','\u298C':'rbrke','\u298D':'lbrkslu','\u298E':'rbrksld','\u298F':'lbrksld','\u2990':'rbrkslu','\u2991':'langd','\u2992':'rangd','\u2993':'lparlt','\u2994':'rpargt','\u2995':'gtlPar','\u2996':'ltrPar','\u27E6':'lobrk','\u27E7':'robrk','\u27E8':'lang','\u27E9':'rang','\u27EA':'Lang','\u27EB':'Rang','\u27EC':'loang','\u27ED':'roang','\u2772':'lbbrk','\u2773':'rbbrk','\u2016':'Vert','\xA7':'sect','\xB6':'para','@':'commat','*':'ast','/':'sol','undefined':null,'&':'amp','#':'num','%':'percnt','\u2030':'permil','\u2031':'pertenk','\u2020':'dagger','\u2021':'Dagger','\u2022':'bull','\u2043':'hybull','\u2032':'prime','\u2033':'Prime','\u2034':'tprime','\u2057':'qprime','\u2035':'bprime','\u2041':'caret','`':'grave','\xB4':'acute','\u02DC':'tilde','^':'Hat','\xAF':'macr','\u02D8':'breve','\u02D9':'dot','\xA8':'die','\u02DA':'ring','\u02DD':'dblac','\xB8':'cedil','\u02DB':'ogon','\u02C6':'circ','\u02C7':'caron','\xB0':'deg','\xA9':'copy','\xAE':'reg','\u2117':'copysr','\u2118':'wp','\u211E':'rx','\u2127':'mho','\u2129':'iiota','\u2190':'larr','\u219A':'nlarr','\u2192':'rarr','\u219B':'nrarr','\u2191':'uarr','\u2193':'darr','\u2194':'harr','\u21AE':'nharr','\u2195':'varr','\u2196':'nwarr','\u2197':'nearr','\u2198':'searr','\u2199':'swarr','\u219D':'rarrw','\u219D\u0338':'nrarrw','\u219E':'Larr','\u219F':'Uarr','\u21A0':'Rarr','\u21A1':'Darr','\u21A2':'larrtl','\u21A3':'rarrtl','\u21A4':'mapstoleft','\u21A5':'mapstoup','\u21A6':'map','\u21A7':'mapstodown','\u21A9':'larrhk','\u21AA':'rarrhk','\u21AB':'larrlp','\u21AC':'rarrlp','\u21AD':'harrw','\u21B0':'lsh','\u21B1':'rsh','\u21B2':'ldsh','\u21B3':'rdsh','\u21B5':'crarr','\u21B6':'cularr','\u21B7':'curarr','\u21BA':'olarr','\u21BB':'orarr','\u21BC':'lharu','\u21BD':'lhard','\u21BE':'uharr','\u21BF':'uharl','\u21C0':'rharu','\u21C1':'rhard','\u21C2':'dharr','\u21C3':'dharl','\u21C4':'rlarr','\u21C5':'udarr','\u21C6':'lrarr','\u21C7':'llarr','\u21C8':'uuarr','\u21C9':'rrarr','\u21CA':'ddarr','\u21CB':'lrhar','\u21CC':'rlhar','\u21D0':'lArr','\u21CD':'nlArr','\u21D1':'uArr','\u21D2':'rArr','\u21CF':'nrArr','\u21D3':'dArr','\u21D4':'iff','\u21CE':'nhArr','\u21D5':'vArr','\u21D6':'nwArr','\u21D7':'neArr','\u21D8':'seArr','\u21D9':'swArr','\u21DA':'lAarr','\u21DB':'rAarr','\u21DD':'zigrarr','\u21E4':'larrb','\u21E5':'rarrb','\u21F5':'duarr','\u21FD':'loarr','\u21FE':'roarr','\u21FF':'hoarr','\u2200':'forall','\u2201':'comp','\u2202':'part','\u2202\u0338':'npart','\u2203':'exist','\u2204':'nexist','\u2205':'empty','\u2207':'Del','\u2208':'in','\u2209':'notin','\u220B':'ni','\u220C':'notni','\u03F6':'bepsi','\u220F':'prod','\u2210':'coprod','\u2211':'sum','+':'plus','\xB1':'pm','\xF7':'div','\xD7':'times','<':'lt','\u226E':'nlt','<\u20D2':'nvlt','=':'equals','\u2260':'ne','=\u20E5':'bne','\u2A75':'Equal','>':'gt','\u226F':'ngt','>\u20D2':'nvgt','\xAC':'not','|':'vert','\xA6':'brvbar','\u2212':'minus','\u2213':'mp','\u2214':'plusdo','\u2044':'frasl','\u2216':'setmn','\u2217':'lowast','\u2218':'compfn','\u221A':'Sqrt','\u221D':'prop','\u221E':'infin','\u221F':'angrt','\u2220':'ang','\u2220\u20D2':'nang','\u2221':'angmsd','\u2222':'angsph','\u2223':'mid','\u2224':'nmid','\u2225':'par','\u2226':'npar','\u2227':'and','\u2228':'or','\u2229':'cap','\u2229\uFE00':'caps','\u222A':'cup','\u222A\uFE00':'cups','\u222B':'int','\u222C':'Int','\u222D':'tint','\u2A0C':'qint','\u222E':'oint','\u222F':'Conint','\u2230':'Cconint','\u2231':'cwint','\u2232':'cwconint','\u2233':'awconint','\u2234':'there4','\u2235':'becaus','\u2236':'ratio','\u2237':'Colon','\u2238':'minusd','\u223A':'mDDot','\u223B':'homtht','\u223C':'sim','\u2241':'nsim','\u223C\u20D2':'nvsim','\u223D':'bsim','\u223D\u0331':'race','\u223E':'ac','\u223E\u0333':'acE','\u223F':'acd','\u2240':'wr','\u2242':'esim','\u2242\u0338':'nesim','\u2243':'sime','\u2244':'nsime','\u2245':'cong','\u2247':'ncong','\u2246':'simne','\u2248':'ap','\u2249':'nap','\u224A':'ape','\u224B':'apid','\u224B\u0338':'napid','\u224C':'bcong','\u224D':'CupCap','\u226D':'NotCupCap','\u224D\u20D2':'nvap','\u224E':'bump','\u224E\u0338':'nbump','\u224F':'bumpe','\u224F\u0338':'nbumpe','\u2250':'doteq','\u2250\u0338':'nedot','\u2251':'eDot','\u2252':'efDot','\u2253':'erDot','\u2254':'colone','\u2255':'ecolon','\u2256':'ecir','\u2257':'cire','\u2259':'wedgeq','\u225A':'veeeq','\u225C':'trie','\u225F':'equest','\u2261':'equiv','\u2262':'nequiv','\u2261\u20E5':'bnequiv','\u2264':'le','\u2270':'nle','\u2264\u20D2':'nvle','\u2265':'ge','\u2271':'nge','\u2265\u20D2':'nvge','\u2266':'lE','\u2266\u0338':'nlE','\u2267':'gE','\u2267\u0338':'ngE','\u2268\uFE00':'lvnE','\u2268':'lnE','\u2269':'gnE','\u2269\uFE00':'gvnE','\u226A':'ll','\u226A\u0338':'nLtv','\u226A\u20D2':'nLt','\u226B':'gg','\u226B\u0338':'nGtv','\u226B\u20D2':'nGt','\u226C':'twixt','\u2272':'lsim','\u2274':'nlsim','\u2273':'gsim','\u2275':'ngsim','\u2276':'lg','\u2278':'ntlg','\u2277':'gl','\u2279':'ntgl','\u227A':'pr','\u2280':'npr','\u227B':'sc','\u2281':'nsc','\u227C':'prcue','\u22E0':'nprcue','\u227D':'sccue','\u22E1':'nsccue','\u227E':'prsim','\u227F':'scsim','\u227F\u0338':'NotSucceedsTilde','\u2282':'sub','\u2284':'nsub','\u2282\u20D2':'vnsub','\u2283':'sup','\u2285':'nsup','\u2283\u20D2':'vnsup','\u2286':'sube','\u2288':'nsube','\u2287':'supe','\u2289':'nsupe','\u228A\uFE00':'vsubne','\u228A':'subne','\u228B\uFE00':'vsupne','\u228B':'supne','\u228D':'cupdot','\u228E':'uplus','\u228F':'sqsub','\u228F\u0338':'NotSquareSubset','\u2290':'sqsup','\u2290\u0338':'NotSquareSuperset','\u2291':'sqsube','\u22E2':'nsqsube','\u2292':'sqsupe','\u22E3':'nsqsupe','\u2293':'sqcap','\u2293\uFE00':'sqcaps','\u2294':'sqcup','\u2294\uFE00':'sqcups','\u2295':'oplus','\u2296':'ominus','\u2297':'otimes','\u2298':'osol','\u2299':'odot','\u229A':'ocir','\u229B':'oast','\u229D':'odash','\u229E':'plusb','\u229F':'minusb','\u22A0':'timesb','\u22A1':'sdotb','\u22A2':'vdash','\u22AC':'nvdash','\u22A3':'dashv','\u22A4':'top','\u22A5':'bot','\u22A7':'models','\u22A8':'vDash','\u22AD':'nvDash','\u22A9':'Vdash','\u22AE':'nVdash','\u22AA':'Vvdash','\u22AB':'VDash','\u22AF':'nVDash','\u22B0':'prurel','\u22B2':'vltri','\u22EA':'nltri','\u22B3':'vrtri','\u22EB':'nrtri','\u22B4':'ltrie','\u22EC':'nltrie','\u22B4\u20D2':'nvltrie','\u22B5':'rtrie','\u22ED':'nrtrie','\u22B5\u20D2':'nvrtrie','\u22B6':'origof','\u22B7':'imof','\u22B8':'mumap','\u22B9':'hercon','\u22BA':'intcal','\u22BB':'veebar','\u22BD':'barvee','\u22BE':'angrtvb','\u22BF':'lrtri','\u22C0':'Wedge','\u22C1':'Vee','\u22C2':'xcap','\u22C3':'xcup','\u22C4':'diam','\u22C5':'sdot','\u22C6':'Star','\u22C7':'divonx','\u22C8':'bowtie','\u22C9':'ltimes','\u22CA':'rtimes','\u22CB':'lthree','\u22CC':'rthree','\u22CD':'bsime','\u22CE':'cuvee','\u22CF':'cuwed','\u22D0':'Sub','\u22D1':'Sup','\u22D2':'Cap','\u22D3':'Cup','\u22D4':'fork','\u22D5':'epar','\u22D6':'ltdot','\u22D7':'gtdot','\u22D8':'Ll','\u22D8\u0338':'nLl','\u22D9':'Gg','\u22D9\u0338':'nGg','\u22DA\uFE00':'lesg','\u22DA':'leg','\u22DB':'gel','\u22DB\uFE00':'gesl','\u22DE':'cuepr','\u22DF':'cuesc','\u22E6':'lnsim','\u22E7':'gnsim','\u22E8':'prnsim','\u22E9':'scnsim','\u22EE':'vellip','\u22EF':'ctdot','\u22F0':'utdot','\u22F1':'dtdot','\u22F2':'disin','\u22F3':'isinsv','\u22F4':'isins','\u22F5':'isindot','\u22F5\u0338':'notindot','\u22F6':'notinvc','\u22F7':'notinvb','\u22F9':'isinE','\u22F9\u0338':'notinE','\u22FA':'nisd','\u22FB':'xnis','\u22FC':'nis','\u22FD':'notnivc','\u22FE':'notnivb','\u2305':'barwed','\u2306':'Barwed','\u230C':'drcrop','\u230D':'dlcrop','\u230E':'urcrop','\u230F':'ulcrop','\u2310':'bnot','\u2312':'profline','\u2313':'profsurf','\u2315':'telrec','\u2316':'target','\u231C':'ulcorn','\u231D':'urcorn','\u231E':'dlcorn','\u231F':'drcorn','\u2322':'frown','\u2323':'smile','\u232D':'cylcty','\u232E':'profalar','\u2336':'topbot','\u233D':'ovbar','\u233F':'solbar','\u237C':'angzarr','\u23B0':'lmoust','\u23B1':'rmoust','\u23B4':'tbrk','\u23B5':'bbrk','\u23B6':'bbrktbrk','\u23DC':'OverParenthesis','\u23DD':'UnderParenthesis','\u23DE':'OverBrace','\u23DF':'UnderBrace','\u23E2':'trpezium','\u23E7':'elinters','\u2423':'blank','\u2500':'boxh','\u2502':'boxv','\u250C':'boxdr','\u2510':'boxdl','\u2514':'boxur','\u2518':'boxul','\u251C':'boxvr','\u2524':'boxvl','\u252C':'boxhd','\u2534':'boxhu','\u253C':'boxvh','\u2550':'boxH','\u2551':'boxV','\u2552':'boxdR','\u2553':'boxDr','\u2554':'boxDR','\u2555':'boxdL','\u2556':'boxDl','\u2557':'boxDL','\u2558':'boxuR','\u2559':'boxUr','\u255A':'boxUR','\u255B':'boxuL','\u255C':'boxUl','\u255D':'boxUL','\u255E':'boxvR','\u255F':'boxVr','\u2560':'boxVR','\u2561':'boxvL','\u2562':'boxVl','\u2563':'boxVL','\u2564':'boxHd','\u2565':'boxhD','\u2566':'boxHD','\u2567':'boxHu','\u2568':'boxhU','\u2569':'boxHU','\u256A':'boxvH','\u256B':'boxVh','\u256C':'boxVH','\u2580':'uhblk','\u2584':'lhblk','\u2588':'block','\u2591':'blk14','\u2592':'blk12','\u2593':'blk34','\u25A1':'squ','\u25AA':'squf','\u25AB':'EmptyVerySmallSquare','\u25AD':'rect','\u25AE':'marker','\u25B1':'fltns','\u25B3':'xutri','\u25B4':'utrif','\u25B5':'utri','\u25B8':'rtrif','\u25B9':'rtri','\u25BD':'xdtri','\u25BE':'dtrif','\u25BF':'dtri','\u25C2':'ltrif','\u25C3':'ltri','\u25CA':'loz','\u25CB':'cir','\u25EC':'tridot','\u25EF':'xcirc','\u25F8':'ultri','\u25F9':'urtri','\u25FA':'lltri','\u25FB':'EmptySmallSquare','\u25FC':'FilledSmallSquare','\u2605':'starf','\u2606':'star','\u260E':'phone','\u2640':'female','\u2642':'male','\u2660':'spades','\u2663':'clubs','\u2665':'hearts','\u2666':'diams','\u266A':'sung','\u2713':'check','\u2717':'cross','\u2720':'malt','\u2736':'sext','\u2758':'VerticalSeparator','\u27C8':'bsolhsub','\u27C9':'suphsol','\u27F5':'xlarr','\u27F6':'xrarr','\u27F7':'xharr','\u27F8':'xlArr','\u27F9':'xrArr','\u27FA':'xhArr','\u27FC':'xmap','\u27FF':'dzigrarr','\u2902':'nvlArr','\u2903':'nvrArr','\u2904':'nvHarr','\u2905':'Map','\u290C':'lbarr','\u290D':'rbarr','\u290E':'lBarr','\u290F':'rBarr','\u2910':'RBarr','\u2911':'DDotrahd','\u2912':'UpArrowBar','\u2913':'DownArrowBar','\u2916':'Rarrtl','\u2919':'latail','\u291A':'ratail','\u291B':'lAtail','\u291C':'rAtail','\u291D':'larrfs','\u291E':'rarrfs','\u291F':'larrbfs','\u2920':'rarrbfs','\u2923':'nwarhk','\u2924':'nearhk','\u2925':'searhk','\u2926':'swarhk','\u2927':'nwnear','\u2928':'toea','\u2929':'tosa','\u292A':'swnwar','\u2933':'rarrc','\u2933\u0338':'nrarrc','\u2935':'cudarrr','\u2936':'ldca','\u2937':'rdca','\u2938':'cudarrl','\u2939':'larrpl','\u293C':'curarrm','\u293D':'cularrp','\u2945':'rarrpl','\u2948':'harrcir','\u2949':'Uarrocir','\u294A':'lurdshar','\u294B':'ldrushar','\u294E':'LeftRightVector','\u294F':'RightUpDownVector','\u2950':'DownLeftRightVector','\u2951':'LeftUpDownVector','\u2952':'LeftVectorBar','\u2953':'RightVectorBar','\u2954':'RightUpVectorBar','\u2955':'RightDownVectorBar','\u2956':'DownLeftVectorBar','\u2957':'DownRightVectorBar','\u2958':'LeftUpVectorBar','\u2959':'LeftDownVectorBar','\u295A':'LeftTeeVector','\u295B':'RightTeeVector','\u295C':'RightUpTeeVector','\u295D':'RightDownTeeVector','\u295E':'DownLeftTeeVector','\u295F':'DownRightTeeVector','\u2960':'LeftUpTeeVector','\u2961':'LeftDownTeeVector','\u2962':'lHar','\u2963':'uHar','\u2964':'rHar','\u2965':'dHar','\u2966':'luruhar','\u2967':'ldrdhar','\u2968':'ruluhar','\u2969':'rdldhar','\u296A':'lharul','\u296B':'llhard','\u296C':'rharul','\u296D':'lrhard','\u296E':'udhar','\u296F':'duhar','\u2970':'RoundImplies','\u2971':'erarr','\u2972':'simrarr','\u2973':'larrsim','\u2974':'rarrsim','\u2975':'rarrap','\u2976':'ltlarr','\u2978':'gtrarr','\u2979':'subrarr','\u297B':'suplarr','\u297C':'lfisht','\u297D':'rfisht','\u297E':'ufisht','\u297F':'dfisht','\u299A':'vzigzag','\u299C':'vangrt','\u299D':'angrtvbd','\u29A4':'ange','\u29A5':'range','\u29A6':'dwangle','\u29A7':'uwangle','\u29A8':'angmsdaa','\u29A9':'angmsdab','\u29AA':'angmsdac','\u29AB':'angmsdad','\u29AC':'angmsdae','\u29AD':'angmsdaf','\u29AE':'angmsdag','\u29AF':'angmsdah','\u29B0':'bemptyv','\u29B1':'demptyv','\u29B2':'cemptyv','\u29B3':'raemptyv','\u29B4':'laemptyv','\u29B5':'ohbar','\u29B6':'omid','\u29B7':'opar','\u29B9':'operp','\u29BB':'olcross','\u29BC':'odsold','\u29BE':'olcir','\u29BF':'ofcir','\u29C0':'olt','\u29C1':'ogt','\u29C2':'cirscir','\u29C3':'cirE','\u29C4':'solb','\u29C5':'bsolb','\u29C9':'boxbox','\u29CD':'trisb','\u29CE':'rtriltri','\u29CF':'LeftTriangleBar','\u29CF\u0338':'NotLeftTriangleBar','\u29D0':'RightTriangleBar','\u29D0\u0338':'NotRightTriangleBar','\u29DC':'iinfin','\u29DD':'infintie','\u29DE':'nvinfin','\u29E3':'eparsl','\u29E4':'smeparsl','\u29E5':'eqvparsl','\u29EB':'lozf','\u29F4':'RuleDelayed','\u29F6':'dsol','\u2A00':'xodot','\u2A01':'xoplus','\u2A02':'xotime','\u2A04':'xuplus','\u2A06':'xsqcup','\u2A0D':'fpartint','\u2A10':'cirfnint','\u2A11':'awint','\u2A12':'rppolint','\u2A13':'scpolint','\u2A14':'npolint','\u2A15':'pointint','\u2A16':'quatint','\u2A17':'intlarhk','\u2A22':'pluscir','\u2A23':'plusacir','\u2A24':'simplus','\u2A25':'plusdu','\u2A26':'plussim','\u2A27':'plustwo','\u2A29':'mcomma','\u2A2A':'minusdu','\u2A2D':'loplus','\u2A2E':'roplus','\u2A2F':'Cross','\u2A30':'timesd','\u2A31':'timesbar','\u2A33':'smashp','\u2A34':'lotimes','\u2A35':'rotimes','\u2A36':'otimesas','\u2A37':'Otimes','\u2A38':'odiv','\u2A39':'triplus','\u2A3A':'triminus','\u2A3B':'tritime','\u2A3C':'iprod','\u2A3F':'amalg','\u2A40':'capdot','\u2A42':'ncup','\u2A43':'ncap','\u2A44':'capand','\u2A45':'cupor','\u2A46':'cupcap','\u2A47':'capcup','\u2A48':'cupbrcap','\u2A49':'capbrcup','\u2A4A':'cupcup','\u2A4B':'capcap','\u2A4C':'ccups','\u2A4D':'ccaps','\u2A50':'ccupssm','\u2A53':'And','\u2A54':'Or','\u2A55':'andand','\u2A56':'oror','\u2A57':'orslope','\u2A58':'andslope','\u2A5A':'andv','\u2A5B':'orv','\u2A5C':'andd','\u2A5D':'ord','\u2A5F':'wedbar','\u2A66':'sdote','\u2A6A':'simdot','\u2A6D':'congdot','\u2A6D\u0338':'ncongdot','\u2A6E':'easter','\u2A6F':'apacir','\u2A70':'apE','\u2A70\u0338':'napE','\u2A71':'eplus','\u2A72':'pluse','\u2A73':'Esim','\u2A77':'eDDot','\u2A78':'equivDD','\u2A79':'ltcir','\u2A7A':'gtcir','\u2A7B':'ltquest','\u2A7C':'gtquest','\u2A7D':'les','\u2A7D\u0338':'nles','\u2A7E':'ges','\u2A7E\u0338':'nges','\u2A7F':'lesdot','\u2A80':'gesdot','\u2A81':'lesdoto','\u2A82':'gesdoto','\u2A83':'lesdotor','\u2A84':'gesdotol','\u2A85':'lap','\u2A86':'gap','\u2A87':'lne','\u2A88':'gne','\u2A89':'lnap','\u2A8A':'gnap','\u2A8B':'lEg','\u2A8C':'gEl','\u2A8D':'lsime','\u2A8E':'gsime','\u2A8F':'lsimg','\u2A90':'gsiml','\u2A91':'lgE','\u2A92':'glE','\u2A93':'lesges','\u2A94':'gesles','\u2A95':'els','\u2A96':'egs','\u2A97':'elsdot','\u2A98':'egsdot','\u2A99':'el','\u2A9A':'eg','\u2A9D':'siml','\u2A9E':'simg','\u2A9F':'simlE','\u2AA0':'simgE','\u2AA1':'LessLess','\u2AA1\u0338':'NotNestedLessLess','\u2AA2':'GreaterGreater','\u2AA2\u0338':'NotNestedGreaterGreater','\u2AA4':'glj','\u2AA5':'gla','\u2AA6':'ltcc','\u2AA7':'gtcc','\u2AA8':'lescc','\u2AA9':'gescc','\u2AAA':'smt','\u2AAB':'lat','\u2AAC':'smte','\u2AAC\uFE00':'smtes','\u2AAD':'late','\u2AAD\uFE00':'lates','\u2AAE':'bumpE','\u2AAF':'pre','\u2AAF\u0338':'npre','\u2AB0':'sce','\u2AB0\u0338':'nsce','\u2AB3':'prE','\u2AB4':'scE','\u2AB5':'prnE','\u2AB6':'scnE','\u2AB7':'prap','\u2AB8':'scap','\u2AB9':'prnap','\u2ABA':'scnap','\u2ABB':'Pr','\u2ABC':'Sc','\u2ABD':'subdot','\u2ABE':'supdot','\u2ABF':'subplus','\u2AC0':'supplus','\u2AC1':'submult','\u2AC2':'supmult','\u2AC3':'subedot','\u2AC4':'supedot','\u2AC5':'subE','\u2AC5\u0338':'nsubE','\u2AC6':'supE','\u2AC6\u0338':'nsupE','\u2AC7':'subsim','\u2AC8':'supsim','\u2ACB\uFE00':'vsubnE','\u2ACB':'subnE','\u2ACC\uFE00':'vsupnE','\u2ACC':'supnE','\u2ACF':'csub','\u2AD0':'csup','\u2AD1':'csube','\u2AD2':'csupe','\u2AD3':'subsup','\u2AD4':'supsub','\u2AD5':'subsub','\u2AD6':'supsup','\u2AD7':'suphsub','\u2AD8':'supdsub','\u2AD9':'forkv','\u2ADA':'topfork','\u2ADB':'mlcp','\u2AE4':'Dashv','\u2AE6':'Vdashl','\u2AE7':'Barv','\u2AE8':'vBar','\u2AE9':'vBarv','\u2AEB':'Vbar','\u2AEC':'Not','\u2AED':'bNot','\u2AEE':'rnmid','\u2AEF':'cirmid','\u2AF0':'midcir','\u2AF1':'topcir','\u2AF2':'nhpar','\u2AF3':'parsim','\u2AFD':'parsl','\u2AFD\u20E5':'nparsl','\u266D':'flat','\u266E':'natur','\u266F':'sharp','\xA4':'curren','\xA2':'cent','$':'dollar','\xA3':'pound','\xA5':'yen','\u20AC':'euro','\xB9':'sup1','\xBD':'half','\u2153':'frac13','\xBC':'frac14','\u2155':'frac15','\u2159':'frac16','\u215B':'frac18','\xB2':'sup2','\u2154':'frac23','\u2156':'frac25','\xB3':'sup3','\xBE':'frac34','\u2157':'frac35','\u215C':'frac38','\u2158':'frac45','\u215A':'frac56','\u215D':'frac58','\u215E':'frac78','\uD835\uDCB6':'ascr','\uD835\uDD52':'aopf','\uD835\uDD1E':'afr','\uD835\uDD38':'Aopf','\uD835\uDD04':'Afr','\uD835\uDC9C':'Ascr','\xAA':'ordf','\xE1':'aacute','\xC1':'Aacute','\xE0':'agrave','\xC0':'Agrave','\u0103':'abreve','\u0102':'Abreve','\xE2':'acirc','\xC2':'Acirc','\xE5':'aring','\xC5':'angst','\xE4':'auml','\xC4':'Auml','\xE3':'atilde','\xC3':'Atilde','\u0105':'aogon','\u0104':'Aogon','\u0101':'amacr','\u0100':'Amacr','\xE6':'aelig','\xC6':'AElig','\uD835\uDCB7':'bscr','\uD835\uDD53':'bopf','\uD835\uDD1F':'bfr','\uD835\uDD39':'Bopf','\u212C':'Bscr','\uD835\uDD05':'Bfr','\uD835\uDD20':'cfr','\uD835\uDCB8':'cscr','\uD835\uDD54':'copf','\u212D':'Cfr','\uD835\uDC9E':'Cscr','\u2102':'Copf','\u0107':'cacute','\u0106':'Cacute','\u0109':'ccirc','\u0108':'Ccirc','\u010D':'ccaron','\u010C':'Ccaron','\u010B':'cdot','\u010A':'Cdot','\xE7':'ccedil','\xC7':'Ccedil','\u2105':'incare','\uD835\uDD21':'dfr','\u2146':'dd','\uD835\uDD55':'dopf','\uD835\uDCB9':'dscr','\uD835\uDC9F':'Dscr','\uD835\uDD07':'Dfr','\u2145':'DD','\uD835\uDD3B':'Dopf','\u010F':'dcaron','\u010E':'Dcaron','\u0111':'dstrok','\u0110':'Dstrok','\xF0':'eth','\xD0':'ETH','\u2147':'ee','\u212F':'escr','\uD835\uDD22':'efr','\uD835\uDD56':'eopf','\u2130':'Escr','\uD835\uDD08':'Efr','\uD835\uDD3C':'Eopf','\xE9':'eacute','\xC9':'Eacute','\xE8':'egrave','\xC8':'Egrave','\xEA':'ecirc','\xCA':'Ecirc','\u011B':'ecaron','\u011A':'Ecaron','\xEB':'euml','\xCB':'Euml','\u0117':'edot','\u0116':'Edot','\u0119':'eogon','\u0118':'Eogon','\u0113':'emacr','\u0112':'Emacr','\uD835\uDD23':'ffr','\uD835\uDD57':'fopf','\uD835\uDCBB':'fscr','\uD835\uDD09':'Ffr','\uD835\uDD3D':'Fopf','\u2131':'Fscr','\uFB00':'fflig','\uFB03':'ffilig','\uFB04':'ffllig','\uFB01':'filig','fj':'fjlig','\uFB02':'fllig','\u0192':'fnof','\u210A':'gscr','\uD835\uDD58':'gopf','\uD835\uDD24':'gfr','\uD835\uDCA2':'Gscr','\uD835\uDD3E':'Gopf','\uD835\uDD0A':'Gfr','\u01F5':'gacute','\u011F':'gbreve','\u011E':'Gbreve','\u011D':'gcirc','\u011C':'Gcirc','\u0121':'gdot','\u0120':'Gdot','\u0122':'Gcedil','\uD835\uDD25':'hfr','\u210E':'planckh','\uD835\uDCBD':'hscr','\uD835\uDD59':'hopf','\u210B':'Hscr','\u210C':'Hfr','\u210D':'Hopf','\u0125':'hcirc','\u0124':'Hcirc','\u210F':'hbar','\u0127':'hstrok','\u0126':'Hstrok','\uD835\uDD5A':'iopf','\uD835\uDD26':'ifr','\uD835\uDCBE':'iscr','\u2148':'ii','\uD835\uDD40':'Iopf','\u2110':'Iscr','\u2111':'Im','\xED':'iacute','\xCD':'Iacute','\xEC':'igrave','\xCC':'Igrave','\xEE':'icirc','\xCE':'Icirc','\xEF':'iuml','\xCF':'Iuml','\u0129':'itilde','\u0128':'Itilde','\u0130':'Idot','\u012F':'iogon','\u012E':'Iogon','\u012B':'imacr','\u012A':'Imacr','\u0133':'ijlig','\u0132':'IJlig','\u0131':'imath','\uD835\uDCBF':'jscr','\uD835\uDD5B':'jopf','\uD835\uDD27':'jfr','\uD835\uDCA5':'Jscr','\uD835\uDD0D':'Jfr','\uD835\uDD41':'Jopf','\u0135':'jcirc','\u0134':'Jcirc','\u0237':'jmath','\uD835\uDD5C':'kopf','\uD835\uDCC0':'kscr','\uD835\uDD28':'kfr','\uD835\uDCA6':'Kscr','\uD835\uDD42':'Kopf','\uD835\uDD0E':'Kfr','\u0137':'kcedil','\u0136':'Kcedil','\uD835\uDD29':'lfr','\uD835\uDCC1':'lscr','\u2113':'ell','\uD835\uDD5D':'lopf','\u2112':'Lscr','\uD835\uDD0F':'Lfr','\uD835\uDD43':'Lopf','\u013A':'lacute','\u0139':'Lacute','\u013E':'lcaron','\u013D':'Lcaron','\u013C':'lcedil','\u013B':'Lcedil','\u0142':'lstrok','\u0141':'Lstrok','\u0140':'lmidot','\u013F':'Lmidot','\uD835\uDD2A':'mfr','\uD835\uDD5E':'mopf','\uD835\uDCC2':'mscr','\uD835\uDD10':'Mfr','\uD835\uDD44':'Mopf','\u2133':'Mscr','\uD835\uDD2B':'nfr','\uD835\uDD5F':'nopf','\uD835\uDCC3':'nscr','\u2115':'Nopf','\uD835\uDCA9':'Nscr','\uD835\uDD11':'Nfr','\u0144':'nacute','\u0143':'Nacute','\u0148':'ncaron','\u0147':'Ncaron','\xF1':'ntilde','\xD1':'Ntilde','\u0146':'ncedil','\u0145':'Ncedil','\u2116':'numero','\u014B':'eng','\u014A':'ENG','\uD835\uDD60':'oopf','\uD835\uDD2C':'ofr','\u2134':'oscr','\uD835\uDCAA':'Oscr','\uD835\uDD12':'Ofr','\uD835\uDD46':'Oopf','\xBA':'ordm','\xF3':'oacute','\xD3':'Oacute','\xF2':'ograve','\xD2':'Ograve','\xF4':'ocirc','\xD4':'Ocirc','\xF6':'ouml','\xD6':'Ouml','\u0151':'odblac','\u0150':'Odblac','\xF5':'otilde','\xD5':'Otilde','\xF8':'oslash','\xD8':'Oslash','\u014D':'omacr','\u014C':'Omacr','\u0153':'oelig','\u0152':'OElig','\uD835\uDD2D':'pfr','\uD835\uDCC5':'pscr','\uD835\uDD61':'popf','\u2119':'Popf','\uD835\uDD13':'Pfr','\uD835\uDCAB':'Pscr','\uD835\uDD62':'qopf','\uD835\uDD2E':'qfr','\uD835\uDCC6':'qscr','\uD835\uDCAC':'Qscr','\uD835\uDD14':'Qfr','\u211A':'Qopf','\u0138':'kgreen','\uD835\uDD2F':'rfr','\uD835\uDD63':'ropf','\uD835\uDCC7':'rscr','\u211B':'Rscr','\u211C':'Re','\u211D':'Ropf','\u0155':'racute','\u0154':'Racute','\u0159':'rcaron','\u0158':'Rcaron','\u0157':'rcedil','\u0156':'Rcedil','\uD835\uDD64':'sopf','\uD835\uDCC8':'sscr','\uD835\uDD30':'sfr','\uD835\uDD4A':'Sopf','\uD835\uDD16':'Sfr','\uD835\uDCAE':'Sscr','\u24C8':'oS','\u015B':'sacute','\u015A':'Sacute','\u015D':'scirc','\u015C':'Scirc','\u0161':'scaron','\u0160':'Scaron','\u015F':'scedil','\u015E':'Scedil','\xDF':'szlig','\uD835\uDD31':'tfr','\uD835\uDCC9':'tscr','\uD835\uDD65':'topf','\uD835\uDCAF':'Tscr','\uD835\uDD17':'Tfr','\uD835\uDD4B':'Topf','\u0165':'tcaron','\u0164':'Tcaron','\u0163':'tcedil','\u0162':'Tcedil','\u2122':'trade','\u0167':'tstrok','\u0166':'Tstrok','\uD835\uDCCA':'uscr','\uD835\uDD66':'uopf','\uD835\uDD32':'ufr','\uD835\uDD4C':'Uopf','\uD835\uDD18':'Ufr','\uD835\uDCB0':'Uscr','\xFA':'uacute','\xDA':'Uacute','\xF9':'ugrave','\xD9':'Ugrave','\u016D':'ubreve','\u016C':'Ubreve','\xFB':'ucirc','\xDB':'Ucirc','\u016F':'uring','\u016E':'Uring','\xFC':'uuml','\xDC':'Uuml','\u0171':'udblac','\u0170':'Udblac','\u0169':'utilde','\u0168':'Utilde','\u0173':'uogon','\u0172':'Uogon','\u016B':'umacr','\u016A':'Umacr','\uD835\uDD33':'vfr','\uD835\uDD67':'vopf','\uD835\uDCCB':'vscr','\uD835\uDD19':'Vfr','\uD835\uDD4D':'Vopf','\uD835\uDCB1':'Vscr','\uD835\uDD68':'wopf','\uD835\uDCCC':'wscr','\uD835\uDD34':'wfr','\uD835\uDCB2':'Wscr','\uD835\uDD4E':'Wopf','\uD835\uDD1A':'Wfr','\u0175':'wcirc','\u0174':'Wcirc','\uD835\uDD35':'xfr','\uD835\uDCCD':'xscr','\uD835\uDD69':'xopf','\uD835\uDD4F':'Xopf','\uD835\uDD1B':'Xfr','\uD835\uDCB3':'Xscr','\uD835\uDD36':'yfr','\uD835\uDCCE':'yscr','\uD835\uDD6A':'yopf','\uD835\uDCB4':'Yscr','\uD835\uDD1C':'Yfr','\uD835\uDD50':'Yopf','\xFD':'yacute','\xDD':'Yacute','\u0177':'ycirc','\u0176':'Ycirc','\xFF':'yuml','\u0178':'Yuml','\uD835\uDCCF':'zscr','\uD835\uDD37':'zfr','\uD835\uDD6B':'zopf','\u2128':'Zfr','\u2124':'Zopf','\uD835\uDCB5':'Zscr','\u017A':'zacute','\u0179':'Zacute','\u017E':'zcaron','\u017D':'Zcaron','\u017C':'zdot','\u017B':'Zdot','\u01B5':'imped','\xFE':'thorn','\xDE':'THORN','\u0149':'napos','\u03B1':'alpha','\u0391':'Alpha','\u03B2':'beta','\u0392':'Beta','\u03B3':'gamma','\u0393':'Gamma','\u03B4':'delta','\u0394':'Delta','\u03B5':'epsi','\u03F5':'epsiv','\u0395':'Epsilon','\u03DD':'gammad','\u03DC':'Gammad','\u03B6':'zeta','\u0396':'Zeta','\u03B7':'eta','\u0397':'Eta','\u03B8':'theta','\u03D1':'thetav','\u0398':'Theta','\u03B9':'iota','\u0399':'Iota','\u03BA':'kappa','\u03F0':'kappav','\u039A':'Kappa','\u03BB':'lambda','\u039B':'Lambda','\u03BC':'mu','\xB5':'micro','\u039C':'Mu','\u03BD':'nu','\u039D':'Nu','\u03BE':'xi','\u039E':'Xi','\u03BF':'omicron','\u039F':'Omicron','\u03C0':'pi','\u03D6':'piv','\u03A0':'Pi','\u03C1':'rho','\u03F1':'rhov','\u03A1':'Rho','\u03C3':'sigma','\u03A3':'Sigma','\u03C2':'sigmaf','\u03C4':'tau','\u03A4':'Tau','\u03C5':'upsi','\u03A5':'Upsilon','\u03D2':'Upsi','\u03C6':'phi','\u03D5':'phiv','\u03A6':'Phi','\u03C7':'chi','\u03A7':'Chi','\u03C8':'psi','\u03A8':'Psi','\u03C9':'omega','\u03A9':'ohm','\u0430':'acy','\u0410':'Acy','\u0431':'bcy','\u0411':'Bcy','\u0432':'vcy','\u0412':'Vcy','\u0433':'gcy','\u0413':'Gcy','\u0453':'gjcy','\u0403':'GJcy','\u0434':'dcy','\u0414':'Dcy','\u0452':'djcy','\u0402':'DJcy','\u0435':'iecy','\u0415':'IEcy','\u0451':'iocy','\u0401':'IOcy','\u0454':'jukcy','\u0404':'Jukcy','\u0436':'zhcy','\u0416':'ZHcy','\u0437':'zcy','\u0417':'Zcy','\u0455':'dscy','\u0405':'DScy','\u0438':'icy','\u0418':'Icy','\u0456':'iukcy','\u0406':'Iukcy','\u0457':'yicy','\u0407':'YIcy','\u0439':'jcy','\u0419':'Jcy','\u0458':'jsercy','\u0408':'Jsercy','\u043A':'kcy','\u041A':'Kcy','\u045C':'kjcy','\u040C':'KJcy','\u043B':'lcy','\u041B':'Lcy','\u0459':'ljcy','\u0409':'LJcy','\u043C':'mcy','\u041C':'Mcy','\u043D':'ncy','\u041D':'Ncy','\u045A':'njcy','\u040A':'NJcy','\u043E':'ocy','\u041E':'Ocy','\u043F':'pcy','\u041F':'Pcy','\u0440':'rcy','\u0420':'Rcy','\u0441':'scy','\u0421':'Scy','\u0442':'tcy','\u0422':'Tcy','\u045B':'tshcy','\u040B':'TSHcy','\u0443':'ucy','\u0423':'Ucy','\u045E':'ubrcy','\u040E':'Ubrcy','\u0444':'fcy','\u0424':'Fcy','\u0445':'khcy','\u0425':'KHcy','\u0446':'tscy','\u0426':'TScy','\u0447':'chcy','\u0427':'CHcy','\u045F':'dzcy','\u040F':'DZcy','\u0448':'shcy','\u0428':'SHcy','\u0449':'shchcy','\u0429':'SHCHcy','\u044A':'hardcy','\u042A':'HARDcy','\u044B':'ycy','\u042B':'Ycy','\u044C':'softcy','\u042C':'SOFTcy','\u044D':'ecy','\u042D':'Ecy','\u044E':'yucy','\u042E':'YUcy','\u044F':'yacy','\u042F':'YAcy','\u2135':'aleph','\u2136':'beth','\u2137':'gimel','\u2138':'daleth'};
  23728. var regexEscape = /["&'<>`]/g;
  23729. var escapeMap = {
  23730. '"': '&quot;',
  23731. '&': '&amp;',
  23732. '\'': '&#x27;',
  23733. '<': '&lt;',
  23734. // See https://mathiasbynens.be/notes/ambiguous-ampersands: in HTML, the
  23735. // following is not strictly necessary unless it’s part of a tag or an
  23736. // unquoted attribute value. We’re only escaping it to support those
  23737. // situations, and for XML support.
  23738. '>': '&gt;',
  23739. // In Internet Explorer ≤ 8, the backtick character can be used
  23740. // to break out of (un)quoted attribute values or HTML comments.
  23741. // See http://html5sec.org/#102, http://html5sec.org/#108, and
  23742. // http://html5sec.org/#133.
  23743. '`': '&#x60;'
  23744. };
  23745. var regexInvalidEntity = /&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/;
  23746. var regexInvalidRawCodePoint = /[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
  23747. var regexDecode = /&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g;
  23748. var decodeMap = {'aacute':'\xE1','Aacute':'\xC1','abreve':'\u0103','Abreve':'\u0102','ac':'\u223E','acd':'\u223F','acE':'\u223E\u0333','acirc':'\xE2','Acirc':'\xC2','acute':'\xB4','acy':'\u0430','Acy':'\u0410','aelig':'\xE6','AElig':'\xC6','af':'\u2061','afr':'\uD835\uDD1E','Afr':'\uD835\uDD04','agrave':'\xE0','Agrave':'\xC0','alefsym':'\u2135','aleph':'\u2135','alpha':'\u03B1','Alpha':'\u0391','amacr':'\u0101','Amacr':'\u0100','amalg':'\u2A3F','amp':'&','AMP':'&','and':'\u2227','And':'\u2A53','andand':'\u2A55','andd':'\u2A5C','andslope':'\u2A58','andv':'\u2A5A','ang':'\u2220','ange':'\u29A4','angle':'\u2220','angmsd':'\u2221','angmsdaa':'\u29A8','angmsdab':'\u29A9','angmsdac':'\u29AA','angmsdad':'\u29AB','angmsdae':'\u29AC','angmsdaf':'\u29AD','angmsdag':'\u29AE','angmsdah':'\u29AF','angrt':'\u221F','angrtvb':'\u22BE','angrtvbd':'\u299D','angsph':'\u2222','angst':'\xC5','angzarr':'\u237C','aogon':'\u0105','Aogon':'\u0104','aopf':'\uD835\uDD52','Aopf':'\uD835\uDD38','ap':'\u2248','apacir':'\u2A6F','ape':'\u224A','apE':'\u2A70','apid':'\u224B','apos':'\'','ApplyFunction':'\u2061','approx':'\u2248','approxeq':'\u224A','aring':'\xE5','Aring':'\xC5','ascr':'\uD835\uDCB6','Ascr':'\uD835\uDC9C','Assign':'\u2254','ast':'*','asymp':'\u2248','asympeq':'\u224D','atilde':'\xE3','Atilde':'\xC3','auml':'\xE4','Auml':'\xC4','awconint':'\u2233','awint':'\u2A11','backcong':'\u224C','backepsilon':'\u03F6','backprime':'\u2035','backsim':'\u223D','backsimeq':'\u22CD','Backslash':'\u2216','Barv':'\u2AE7','barvee':'\u22BD','barwed':'\u2305','Barwed':'\u2306','barwedge':'\u2305','bbrk':'\u23B5','bbrktbrk':'\u23B6','bcong':'\u224C','bcy':'\u0431','Bcy':'\u0411','bdquo':'\u201E','becaus':'\u2235','because':'\u2235','Because':'\u2235','bemptyv':'\u29B0','bepsi':'\u03F6','bernou':'\u212C','Bernoullis':'\u212C','beta':'\u03B2','Beta':'\u0392','beth':'\u2136','between':'\u226C','bfr':'\uD835\uDD1F','Bfr':'\uD835\uDD05','bigcap':'\u22C2','bigcirc':'\u25EF','bigcup':'\u22C3','bigodot':'\u2A00','bigoplus':'\u2A01','bigotimes':'\u2A02','bigsqcup':'\u2A06','bigstar':'\u2605','bigtriangledown':'\u25BD','bigtriangleup':'\u25B3','biguplus':'\u2A04','bigvee':'\u22C1','bigwedge':'\u22C0','bkarow':'\u290D','blacklozenge':'\u29EB','blacksquare':'\u25AA','blacktriangle':'\u25B4','blacktriangledown':'\u25BE','blacktriangleleft':'\u25C2','blacktriangleright':'\u25B8','blank':'\u2423','blk12':'\u2592','blk14':'\u2591','blk34':'\u2593','block':'\u2588','bne':'=\u20E5','bnequiv':'\u2261\u20E5','bnot':'\u2310','bNot':'\u2AED','bopf':'\uD835\uDD53','Bopf':'\uD835\uDD39','bot':'\u22A5','bottom':'\u22A5','bowtie':'\u22C8','boxbox':'\u29C9','boxdl':'\u2510','boxdL':'\u2555','boxDl':'\u2556','boxDL':'\u2557','boxdr':'\u250C','boxdR':'\u2552','boxDr':'\u2553','boxDR':'\u2554','boxh':'\u2500','boxH':'\u2550','boxhd':'\u252C','boxhD':'\u2565','boxHd':'\u2564','boxHD':'\u2566','boxhu':'\u2534','boxhU':'\u2568','boxHu':'\u2567','boxHU':'\u2569','boxminus':'\u229F','boxplus':'\u229E','boxtimes':'\u22A0','boxul':'\u2518','boxuL':'\u255B','boxUl':'\u255C','boxUL':'\u255D','boxur':'\u2514','boxuR':'\u2558','boxUr':'\u2559','boxUR':'\u255A','boxv':'\u2502','boxV':'\u2551','boxvh':'\u253C','boxvH':'\u256A','boxVh':'\u256B','boxVH':'\u256C','boxvl':'\u2524','boxvL':'\u2561','boxVl':'\u2562','boxVL':'\u2563','boxvr':'\u251C','boxvR':'\u255E','boxVr':'\u255F','boxVR':'\u2560','bprime':'\u2035','breve':'\u02D8','Breve':'\u02D8','brvbar':'\xA6','bscr':'\uD835\uDCB7','Bscr':'\u212C','bsemi':'\u204F','bsim':'\u223D','bsime':'\u22CD','bsol':'\\','bsolb':'\u29C5','bsolhsub':'\u27C8','bull':'\u2022','bullet':'\u2022','bump':'\u224E','bumpe':'\u224F','bumpE':'\u2AAE','bumpeq':'\u224F','Bumpeq':'\u224E','cacute':'\u0107','Cacute':'\u0106','cap':'\u2229','Cap':'\u22D2','capand':'\u2A44','capbrcup':'\u2A49','capcap':'\u2A4B','capcup':'\u2A47','capdot':'\u2A40','CapitalDifferentialD':'\u2145','caps':'\u2229\uFE00','caret':'\u2041','caron':'\u02C7','Cayleys':'\u212D','ccaps':'\u2A4D','ccaron':'\u010D','Ccaron':'\u010C','ccedil':'\xE7','Ccedil':'\xC7','ccirc':'\u0109','Ccirc':'\u0108','Cconint':'\u2230','ccups':'\u2A4C','ccupssm':'\u2A50','cdot':'\u010B','Cdot':'\u010A','cedil':'\xB8','Cedilla':'\xB8','cemptyv':'\u29B2','cent':'\xA2','centerdot':'\xB7','CenterDot':'\xB7','cfr':'\uD835\uDD20','Cfr':'\u212D','chcy':'\u0447','CHcy':'\u0427','check':'\u2713','checkmark':'\u2713','chi':'\u03C7','Chi':'\u03A7','cir':'\u25CB','circ':'\u02C6','circeq':'\u2257','circlearrowleft':'\u21BA','circlearrowright':'\u21BB','circledast':'\u229B','circledcirc':'\u229A','circleddash':'\u229D','CircleDot':'\u2299','circledR':'\xAE','circledS':'\u24C8','CircleMinus':'\u2296','CirclePlus':'\u2295','CircleTimes':'\u2297','cire':'\u2257','cirE':'\u29C3','cirfnint':'\u2A10','cirmid':'\u2AEF','cirscir':'\u29C2','ClockwiseContourIntegral':'\u2232','CloseCurlyDoubleQuote':'\u201D','CloseCurlyQuote':'\u2019','clubs':'\u2663','clubsuit':'\u2663','colon':':','Colon':'\u2237','colone':'\u2254','Colone':'\u2A74','coloneq':'\u2254','comma':',','commat':'@','comp':'\u2201','compfn':'\u2218','complement':'\u2201','complexes':'\u2102','cong':'\u2245','congdot':'\u2A6D','Congruent':'\u2261','conint':'\u222E','Conint':'\u222F','ContourIntegral':'\u222E','copf':'\uD835\uDD54','Copf':'\u2102','coprod':'\u2210','Coproduct':'\u2210','copy':'\xA9','COPY':'\xA9','copysr':'\u2117','CounterClockwiseContourIntegral':'\u2233','crarr':'\u21B5','cross':'\u2717','Cross':'\u2A2F','cscr':'\uD835\uDCB8','Cscr':'\uD835\uDC9E','csub':'\u2ACF','csube':'\u2AD1','csup':'\u2AD0','csupe':'\u2AD2','ctdot':'\u22EF','cudarrl':'\u2938','cudarrr':'\u2935','cuepr':'\u22DE','cuesc':'\u22DF','cularr':'\u21B6','cularrp':'\u293D','cup':'\u222A','Cup':'\u22D3','cupbrcap':'\u2A48','cupcap':'\u2A46','CupCap':'\u224D','cupcup':'\u2A4A','cupdot':'\u228D','cupor':'\u2A45','cups':'\u222A\uFE00','curarr':'\u21B7','curarrm':'\u293C','curlyeqprec':'\u22DE','curlyeqsucc':'\u22DF','curlyvee':'\u22CE','curlywedge':'\u22CF','curren':'\xA4','curvearrowleft':'\u21B6','curvearrowright':'\u21B7','cuvee':'\u22CE','cuwed':'\u22CF','cwconint':'\u2232','cwint':'\u2231','cylcty':'\u232D','dagger':'\u2020','Dagger':'\u2021','daleth':'\u2138','darr':'\u2193','dArr':'\u21D3','Darr':'\u21A1','dash':'\u2010','dashv':'\u22A3','Dashv':'\u2AE4','dbkarow':'\u290F','dblac':'\u02DD','dcaron':'\u010F','Dcaron':'\u010E','dcy':'\u0434','Dcy':'\u0414','dd':'\u2146','DD':'\u2145','ddagger':'\u2021','ddarr':'\u21CA','DDotrahd':'\u2911','ddotseq':'\u2A77','deg':'\xB0','Del':'\u2207','delta':'\u03B4','Delta':'\u0394','demptyv':'\u29B1','dfisht':'\u297F','dfr':'\uD835\uDD21','Dfr':'\uD835\uDD07','dHar':'\u2965','dharl':'\u21C3','dharr':'\u21C2','DiacriticalAcute':'\xB4','DiacriticalDot':'\u02D9','DiacriticalDoubleAcute':'\u02DD','DiacriticalGrave':'`','DiacriticalTilde':'\u02DC','diam':'\u22C4','diamond':'\u22C4','Diamond':'\u22C4','diamondsuit':'\u2666','diams':'\u2666','die':'\xA8','DifferentialD':'\u2146','digamma':'\u03DD','disin':'\u22F2','div':'\xF7','divide':'\xF7','divideontimes':'\u22C7','divonx':'\u22C7','djcy':'\u0452','DJcy':'\u0402','dlcorn':'\u231E','dlcrop':'\u230D','dollar':'$','dopf':'\uD835\uDD55','Dopf':'\uD835\uDD3B','dot':'\u02D9','Dot':'\xA8','DotDot':'\u20DC','doteq':'\u2250','doteqdot':'\u2251','DotEqual':'\u2250','dotminus':'\u2238','dotplus':'\u2214','dotsquare':'\u22A1','doublebarwedge':'\u2306','DoubleContourIntegral':'\u222F','DoubleDot':'\xA8','DoubleDownArrow':'\u21D3','DoubleLeftArrow':'\u21D0','DoubleLeftRightArrow':'\u21D4','DoubleLeftTee':'\u2AE4','DoubleLongLeftArrow':'\u27F8','DoubleLongLeftRightArrow':'\u27FA','DoubleLongRightArrow':'\u27F9','DoubleRightArrow':'\u21D2','DoubleRightTee':'\u22A8','DoubleUpArrow':'\u21D1','DoubleUpDownArrow':'\u21D5','DoubleVerticalBar':'\u2225','downarrow':'\u2193','Downarrow':'\u21D3','DownArrow':'\u2193','DownArrowBar':'\u2913','DownArrowUpArrow':'\u21F5','DownBreve':'\u0311','downdownarrows':'\u21CA','downharpoonleft':'\u21C3','downharpoonright':'\u21C2','DownLeftRightVector':'\u2950','DownLeftTeeVector':'\u295E','DownLeftVector':'\u21BD','DownLeftVectorBar':'\u2956','DownRightTeeVector':'\u295F','DownRightVector':'\u21C1','DownRightVectorBar':'\u2957','DownTee':'\u22A4','DownTeeArrow':'\u21A7','drbkarow':'\u2910','drcorn':'\u231F','drcrop':'\u230C','dscr':'\uD835\uDCB9','Dscr':'\uD835\uDC9F','dscy':'\u0455','DScy':'\u0405','dsol':'\u29F6','dstrok':'\u0111','Dstrok':'\u0110','dtdot':'\u22F1','dtri':'\u25BF','dtrif':'\u25BE','duarr':'\u21F5','duhar':'\u296F','dwangle':'\u29A6','dzcy':'\u045F','DZcy':'\u040F','dzigrarr':'\u27FF','eacute':'\xE9','Eacute':'\xC9','easter':'\u2A6E','ecaron':'\u011B','Ecaron':'\u011A','ecir':'\u2256','ecirc':'\xEA','Ecirc':'\xCA','ecolon':'\u2255','ecy':'\u044D','Ecy':'\u042D','eDDot':'\u2A77','edot':'\u0117','eDot':'\u2251','Edot':'\u0116','ee':'\u2147','efDot':'\u2252','efr':'\uD835\uDD22','Efr':'\uD835\uDD08','eg':'\u2A9A','egrave':'\xE8','Egrave':'\xC8','egs':'\u2A96','egsdot':'\u2A98','el':'\u2A99','Element':'\u2208','elinters':'\u23E7','ell':'\u2113','els':'\u2A95','elsdot':'\u2A97','emacr':'\u0113','Emacr':'\u0112','empty':'\u2205','emptyset':'\u2205','EmptySmallSquare':'\u25FB','emptyv':'\u2205','EmptyVerySmallSquare':'\u25AB','emsp':'\u2003','emsp13':'\u2004','emsp14':'\u2005','eng':'\u014B','ENG':'\u014A','ensp':'\u2002','eogon':'\u0119','Eogon':'\u0118','eopf':'\uD835\uDD56','Eopf':'\uD835\uDD3C','epar':'\u22D5','eparsl':'\u29E3','eplus':'\u2A71','epsi':'\u03B5','epsilon':'\u03B5','Epsilon':'\u0395','epsiv':'\u03F5','eqcirc':'\u2256','eqcolon':'\u2255','eqsim':'\u2242','eqslantgtr':'\u2A96','eqslantless':'\u2A95','Equal':'\u2A75','equals':'=','EqualTilde':'\u2242','equest':'\u225F','Equilibrium':'\u21CC','equiv':'\u2261','equivDD':'\u2A78','eqvparsl':'\u29E5','erarr':'\u2971','erDot':'\u2253','escr':'\u212F','Escr':'\u2130','esdot':'\u2250','esim':'\u2242','Esim':'\u2A73','eta':'\u03B7','Eta':'\u0397','eth':'\xF0','ETH':'\xD0','euml':'\xEB','Euml':'\xCB','euro':'\u20AC','excl':'!','exist':'\u2203','Exists':'\u2203','expectation':'\u2130','exponentiale':'\u2147','ExponentialE':'\u2147','fallingdotseq':'\u2252','fcy':'\u0444','Fcy':'\u0424','female':'\u2640','ffilig':'\uFB03','fflig':'\uFB00','ffllig':'\uFB04','ffr':'\uD835\uDD23','Ffr':'\uD835\uDD09','filig':'\uFB01','FilledSmallSquare':'\u25FC','FilledVerySmallSquare':'\u25AA','fjlig':'fj','flat':'\u266D','fllig':'\uFB02','fltns':'\u25B1','fnof':'\u0192','fopf':'\uD835\uDD57','Fopf':'\uD835\uDD3D','forall':'\u2200','ForAll':'\u2200','fork':'\u22D4','forkv':'\u2AD9','Fouriertrf':'\u2131','fpartint':'\u2A0D','frac12':'\xBD','frac13':'\u2153','frac14':'\xBC','frac15':'\u2155','frac16':'\u2159','frac18':'\u215B','frac23':'\u2154','frac25':'\u2156','frac34':'\xBE','frac35':'\u2157','frac38':'\u215C','frac45':'\u2158','frac56':'\u215A','frac58':'\u215D','frac78':'\u215E','frasl':'\u2044','frown':'\u2322','fscr':'\uD835\uDCBB','Fscr':'\u2131','gacute':'\u01F5','gamma':'\u03B3','Gamma':'\u0393','gammad':'\u03DD','Gammad':'\u03DC','gap':'\u2A86','gbreve':'\u011F','Gbreve':'\u011E','Gcedil':'\u0122','gcirc':'\u011D','Gcirc':'\u011C','gcy':'\u0433','Gcy':'\u0413','gdot':'\u0121','Gdot':'\u0120','ge':'\u2265','gE':'\u2267','gel':'\u22DB','gEl':'\u2A8C','geq':'\u2265','geqq':'\u2267','geqslant':'\u2A7E','ges':'\u2A7E','gescc':'\u2AA9','gesdot':'\u2A80','gesdoto':'\u2A82','gesdotol':'\u2A84','gesl':'\u22DB\uFE00','gesles':'\u2A94','gfr':'\uD835\uDD24','Gfr':'\uD835\uDD0A','gg':'\u226B','Gg':'\u22D9','ggg':'\u22D9','gimel':'\u2137','gjcy':'\u0453','GJcy':'\u0403','gl':'\u2277','gla':'\u2AA5','glE':'\u2A92','glj':'\u2AA4','gnap':'\u2A8A','gnapprox':'\u2A8A','gne':'\u2A88','gnE':'\u2269','gneq':'\u2A88','gneqq':'\u2269','gnsim':'\u22E7','gopf':'\uD835\uDD58','Gopf':'\uD835\uDD3E','grave':'`','GreaterEqual':'\u2265','GreaterEqualLess':'\u22DB','GreaterFullEqual':'\u2267','GreaterGreater':'\u2AA2','GreaterLess':'\u2277','GreaterSlantEqual':'\u2A7E','GreaterTilde':'\u2273','gscr':'\u210A','Gscr':'\uD835\uDCA2','gsim':'\u2273','gsime':'\u2A8E','gsiml':'\u2A90','gt':'>','Gt':'\u226B','GT':'>','gtcc':'\u2AA7','gtcir':'\u2A7A','gtdot':'\u22D7','gtlPar':'\u2995','gtquest':'\u2A7C','gtrapprox':'\u2A86','gtrarr':'\u2978','gtrdot':'\u22D7','gtreqless':'\u22DB','gtreqqless':'\u2A8C','gtrless':'\u2277','gtrsim':'\u2273','gvertneqq':'\u2269\uFE00','gvnE':'\u2269\uFE00','Hacek':'\u02C7','hairsp':'\u200A','half':'\xBD','hamilt':'\u210B','hardcy':'\u044A','HARDcy':'\u042A','harr':'\u2194','hArr':'\u21D4','harrcir':'\u2948','harrw':'\u21AD','Hat':'^','hbar':'\u210F','hcirc':'\u0125','Hcirc':'\u0124','hearts':'\u2665','heartsuit':'\u2665','hellip':'\u2026','hercon':'\u22B9','hfr':'\uD835\uDD25','Hfr':'\u210C','HilbertSpace':'\u210B','hksearow':'\u2925','hkswarow':'\u2926','hoarr':'\u21FF','homtht':'\u223B','hookleftarrow':'\u21A9','hookrightarrow':'\u21AA','hopf':'\uD835\uDD59','Hopf':'\u210D','horbar':'\u2015','HorizontalLine':'\u2500','hscr':'\uD835\uDCBD','Hscr':'\u210B','hslash':'\u210F','hstrok':'\u0127','Hstrok':'\u0126','HumpDownHump':'\u224E','HumpEqual':'\u224F','hybull':'\u2043','hyphen':'\u2010','iacute':'\xED','Iacute':'\xCD','ic':'\u2063','icirc':'\xEE','Icirc':'\xCE','icy':'\u0438','Icy':'\u0418','Idot':'\u0130','iecy':'\u0435','IEcy':'\u0415','iexcl':'\xA1','iff':'\u21D4','ifr':'\uD835\uDD26','Ifr':'\u2111','igrave':'\xEC','Igrave':'\xCC','ii':'\u2148','iiiint':'\u2A0C','iiint':'\u222D','iinfin':'\u29DC','iiota':'\u2129','ijlig':'\u0133','IJlig':'\u0132','Im':'\u2111','imacr':'\u012B','Imacr':'\u012A','image':'\u2111','ImaginaryI':'\u2148','imagline':'\u2110','imagpart':'\u2111','imath':'\u0131','imof':'\u22B7','imped':'\u01B5','Implies':'\u21D2','in':'\u2208','incare':'\u2105','infin':'\u221E','infintie':'\u29DD','inodot':'\u0131','int':'\u222B','Int':'\u222C','intcal':'\u22BA','integers':'\u2124','Integral':'\u222B','intercal':'\u22BA','Intersection':'\u22C2','intlarhk':'\u2A17','intprod':'\u2A3C','InvisibleComma':'\u2063','InvisibleTimes':'\u2062','iocy':'\u0451','IOcy':'\u0401','iogon':'\u012F','Iogon':'\u012E','iopf':'\uD835\uDD5A','Iopf':'\uD835\uDD40','iota':'\u03B9','Iota':'\u0399','iprod':'\u2A3C','iquest':'\xBF','iscr':'\uD835\uDCBE','Iscr':'\u2110','isin':'\u2208','isindot':'\u22F5','isinE':'\u22F9','isins':'\u22F4','isinsv':'\u22F3','isinv':'\u2208','it':'\u2062','itilde':'\u0129','Itilde':'\u0128','iukcy':'\u0456','Iukcy':'\u0406','iuml':'\xEF','Iuml':'\xCF','jcirc':'\u0135','Jcirc':'\u0134','jcy':'\u0439','Jcy':'\u0419','jfr':'\uD835\uDD27','Jfr':'\uD835\uDD0D','jmath':'\u0237','jopf':'\uD835\uDD5B','Jopf':'\uD835\uDD41','jscr':'\uD835\uDCBF','Jscr':'\uD835\uDCA5','jsercy':'\u0458','Jsercy':'\u0408','jukcy':'\u0454','Jukcy':'\u0404','kappa':'\u03BA','Kappa':'\u039A','kappav':'\u03F0','kcedil':'\u0137','Kcedil':'\u0136','kcy':'\u043A','Kcy':'\u041A','kfr':'\uD835\uDD28','Kfr':'\uD835\uDD0E','kgreen':'\u0138','khcy':'\u0445','KHcy':'\u0425','kjcy':'\u045C','KJcy':'\u040C','kopf':'\uD835\uDD5C','Kopf':'\uD835\uDD42','kscr':'\uD835\uDCC0','Kscr':'\uD835\uDCA6','lAarr':'\u21DA','lacute':'\u013A','Lacute':'\u0139','laemptyv':'\u29B4','lagran':'\u2112','lambda':'\u03BB','Lambda':'\u039B','lang':'\u27E8','Lang':'\u27EA','langd':'\u2991','langle':'\u27E8','lap':'\u2A85','Laplacetrf':'\u2112','laquo':'\xAB','larr':'\u2190','lArr':'\u21D0','Larr':'\u219E','larrb':'\u21E4','larrbfs':'\u291F','larrfs':'\u291D','larrhk':'\u21A9','larrlp':'\u21AB','larrpl':'\u2939','larrsim':'\u2973','larrtl':'\u21A2','lat':'\u2AAB','latail':'\u2919','lAtail':'\u291B','late':'\u2AAD','lates':'\u2AAD\uFE00','lbarr':'\u290C','lBarr':'\u290E','lbbrk':'\u2772','lbrace':'{','lbrack':'[','lbrke':'\u298B','lbrksld':'\u298F','lbrkslu':'\u298D','lcaron':'\u013E','Lcaron':'\u013D','lcedil':'\u013C','Lcedil':'\u013B','lceil':'\u2308','lcub':'{','lcy':'\u043B','Lcy':'\u041B','ldca':'\u2936','ldquo':'\u201C','ldquor':'\u201E','ldrdhar':'\u2967','ldrushar':'\u294B','ldsh':'\u21B2','le':'\u2264','lE':'\u2266','LeftAngleBracket':'\u27E8','leftarrow':'\u2190','Leftarrow':'\u21D0','LeftArrow':'\u2190','LeftArrowBar':'\u21E4','LeftArrowRightArrow':'\u21C6','leftarrowtail':'\u21A2','LeftCeiling':'\u2308','LeftDoubleBracket':'\u27E6','LeftDownTeeVector':'\u2961','LeftDownVector':'\u21C3','LeftDownVectorBar':'\u2959','LeftFloor':'\u230A','leftharpoondown':'\u21BD','leftharpoonup':'\u21BC','leftleftarrows':'\u21C7','leftrightarrow':'\u2194','Leftrightarrow':'\u21D4','LeftRightArrow':'\u2194','leftrightarrows':'\u21C6','leftrightharpoons':'\u21CB','leftrightsquigarrow':'\u21AD','LeftRightVector':'\u294E','LeftTee':'\u22A3','LeftTeeArrow':'\u21A4','LeftTeeVector':'\u295A','leftthreetimes':'\u22CB','LeftTriangle':'\u22B2','LeftTriangleBar':'\u29CF','LeftTriangleEqual':'\u22B4','LeftUpDownVector':'\u2951','LeftUpTeeVector':'\u2960','LeftUpVector':'\u21BF','LeftUpVectorBar':'\u2958','LeftVector':'\u21BC','LeftVectorBar':'\u2952','leg':'\u22DA','lEg':'\u2A8B','leq':'\u2264','leqq':'\u2266','leqslant':'\u2A7D','les':'\u2A7D','lescc':'\u2AA8','lesdot':'\u2A7F','lesdoto':'\u2A81','lesdotor':'\u2A83','lesg':'\u22DA\uFE00','lesges':'\u2A93','lessapprox':'\u2A85','lessdot':'\u22D6','lesseqgtr':'\u22DA','lesseqqgtr':'\u2A8B','LessEqualGreater':'\u22DA','LessFullEqual':'\u2266','LessGreater':'\u2276','lessgtr':'\u2276','LessLess':'\u2AA1','lesssim':'\u2272','LessSlantEqual':'\u2A7D','LessTilde':'\u2272','lfisht':'\u297C','lfloor':'\u230A','lfr':'\uD835\uDD29','Lfr':'\uD835\uDD0F','lg':'\u2276','lgE':'\u2A91','lHar':'\u2962','lhard':'\u21BD','lharu':'\u21BC','lharul':'\u296A','lhblk':'\u2584','ljcy':'\u0459','LJcy':'\u0409','ll':'\u226A','Ll':'\u22D8','llarr':'\u21C7','llcorner':'\u231E','Lleftarrow':'\u21DA','llhard':'\u296B','lltri':'\u25FA','lmidot':'\u0140','Lmidot':'\u013F','lmoust':'\u23B0','lmoustache':'\u23B0','lnap':'\u2A89','lnapprox':'\u2A89','lne':'\u2A87','lnE':'\u2268','lneq':'\u2A87','lneqq':'\u2268','lnsim':'\u22E6','loang':'\u27EC','loarr':'\u21FD','lobrk':'\u27E6','longleftarrow':'\u27F5','Longleftarrow':'\u27F8','LongLeftArrow':'\u27F5','longleftrightarrow':'\u27F7','Longleftrightarrow':'\u27FA','LongLeftRightArrow':'\u27F7','longmapsto':'\u27FC','longrightarrow':'\u27F6','Longrightarrow':'\u27F9','LongRightArrow':'\u27F6','looparrowleft':'\u21AB','looparrowright':'\u21AC','lopar':'\u2985','lopf':'\uD835\uDD5D','Lopf':'\uD835\uDD43','loplus':'\u2A2D','lotimes':'\u2A34','lowast':'\u2217','lowbar':'_','LowerLeftArrow':'\u2199','LowerRightArrow':'\u2198','loz':'\u25CA','lozenge':'\u25CA','lozf':'\u29EB','lpar':'(','lparlt':'\u2993','lrarr':'\u21C6','lrcorner':'\u231F','lrhar':'\u21CB','lrhard':'\u296D','lrm':'\u200E','lrtri':'\u22BF','lsaquo':'\u2039','lscr':'\uD835\uDCC1','Lscr':'\u2112','lsh':'\u21B0','Lsh':'\u21B0','lsim':'\u2272','lsime':'\u2A8D','lsimg':'\u2A8F','lsqb':'[','lsquo':'\u2018','lsquor':'\u201A','lstrok':'\u0142','Lstrok':'\u0141','lt':'<','Lt':'\u226A','LT':'<','ltcc':'\u2AA6','ltcir':'\u2A79','ltdot':'\u22D6','lthree':'\u22CB','ltimes':'\u22C9','ltlarr':'\u2976','ltquest':'\u2A7B','ltri':'\u25C3','ltrie':'\u22B4','ltrif':'\u25C2','ltrPar':'\u2996','lurdshar':'\u294A','luruhar':'\u2966','lvertneqq':'\u2268\uFE00','lvnE':'\u2268\uFE00','macr':'\xAF','male':'\u2642','malt':'\u2720','maltese':'\u2720','map':'\u21A6','Map':'\u2905','mapsto':'\u21A6','mapstodown':'\u21A7','mapstoleft':'\u21A4','mapstoup':'\u21A5','marker':'\u25AE','mcomma':'\u2A29','mcy':'\u043C','Mcy':'\u041C','mdash':'\u2014','mDDot':'\u223A','measuredangle':'\u2221','MediumSpace':'\u205F','Mellintrf':'\u2133','mfr':'\uD835\uDD2A','Mfr':'\uD835\uDD10','mho':'\u2127','micro':'\xB5','mid':'\u2223','midast':'*','midcir':'\u2AF0','middot':'\xB7','minus':'\u2212','minusb':'\u229F','minusd':'\u2238','minusdu':'\u2A2A','MinusPlus':'\u2213','mlcp':'\u2ADB','mldr':'\u2026','mnplus':'\u2213','models':'\u22A7','mopf':'\uD835\uDD5E','Mopf':'\uD835\uDD44','mp':'\u2213','mscr':'\uD835\uDCC2','Mscr':'\u2133','mstpos':'\u223E','mu':'\u03BC','Mu':'\u039C','multimap':'\u22B8','mumap':'\u22B8','nabla':'\u2207','nacute':'\u0144','Nacute':'\u0143','nang':'\u2220\u20D2','nap':'\u2249','napE':'\u2A70\u0338','napid':'\u224B\u0338','napos':'\u0149','napprox':'\u2249','natur':'\u266E','natural':'\u266E','naturals':'\u2115','nbsp':'\xA0','nbump':'\u224E\u0338','nbumpe':'\u224F\u0338','ncap':'\u2A43','ncaron':'\u0148','Ncaron':'\u0147','ncedil':'\u0146','Ncedil':'\u0145','ncong':'\u2247','ncongdot':'\u2A6D\u0338','ncup':'\u2A42','ncy':'\u043D','Ncy':'\u041D','ndash':'\u2013','ne':'\u2260','nearhk':'\u2924','nearr':'\u2197','neArr':'\u21D7','nearrow':'\u2197','nedot':'\u2250\u0338','NegativeMediumSpace':'\u200B','NegativeThickSpace':'\u200B','NegativeThinSpace':'\u200B','NegativeVeryThinSpace':'\u200B','nequiv':'\u2262','nesear':'\u2928','nesim':'\u2242\u0338','NestedGreaterGreater':'\u226B','NestedLessLess':'\u226A','NewLine':'\n','nexist':'\u2204','nexists':'\u2204','nfr':'\uD835\uDD2B','Nfr':'\uD835\uDD11','nge':'\u2271','ngE':'\u2267\u0338','ngeq':'\u2271','ngeqq':'\u2267\u0338','ngeqslant':'\u2A7E\u0338','nges':'\u2A7E\u0338','nGg':'\u22D9\u0338','ngsim':'\u2275','ngt':'\u226F','nGt':'\u226B\u20D2','ngtr':'\u226F','nGtv':'\u226B\u0338','nharr':'\u21AE','nhArr':'\u21CE','nhpar':'\u2AF2','ni':'\u220B','nis':'\u22FC','nisd':'\u22FA','niv':'\u220B','njcy':'\u045A','NJcy':'\u040A','nlarr':'\u219A','nlArr':'\u21CD','nldr':'\u2025','nle':'\u2270','nlE':'\u2266\u0338','nleftarrow':'\u219A','nLeftarrow':'\u21CD','nleftrightarrow':'\u21AE','nLeftrightarrow':'\u21CE','nleq':'\u2270','nleqq':'\u2266\u0338','nleqslant':'\u2A7D\u0338','nles':'\u2A7D\u0338','nless':'\u226E','nLl':'\u22D8\u0338','nlsim':'\u2274','nlt':'\u226E','nLt':'\u226A\u20D2','nltri':'\u22EA','nltrie':'\u22EC','nLtv':'\u226A\u0338','nmid':'\u2224','NoBreak':'\u2060','NonBreakingSpace':'\xA0','nopf':'\uD835\uDD5F','Nopf':'\u2115','not':'\xAC','Not':'\u2AEC','NotCongruent':'\u2262','NotCupCap':'\u226D','NotDoubleVerticalBar':'\u2226','NotElement':'\u2209','NotEqual':'\u2260','NotEqualTilde':'\u2242\u0338','NotExists':'\u2204','NotGreater':'\u226F','NotGreaterEqual':'\u2271','NotGreaterFullEqual':'\u2267\u0338','NotGreaterGreater':'\u226B\u0338','NotGreaterLess':'\u2279','NotGreaterSlantEqual':'\u2A7E\u0338','NotGreaterTilde':'\u2275','NotHumpDownHump':'\u224E\u0338','NotHumpEqual':'\u224F\u0338','notin':'\u2209','notindot':'\u22F5\u0338','notinE':'\u22F9\u0338','notinva':'\u2209','notinvb':'\u22F7','notinvc':'\u22F6','NotLeftTriangle':'\u22EA','NotLeftTriangleBar':'\u29CF\u0338','NotLeftTriangleEqual':'\u22EC','NotLess':'\u226E','NotLessEqual':'\u2270','NotLessGreater':'\u2278','NotLessLess':'\u226A\u0338','NotLessSlantEqual':'\u2A7D\u0338','NotLessTilde':'\u2274','NotNestedGreaterGreater':'\u2AA2\u0338','NotNestedLessLess':'\u2AA1\u0338','notni':'\u220C','notniva':'\u220C','notnivb':'\u22FE','notnivc':'\u22FD','NotPrecedes':'\u2280','NotPrecedesEqual':'\u2AAF\u0338','NotPrecedesSlantEqual':'\u22E0','NotReverseElement':'\u220C','NotRightTriangle':'\u22EB','NotRightTriangleBar':'\u29D0\u0338','NotRightTriangleEqual':'\u22ED','NotSquareSubset':'\u228F\u0338','NotSquareSubsetEqual':'\u22E2','NotSquareSuperset':'\u2290\u0338','NotSquareSupersetEqual':'\u22E3','NotSubset':'\u2282\u20D2','NotSubsetEqual':'\u2288','NotSucceeds':'\u2281','NotSucceedsEqual':'\u2AB0\u0338','NotSucceedsSlantEqual':'\u22E1','NotSucceedsTilde':'\u227F\u0338','NotSuperset':'\u2283\u20D2','NotSupersetEqual':'\u2289','NotTilde':'\u2241','NotTildeEqual':'\u2244','NotTildeFullEqual':'\u2247','NotTildeTilde':'\u2249','NotVerticalBar':'\u2224','npar':'\u2226','nparallel':'\u2226','nparsl':'\u2AFD\u20E5','npart':'\u2202\u0338','npolint':'\u2A14','npr':'\u2280','nprcue':'\u22E0','npre':'\u2AAF\u0338','nprec':'\u2280','npreceq':'\u2AAF\u0338','nrarr':'\u219B','nrArr':'\u21CF','nrarrc':'\u2933\u0338','nrarrw':'\u219D\u0338','nrightarrow':'\u219B','nRightarrow':'\u21CF','nrtri':'\u22EB','nrtrie':'\u22ED','nsc':'\u2281','nsccue':'\u22E1','nsce':'\u2AB0\u0338','nscr':'\uD835\uDCC3','Nscr':'\uD835\uDCA9','nshortmid':'\u2224','nshortparallel':'\u2226','nsim':'\u2241','nsime':'\u2244','nsimeq':'\u2244','nsmid':'\u2224','nspar':'\u2226','nsqsube':'\u22E2','nsqsupe':'\u22E3','nsub':'\u2284','nsube':'\u2288','nsubE':'\u2AC5\u0338','nsubset':'\u2282\u20D2','nsubseteq':'\u2288','nsubseteqq':'\u2AC5\u0338','nsucc':'\u2281','nsucceq':'\u2AB0\u0338','nsup':'\u2285','nsupe':'\u2289','nsupE':'\u2AC6\u0338','nsupset':'\u2283\u20D2','nsupseteq':'\u2289','nsupseteqq':'\u2AC6\u0338','ntgl':'\u2279','ntilde':'\xF1','Ntilde':'\xD1','ntlg':'\u2278','ntriangleleft':'\u22EA','ntrianglelefteq':'\u22EC','ntriangleright':'\u22EB','ntrianglerighteq':'\u22ED','nu':'\u03BD','Nu':'\u039D','num':'#','numero':'\u2116','numsp':'\u2007','nvap':'\u224D\u20D2','nvdash':'\u22AC','nvDash':'\u22AD','nVdash':'\u22AE','nVDash':'\u22AF','nvge':'\u2265\u20D2','nvgt':'>\u20D2','nvHarr':'\u2904','nvinfin':'\u29DE','nvlArr':'\u2902','nvle':'\u2264\u20D2','nvlt':'<\u20D2','nvltrie':'\u22B4\u20D2','nvrArr':'\u2903','nvrtrie':'\u22B5\u20D2','nvsim':'\u223C\u20D2','nwarhk':'\u2923','nwarr':'\u2196','nwArr':'\u21D6','nwarrow':'\u2196','nwnear':'\u2927','oacute':'\xF3','Oacute':'\xD3','oast':'\u229B','ocir':'\u229A','ocirc':'\xF4','Ocirc':'\xD4','ocy':'\u043E','Ocy':'\u041E','odash':'\u229D','odblac':'\u0151','Odblac':'\u0150','odiv':'\u2A38','odot':'\u2299','odsold':'\u29BC','oelig':'\u0153','OElig':'\u0152','ofcir':'\u29BF','ofr':'\uD835\uDD2C','Ofr':'\uD835\uDD12','ogon':'\u02DB','ograve':'\xF2','Ograve':'\xD2','ogt':'\u29C1','ohbar':'\u29B5','ohm':'\u03A9','oint':'\u222E','olarr':'\u21BA','olcir':'\u29BE','olcross':'\u29BB','oline':'\u203E','olt':'\u29C0','omacr':'\u014D','Omacr':'\u014C','omega':'\u03C9','Omega':'\u03A9','omicron':'\u03BF','Omicron':'\u039F','omid':'\u29B6','ominus':'\u2296','oopf':'\uD835\uDD60','Oopf':'\uD835\uDD46','opar':'\u29B7','OpenCurlyDoubleQuote':'\u201C','OpenCurlyQuote':'\u2018','operp':'\u29B9','oplus':'\u2295','or':'\u2228','Or':'\u2A54','orarr':'\u21BB','ord':'\u2A5D','order':'\u2134','orderof':'\u2134','ordf':'\xAA','ordm':'\xBA','origof':'\u22B6','oror':'\u2A56','orslope':'\u2A57','orv':'\u2A5B','oS':'\u24C8','oscr':'\u2134','Oscr':'\uD835\uDCAA','oslash':'\xF8','Oslash':'\xD8','osol':'\u2298','otilde':'\xF5','Otilde':'\xD5','otimes':'\u2297','Otimes':'\u2A37','otimesas':'\u2A36','ouml':'\xF6','Ouml':'\xD6','ovbar':'\u233D','OverBar':'\u203E','OverBrace':'\u23DE','OverBracket':'\u23B4','OverParenthesis':'\u23DC','par':'\u2225','para':'\xB6','parallel':'\u2225','parsim':'\u2AF3','parsl':'\u2AFD','part':'\u2202','PartialD':'\u2202','pcy':'\u043F','Pcy':'\u041F','percnt':'%','period':'.','permil':'\u2030','perp':'\u22A5','pertenk':'\u2031','pfr':'\uD835\uDD2D','Pfr':'\uD835\uDD13','phi':'\u03C6','Phi':'\u03A6','phiv':'\u03D5','phmmat':'\u2133','phone':'\u260E','pi':'\u03C0','Pi':'\u03A0','pitchfork':'\u22D4','piv':'\u03D6','planck':'\u210F','planckh':'\u210E','plankv':'\u210F','plus':'+','plusacir':'\u2A23','plusb':'\u229E','pluscir':'\u2A22','plusdo':'\u2214','plusdu':'\u2A25','pluse':'\u2A72','PlusMinus':'\xB1','plusmn':'\xB1','plussim':'\u2A26','plustwo':'\u2A27','pm':'\xB1','Poincareplane':'\u210C','pointint':'\u2A15','popf':'\uD835\uDD61','Popf':'\u2119','pound':'\xA3','pr':'\u227A','Pr':'\u2ABB','prap':'\u2AB7','prcue':'\u227C','pre':'\u2AAF','prE':'\u2AB3','prec':'\u227A','precapprox':'\u2AB7','preccurlyeq':'\u227C','Precedes':'\u227A','PrecedesEqual':'\u2AAF','PrecedesSlantEqual':'\u227C','PrecedesTilde':'\u227E','preceq':'\u2AAF','precnapprox':'\u2AB9','precneqq':'\u2AB5','precnsim':'\u22E8','precsim':'\u227E','prime':'\u2032','Prime':'\u2033','primes':'\u2119','prnap':'\u2AB9','prnE':'\u2AB5','prnsim':'\u22E8','prod':'\u220F','Product':'\u220F','profalar':'\u232E','profline':'\u2312','profsurf':'\u2313','prop':'\u221D','Proportion':'\u2237','Proportional':'\u221D','propto':'\u221D','prsim':'\u227E','prurel':'\u22B0','pscr':'\uD835\uDCC5','Pscr':'\uD835\uDCAB','psi':'\u03C8','Psi':'\u03A8','puncsp':'\u2008','qfr':'\uD835\uDD2E','Qfr':'\uD835\uDD14','qint':'\u2A0C','qopf':'\uD835\uDD62','Qopf':'\u211A','qprime':'\u2057','qscr':'\uD835\uDCC6','Qscr':'\uD835\uDCAC','quaternions':'\u210D','quatint':'\u2A16','quest':'?','questeq':'\u225F','quot':'"','QUOT':'"','rAarr':'\u21DB','race':'\u223D\u0331','racute':'\u0155','Racute':'\u0154','radic':'\u221A','raemptyv':'\u29B3','rang':'\u27E9','Rang':'\u27EB','rangd':'\u2992','range':'\u29A5','rangle':'\u27E9','raquo':'\xBB','rarr':'\u2192','rArr':'\u21D2','Rarr':'\u21A0','rarrap':'\u2975','rarrb':'\u21E5','rarrbfs':'\u2920','rarrc':'\u2933','rarrfs':'\u291E','rarrhk':'\u21AA','rarrlp':'\u21AC','rarrpl':'\u2945','rarrsim':'\u2974','rarrtl':'\u21A3','Rarrtl':'\u2916','rarrw':'\u219D','ratail':'\u291A','rAtail':'\u291C','ratio':'\u2236','rationals':'\u211A','rbarr':'\u290D','rBarr':'\u290F','RBarr':'\u2910','rbbrk':'\u2773','rbrace':'}','rbrack':']','rbrke':'\u298C','rbrksld':'\u298E','rbrkslu':'\u2990','rcaron':'\u0159','Rcaron':'\u0158','rcedil':'\u0157','Rcedil':'\u0156','rceil':'\u2309','rcub':'}','rcy':'\u0440','Rcy':'\u0420','rdca':'\u2937','rdldhar':'\u2969','rdquo':'\u201D','rdquor':'\u201D','rdsh':'\u21B3','Re':'\u211C','real':'\u211C','realine':'\u211B','realpart':'\u211C','reals':'\u211D','rect':'\u25AD','reg':'\xAE','REG':'\xAE','ReverseElement':'\u220B','ReverseEquilibrium':'\u21CB','ReverseUpEquilibrium':'\u296F','rfisht':'\u297D','rfloor':'\u230B','rfr':'\uD835\uDD2F','Rfr':'\u211C','rHar':'\u2964','rhard':'\u21C1','rharu':'\u21C0','rharul':'\u296C','rho':'\u03C1','Rho':'\u03A1','rhov':'\u03F1','RightAngleBracket':'\u27E9','rightarrow':'\u2192','Rightarrow':'\u21D2','RightArrow':'\u2192','RightArrowBar':'\u21E5','RightArrowLeftArrow':'\u21C4','rightarrowtail':'\u21A3','RightCeiling':'\u2309','RightDoubleBracket':'\u27E7','RightDownTeeVector':'\u295D','RightDownVector':'\u21C2','RightDownVectorBar':'\u2955','RightFloor':'\u230B','rightharpoondown':'\u21C1','rightharpoonup':'\u21C0','rightleftarrows':'\u21C4','rightleftharpoons':'\u21CC','rightrightarrows':'\u21C9','rightsquigarrow':'\u219D','RightTee':'\u22A2','RightTeeArrow':'\u21A6','RightTeeVector':'\u295B','rightthreetimes':'\u22CC','RightTriangle':'\u22B3','RightTriangleBar':'\u29D0','RightTriangleEqual':'\u22B5','RightUpDownVector':'\u294F','RightUpTeeVector':'\u295C','RightUpVector':'\u21BE','RightUpVectorBar':'\u2954','RightVector':'\u21C0','RightVectorBar':'\u2953','ring':'\u02DA','risingdotseq':'\u2253','rlarr':'\u21C4','rlhar':'\u21CC','rlm':'\u200F','rmoust':'\u23B1','rmoustache':'\u23B1','rnmid':'\u2AEE','roang':'\u27ED','roarr':'\u21FE','robrk':'\u27E7','ropar':'\u2986','ropf':'\uD835\uDD63','Ropf':'\u211D','roplus':'\u2A2E','rotimes':'\u2A35','RoundImplies':'\u2970','rpar':')','rpargt':'\u2994','rppolint':'\u2A12','rrarr':'\u21C9','Rrightarrow':'\u21DB','rsaquo':'\u203A','rscr':'\uD835\uDCC7','Rscr':'\u211B','rsh':'\u21B1','Rsh':'\u21B1','rsqb':']','rsquo':'\u2019','rsquor':'\u2019','rthree':'\u22CC','rtimes':'\u22CA','rtri':'\u25B9','rtrie':'\u22B5','rtrif':'\u25B8','rtriltri':'\u29CE','RuleDelayed':'\u29F4','ruluhar':'\u2968','rx':'\u211E','sacute':'\u015B','Sacute':'\u015A','sbquo':'\u201A','sc':'\u227B','Sc':'\u2ABC','scap':'\u2AB8','scaron':'\u0161','Scaron':'\u0160','sccue':'\u227D','sce':'\u2AB0','scE':'\u2AB4','scedil':'\u015F','Scedil':'\u015E','scirc':'\u015D','Scirc':'\u015C','scnap':'\u2ABA','scnE':'\u2AB6','scnsim':'\u22E9','scpolint':'\u2A13','scsim':'\u227F','scy':'\u0441','Scy':'\u0421','sdot':'\u22C5','sdotb':'\u22A1','sdote':'\u2A66','searhk':'\u2925','searr':'\u2198','seArr':'\u21D8','searrow':'\u2198','sect':'\xA7','semi':';','seswar':'\u2929','setminus':'\u2216','setmn':'\u2216','sext':'\u2736','sfr':'\uD835\uDD30','Sfr':'\uD835\uDD16','sfrown':'\u2322','sharp':'\u266F','shchcy':'\u0449','SHCHcy':'\u0429','shcy':'\u0448','SHcy':'\u0428','ShortDownArrow':'\u2193','ShortLeftArrow':'\u2190','shortmid':'\u2223','shortparallel':'\u2225','ShortRightArrow':'\u2192','ShortUpArrow':'\u2191','shy':'\xAD','sigma':'\u03C3','Sigma':'\u03A3','sigmaf':'\u03C2','sigmav':'\u03C2','sim':'\u223C','simdot':'\u2A6A','sime':'\u2243','simeq':'\u2243','simg':'\u2A9E','simgE':'\u2AA0','siml':'\u2A9D','simlE':'\u2A9F','simne':'\u2246','simplus':'\u2A24','simrarr':'\u2972','slarr':'\u2190','SmallCircle':'\u2218','smallsetminus':'\u2216','smashp':'\u2A33','smeparsl':'\u29E4','smid':'\u2223','smile':'\u2323','smt':'\u2AAA','smte':'\u2AAC','smtes':'\u2AAC\uFE00','softcy':'\u044C','SOFTcy':'\u042C','sol':'/','solb':'\u29C4','solbar':'\u233F','sopf':'\uD835\uDD64','Sopf':'\uD835\uDD4A','spades':'\u2660','spadesuit':'\u2660','spar':'\u2225','sqcap':'\u2293','sqcaps':'\u2293\uFE00','sqcup':'\u2294','sqcups':'\u2294\uFE00','Sqrt':'\u221A','sqsub':'\u228F','sqsube':'\u2291','sqsubset':'\u228F','sqsubseteq':'\u2291','sqsup':'\u2290','sqsupe':'\u2292','sqsupset':'\u2290','sqsupseteq':'\u2292','squ':'\u25A1','square':'\u25A1','Square':'\u25A1','SquareIntersection':'\u2293','SquareSubset':'\u228F','SquareSubsetEqual':'\u2291','SquareSuperset':'\u2290','SquareSupersetEqual':'\u2292','SquareUnion':'\u2294','squarf':'\u25AA','squf':'\u25AA','srarr':'\u2192','sscr':'\uD835\uDCC8','Sscr':'\uD835\uDCAE','ssetmn':'\u2216','ssmile':'\u2323','sstarf':'\u22C6','star':'\u2606','Star':'\u22C6','starf':'\u2605','straightepsilon':'\u03F5','straightphi':'\u03D5','strns':'\xAF','sub':'\u2282','Sub':'\u22D0','subdot':'\u2ABD','sube':'\u2286','subE':'\u2AC5','subedot':'\u2AC3','submult':'\u2AC1','subne':'\u228A','subnE':'\u2ACB','subplus':'\u2ABF','subrarr':'\u2979','subset':'\u2282','Subset':'\u22D0','subseteq':'\u2286','subseteqq':'\u2AC5','SubsetEqual':'\u2286','subsetneq':'\u228A','subsetneqq':'\u2ACB','subsim':'\u2AC7','subsub':'\u2AD5','subsup':'\u2AD3','succ':'\u227B','succapprox':'\u2AB8','succcurlyeq':'\u227D','Succeeds':'\u227B','SucceedsEqual':'\u2AB0','SucceedsSlantEqual':'\u227D','SucceedsTilde':'\u227F','succeq':'\u2AB0','succnapprox':'\u2ABA','succneqq':'\u2AB6','succnsim':'\u22E9','succsim':'\u227F','SuchThat':'\u220B','sum':'\u2211','Sum':'\u2211','sung':'\u266A','sup':'\u2283','Sup':'\u22D1','sup1':'\xB9','sup2':'\xB2','sup3':'\xB3','supdot':'\u2ABE','supdsub':'\u2AD8','supe':'\u2287','supE':'\u2AC6','supedot':'\u2AC4','Superset':'\u2283','SupersetEqual':'\u2287','suphsol':'\u27C9','suphsub':'\u2AD7','suplarr':'\u297B','supmult':'\u2AC2','supne':'\u228B','supnE':'\u2ACC','supplus':'\u2AC0','supset':'\u2283','Supset':'\u22D1','supseteq':'\u2287','supseteqq':'\u2AC6','supsetneq':'\u228B','supsetneqq':'\u2ACC','supsim':'\u2AC8','supsub':'\u2AD4','supsup':'\u2AD6','swarhk':'\u2926','swarr':'\u2199','swArr':'\u21D9','swarrow':'\u2199','swnwar':'\u292A','szlig':'\xDF','Tab':'\t','target':'\u2316','tau':'\u03C4','Tau':'\u03A4','tbrk':'\u23B4','tcaron':'\u0165','Tcaron':'\u0164','tcedil':'\u0163','Tcedil':'\u0162','tcy':'\u0442','Tcy':'\u0422','tdot':'\u20DB','telrec':'\u2315','tfr':'\uD835\uDD31','Tfr':'\uD835\uDD17','there4':'\u2234','therefore':'\u2234','Therefore':'\u2234','theta':'\u03B8','Theta':'\u0398','thetasym':'\u03D1','thetav':'\u03D1','thickapprox':'\u2248','thicksim':'\u223C','ThickSpace':'\u205F\u200A','thinsp':'\u2009','ThinSpace':'\u2009','thkap':'\u2248','thksim':'\u223C','thorn':'\xFE','THORN':'\xDE','tilde':'\u02DC','Tilde':'\u223C','TildeEqual':'\u2243','TildeFullEqual':'\u2245','TildeTilde':'\u2248','times':'\xD7','timesb':'\u22A0','timesbar':'\u2A31','timesd':'\u2A30','tint':'\u222D','toea':'\u2928','top':'\u22A4','topbot':'\u2336','topcir':'\u2AF1','topf':'\uD835\uDD65','Topf':'\uD835\uDD4B','topfork':'\u2ADA','tosa':'\u2929','tprime':'\u2034','trade':'\u2122','TRADE':'\u2122','triangle':'\u25B5','triangledown':'\u25BF','triangleleft':'\u25C3','trianglelefteq':'\u22B4','triangleq':'\u225C','triangleright':'\u25B9','trianglerighteq':'\u22B5','tridot':'\u25EC','trie':'\u225C','triminus':'\u2A3A','TripleDot':'\u20DB','triplus':'\u2A39','trisb':'\u29CD','tritime':'\u2A3B','trpezium':'\u23E2','tscr':'\uD835\uDCC9','Tscr':'\uD835\uDCAF','tscy':'\u0446','TScy':'\u0426','tshcy':'\u045B','TSHcy':'\u040B','tstrok':'\u0167','Tstrok':'\u0166','twixt':'\u226C','twoheadleftarrow':'\u219E','twoheadrightarrow':'\u21A0','uacute':'\xFA','Uacute':'\xDA','uarr':'\u2191','uArr':'\u21D1','Uarr':'\u219F','Uarrocir':'\u2949','ubrcy':'\u045E','Ubrcy':'\u040E','ubreve':'\u016D','Ubreve':'\u016C','ucirc':'\xFB','Ucirc':'\xDB','ucy':'\u0443','Ucy':'\u0423','udarr':'\u21C5','udblac':'\u0171','Udblac':'\u0170','udhar':'\u296E','ufisht':'\u297E','ufr':'\uD835\uDD32','Ufr':'\uD835\uDD18','ugrave':'\xF9','Ugrave':'\xD9','uHar':'\u2963','uharl':'\u21BF','uharr':'\u21BE','uhblk':'\u2580','ulcorn':'\u231C','ulcorner':'\u231C','ulcrop':'\u230F','ultri':'\u25F8','umacr':'\u016B','Umacr':'\u016A','uml':'\xA8','UnderBar':'_','UnderBrace':'\u23DF','UnderBracket':'\u23B5','UnderParenthesis':'\u23DD','Union':'\u22C3','UnionPlus':'\u228E','uogon':'\u0173','Uogon':'\u0172','uopf':'\uD835\uDD66','Uopf':'\uD835\uDD4C','uparrow':'\u2191','Uparrow':'\u21D1','UpArrow':'\u2191','UpArrowBar':'\u2912','UpArrowDownArrow':'\u21C5','updownarrow':'\u2195','Updownarrow':'\u21D5','UpDownArrow':'\u2195','UpEquilibrium':'\u296E','upharpoonleft':'\u21BF','upharpoonright':'\u21BE','uplus':'\u228E','UpperLeftArrow':'\u2196','UpperRightArrow':'\u2197','upsi':'\u03C5','Upsi':'\u03D2','upsih':'\u03D2','upsilon':'\u03C5','Upsilon':'\u03A5','UpTee':'\u22A5','UpTeeArrow':'\u21A5','upuparrows':'\u21C8','urcorn':'\u231D','urcorner':'\u231D','urcrop':'\u230E','uring':'\u016F','Uring':'\u016E','urtri':'\u25F9','uscr':'\uD835\uDCCA','Uscr':'\uD835\uDCB0','utdot':'\u22F0','utilde':'\u0169','Utilde':'\u0168','utri':'\u25B5','utrif':'\u25B4','uuarr':'\u21C8','uuml':'\xFC','Uuml':'\xDC','uwangle':'\u29A7','vangrt':'\u299C','varepsilon':'\u03F5','varkappa':'\u03F0','varnothing':'\u2205','varphi':'\u03D5','varpi':'\u03D6','varpropto':'\u221D','varr':'\u2195','vArr':'\u21D5','varrho':'\u03F1','varsigma':'\u03C2','varsubsetneq':'\u228A\uFE00','varsubsetneqq':'\u2ACB\uFE00','varsupsetneq':'\u228B\uFE00','varsupsetneqq':'\u2ACC\uFE00','vartheta':'\u03D1','vartriangleleft':'\u22B2','vartriangleright':'\u22B3','vBar':'\u2AE8','Vbar':'\u2AEB','vBarv':'\u2AE9','vcy':'\u0432','Vcy':'\u0412','vdash':'\u22A2','vDash':'\u22A8','Vdash':'\u22A9','VDash':'\u22AB','Vdashl':'\u2AE6','vee':'\u2228','Vee':'\u22C1','veebar':'\u22BB','veeeq':'\u225A','vellip':'\u22EE','verbar':'|','Verbar':'\u2016','vert':'|','Vert':'\u2016','VerticalBar':'\u2223','VerticalLine':'|','VerticalSeparator':'\u2758','VerticalTilde':'\u2240','VeryThinSpace':'\u200A','vfr':'\uD835\uDD33','Vfr':'\uD835\uDD19','vltri':'\u22B2','vnsub':'\u2282\u20D2','vnsup':'\u2283\u20D2','vopf':'\uD835\uDD67','Vopf':'\uD835\uDD4D','vprop':'\u221D','vrtri':'\u22B3','vscr':'\uD835\uDCCB','Vscr':'\uD835\uDCB1','vsubne':'\u228A\uFE00','vsubnE':'\u2ACB\uFE00','vsupne':'\u228B\uFE00','vsupnE':'\u2ACC\uFE00','Vvdash':'\u22AA','vzigzag':'\u299A','wcirc':'\u0175','Wcirc':'\u0174','wedbar':'\u2A5F','wedge':'\u2227','Wedge':'\u22C0','wedgeq':'\u2259','weierp':'\u2118','wfr':'\uD835\uDD34','Wfr':'\uD835\uDD1A','wopf':'\uD835\uDD68','Wopf':'\uD835\uDD4E','wp':'\u2118','wr':'\u2240','wreath':'\u2240','wscr':'\uD835\uDCCC','Wscr':'\uD835\uDCB2','xcap':'\u22C2','xcirc':'\u25EF','xcup':'\u22C3','xdtri':'\u25BD','xfr':'\uD835\uDD35','Xfr':'\uD835\uDD1B','xharr':'\u27F7','xhArr':'\u27FA','xi':'\u03BE','Xi':'\u039E','xlarr':'\u27F5','xlArr':'\u27F8','xmap':'\u27FC','xnis':'\u22FB','xodot':'\u2A00','xopf':'\uD835\uDD69','Xopf':'\uD835\uDD4F','xoplus':'\u2A01','xotime':'\u2A02','xrarr':'\u27F6','xrArr':'\u27F9','xscr':'\uD835\uDCCD','Xscr':'\uD835\uDCB3','xsqcup':'\u2A06','xuplus':'\u2A04','xutri':'\u25B3','xvee':'\u22C1','xwedge':'\u22C0','yacute':'\xFD','Yacute':'\xDD','yacy':'\u044F','YAcy':'\u042F','ycirc':'\u0177','Ycirc':'\u0176','ycy':'\u044B','Ycy':'\u042B','yen':'\xA5','yfr':'\uD835\uDD36','Yfr':'\uD835\uDD1C','yicy':'\u0457','YIcy':'\u0407','yopf':'\uD835\uDD6A','Yopf':'\uD835\uDD50','yscr':'\uD835\uDCCE','Yscr':'\uD835\uDCB4','yucy':'\u044E','YUcy':'\u042E','yuml':'\xFF','Yuml':'\u0178','zacute':'\u017A','Zacute':'\u0179','zcaron':'\u017E','Zcaron':'\u017D','zcy':'\u0437','Zcy':'\u0417','zdot':'\u017C','Zdot':'\u017B','zeetrf':'\u2128','ZeroWidthSpace':'\u200B','zeta':'\u03B6','Zeta':'\u0396','zfr':'\uD835\uDD37','Zfr':'\u2128','zhcy':'\u0436','ZHcy':'\u0416','zigrarr':'\u21DD','zopf':'\uD835\uDD6B','Zopf':'\u2124','zscr':'\uD835\uDCCF','Zscr':'\uD835\uDCB5','zwj':'\u200D','zwnj':'\u200C'};
  23749. var decodeMapLegacy = {'aacute':'\xE1','Aacute':'\xC1','acirc':'\xE2','Acirc':'\xC2','acute':'\xB4','aelig':'\xE6','AElig':'\xC6','agrave':'\xE0','Agrave':'\xC0','amp':'&','AMP':'&','aring':'\xE5','Aring':'\xC5','atilde':'\xE3','Atilde':'\xC3','auml':'\xE4','Auml':'\xC4','brvbar':'\xA6','ccedil':'\xE7','Ccedil':'\xC7','cedil':'\xB8','cent':'\xA2','copy':'\xA9','COPY':'\xA9','curren':'\xA4','deg':'\xB0','divide':'\xF7','eacute':'\xE9','Eacute':'\xC9','ecirc':'\xEA','Ecirc':'\xCA','egrave':'\xE8','Egrave':'\xC8','eth':'\xF0','ETH':'\xD0','euml':'\xEB','Euml':'\xCB','frac12':'\xBD','frac14':'\xBC','frac34':'\xBE','gt':'>','GT':'>','iacute':'\xED','Iacute':'\xCD','icirc':'\xEE','Icirc':'\xCE','iexcl':'\xA1','igrave':'\xEC','Igrave':'\xCC','iquest':'\xBF','iuml':'\xEF','Iuml':'\xCF','laquo':'\xAB','lt':'<','LT':'<','macr':'\xAF','micro':'\xB5','middot':'\xB7','nbsp':'\xA0','not':'\xAC','ntilde':'\xF1','Ntilde':'\xD1','oacute':'\xF3','Oacute':'\xD3','ocirc':'\xF4','Ocirc':'\xD4','ograve':'\xF2','Ograve':'\xD2','ordf':'\xAA','ordm':'\xBA','oslash':'\xF8','Oslash':'\xD8','otilde':'\xF5','Otilde':'\xD5','ouml':'\xF6','Ouml':'\xD6','para':'\xB6','plusmn':'\xB1','pound':'\xA3','quot':'"','QUOT':'"','raquo':'\xBB','reg':'\xAE','REG':'\xAE','sect':'\xA7','shy':'\xAD','sup1':'\xB9','sup2':'\xB2','sup3':'\xB3','szlig':'\xDF','thorn':'\xFE','THORN':'\xDE','times':'\xD7','uacute':'\xFA','Uacute':'\xDA','ucirc':'\xFB','Ucirc':'\xDB','ugrave':'\xF9','Ugrave':'\xD9','uml':'\xA8','uuml':'\xFC','Uuml':'\xDC','yacute':'\xFD','Yacute':'\xDD','yen':'\xA5','yuml':'\xFF'};
  23750. var decodeMapNumeric = {'0':'\uFFFD','128':'\u20AC','130':'\u201A','131':'\u0192','132':'\u201E','133':'\u2026','134':'\u2020','135':'\u2021','136':'\u02C6','137':'\u2030','138':'\u0160','139':'\u2039','140':'\u0152','142':'\u017D','145':'\u2018','146':'\u2019','147':'\u201C','148':'\u201D','149':'\u2022','150':'\u2013','151':'\u2014','152':'\u02DC','153':'\u2122','154':'\u0161','155':'\u203A','156':'\u0153','158':'\u017E','159':'\u0178'};
  23751. var invalidReferenceCodePoints = [1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65000,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];
  23752. /*--------------------------------------------------------------------------*/
  23753. var stringFromCharCode = String.fromCharCode;
  23754. var object = {};
  23755. var hasOwnProperty = object.hasOwnProperty;
  23756. var has = function(object, propertyName) {
  23757. return hasOwnProperty.call(object, propertyName);
  23758. };
  23759. var contains = function(array, value) {
  23760. var index = -1;
  23761. var length = array.length;
  23762. while (++index < length) {
  23763. if (array[index] == value) {
  23764. return true;
  23765. }
  23766. }
  23767. return false;
  23768. };
  23769. var merge = function(options, defaults) {
  23770. if (!options) {
  23771. return defaults;
  23772. }
  23773. var result = {};
  23774. var key;
  23775. for (key in defaults) {
  23776. // A `hasOwnProperty` check is not needed here, since only recognized
  23777. // option names are used anyway. Any others are ignored.
  23778. result[key] = has(options, key) ? options[key] : defaults[key];
  23779. }
  23780. return result;
  23781. };
  23782. // Modified version of `ucs2encode`; see https://mths.be/punycode.
  23783. var codePointToSymbol = function(codePoint, strict) {
  23784. var output = '';
  23785. if ((codePoint >= 0xD800 && codePoint <= 0xDFFF) || codePoint > 0x10FFFF) {
  23786. // See issue #4:
  23787. // “Otherwise, if the number is in the range 0xD800 to 0xDFFF or is
  23788. // greater than 0x10FFFF, then this is a parse error. Return a U+FFFD
  23789. // REPLACEMENT CHARACTER.”
  23790. if (strict) {
  23791. parseError('character reference outside the permissible Unicode range');
  23792. }
  23793. return '\uFFFD';
  23794. }
  23795. if (has(decodeMapNumeric, codePoint)) {
  23796. if (strict) {
  23797. parseError('disallowed character reference');
  23798. }
  23799. return decodeMapNumeric[codePoint];
  23800. }
  23801. if (strict && contains(invalidReferenceCodePoints, codePoint)) {
  23802. parseError('disallowed character reference');
  23803. }
  23804. if (codePoint > 0xFFFF) {
  23805. codePoint -= 0x10000;
  23806. output += stringFromCharCode(codePoint >>> 10 & 0x3FF | 0xD800);
  23807. codePoint = 0xDC00 | codePoint & 0x3FF;
  23808. }
  23809. output += stringFromCharCode(codePoint);
  23810. return output;
  23811. };
  23812. var hexEscape = function(codePoint) {
  23813. return '&#x' + codePoint.toString(16).toUpperCase() + ';';
  23814. };
  23815. var decEscape = function(codePoint) {
  23816. return '&#' + codePoint + ';';
  23817. };
  23818. var parseError = function(message) {
  23819. throw Error('Parse error: ' + message);
  23820. };
  23821. /*--------------------------------------------------------------------------*/
  23822. var encode = function(string, options) {
  23823. options = merge(options, encode.options);
  23824. var strict = options.strict;
  23825. if (strict && regexInvalidRawCodePoint.test(string)) {
  23826. parseError('forbidden code point');
  23827. }
  23828. var encodeEverything = options.encodeEverything;
  23829. var useNamedReferences = options.useNamedReferences;
  23830. var allowUnsafeSymbols = options.allowUnsafeSymbols;
  23831. var escapeCodePoint = options.decimal ? decEscape : hexEscape;
  23832. var escapeBmpSymbol = function(symbol) {
  23833. return escapeCodePoint(symbol.charCodeAt(0));
  23834. };
  23835. if (encodeEverything) {
  23836. // Encode ASCII symbols.
  23837. string = string.replace(regexAsciiWhitelist, function(symbol) {
  23838. // Use named references if requested & possible.
  23839. if (useNamedReferences && has(encodeMap, symbol)) {
  23840. return '&' + encodeMap[symbol] + ';';
  23841. }
  23842. return escapeBmpSymbol(symbol);
  23843. });
  23844. // Shorten a few escapes that represent two symbols, of which at least one
  23845. // is within the ASCII range.
  23846. if (useNamedReferences) {
  23847. string = string
  23848. .replace(/&gt;\u20D2/g, '&nvgt;')
  23849. .replace(/&lt;\u20D2/g, '&nvlt;')
  23850. .replace(/&#x66;&#x6A;/g, '&fjlig;');
  23851. }
  23852. // Encode non-ASCII symbols.
  23853. if (useNamedReferences) {
  23854. // Encode non-ASCII symbols that can be replaced with a named reference.
  23855. string = string.replace(regexEncodeNonAscii, function(string) {
  23856. // Note: there is no need to check `has(encodeMap, string)` here.
  23857. return '&' + encodeMap[string] + ';';
  23858. });
  23859. }
  23860. // Note: any remaining non-ASCII symbols are handled outside of the `if`.
  23861. } else if (useNamedReferences) {
  23862. // Apply named character references.
  23863. // Encode `<>"'&` using named character references.
  23864. if (!allowUnsafeSymbols) {
  23865. string = string.replace(regexEscape, function(string) {
  23866. return '&' + encodeMap[string] + ';'; // no need to check `has()` here
  23867. });
  23868. }
  23869. // Shorten escapes that represent two symbols, of which at least one is
  23870. // `<>"'&`.
  23871. string = string
  23872. .replace(/&gt;\u20D2/g, '&nvgt;')
  23873. .replace(/&lt;\u20D2/g, '&nvlt;');
  23874. // Encode non-ASCII symbols that can be replaced with a named reference.
  23875. string = string.replace(regexEncodeNonAscii, function(string) {
  23876. // Note: there is no need to check `has(encodeMap, string)` here.
  23877. return '&' + encodeMap[string] + ';';
  23878. });
  23879. } else if (!allowUnsafeSymbols) {
  23880. // Encode `<>"'&` using hexadecimal escapes, now that they’re not handled
  23881. // using named character references.
  23882. string = string.replace(regexEscape, escapeBmpSymbol);
  23883. }
  23884. return string
  23885. // Encode astral symbols.
  23886. .replace(regexAstralSymbols, function($0) {
  23887. // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
  23888. var high = $0.charCodeAt(0);
  23889. var low = $0.charCodeAt(1);
  23890. var codePoint = (high - 0xD800) * 0x400 + low - 0xDC00 + 0x10000;
  23891. return escapeCodePoint(codePoint);
  23892. })
  23893. // Encode any remaining BMP symbols that are not printable ASCII symbols
  23894. // using a hexadecimal escape.
  23895. .replace(regexBmpWhitelist, escapeBmpSymbol);
  23896. };
  23897. // Expose default options (so they can be overridden globally).
  23898. encode.options = {
  23899. 'allowUnsafeSymbols': false,
  23900. 'encodeEverything': false,
  23901. 'strict': false,
  23902. 'useNamedReferences': false,
  23903. 'decimal' : false
  23904. };
  23905. var decode = function(html, options) {
  23906. options = merge(options, decode.options);
  23907. var strict = options.strict;
  23908. if (strict && regexInvalidEntity.test(html)) {
  23909. parseError('malformed character reference');
  23910. }
  23911. return html.replace(regexDecode, function($0, $1, $2, $3, $4, $5, $6, $7, $8) {
  23912. var codePoint;
  23913. var semicolon;
  23914. var decDigits;
  23915. var hexDigits;
  23916. var reference;
  23917. var next;
  23918. if ($1) {
  23919. reference = $1;
  23920. // Note: there is no need to check `has(decodeMap, reference)`.
  23921. return decodeMap[reference];
  23922. }
  23923. if ($2) {
  23924. // Decode named character references without trailing `;`, e.g. `&amp`.
  23925. // This is only a parse error if it gets converted to `&`, or if it is
  23926. // followed by `=` in an attribute context.
  23927. reference = $2;
  23928. next = $3;
  23929. if (next && options.isAttributeValue) {
  23930. if (strict && next == '=') {
  23931. parseError('`&` did not start a character reference');
  23932. }
  23933. return $0;
  23934. } else {
  23935. if (strict) {
  23936. parseError(
  23937. 'named character reference was not terminated by a semicolon'
  23938. );
  23939. }
  23940. // Note: there is no need to check `has(decodeMapLegacy, reference)`.
  23941. return decodeMapLegacy[reference] + (next || '');
  23942. }
  23943. }
  23944. if ($4) {
  23945. // Decode decimal escapes, e.g. `&#119558;`.
  23946. decDigits = $4;
  23947. semicolon = $5;
  23948. if (strict && !semicolon) {
  23949. parseError('character reference was not terminated by a semicolon');
  23950. }
  23951. codePoint = parseInt(decDigits, 10);
  23952. return codePointToSymbol(codePoint, strict);
  23953. }
  23954. if ($6) {
  23955. // Decode hexadecimal escapes, e.g. `&#x1D306;`.
  23956. hexDigits = $6;
  23957. semicolon = $7;
  23958. if (strict && !semicolon) {
  23959. parseError('character reference was not terminated by a semicolon');
  23960. }
  23961. codePoint = parseInt(hexDigits, 16);
  23962. return codePointToSymbol(codePoint, strict);
  23963. }
  23964. // If we’re still here, `if ($7)` is implied; it’s an ambiguous
  23965. // ampersand for sure. https://mths.be/notes/ambiguous-ampersands
  23966. if (strict) {
  23967. parseError(
  23968. 'named character reference was not terminated by a semicolon'
  23969. );
  23970. }
  23971. return $0;
  23972. });
  23973. };
  23974. // Expose default options (so they can be overridden globally).
  23975. decode.options = {
  23976. 'isAttributeValue': false,
  23977. 'strict': false
  23978. };
  23979. var escape = function(string) {
  23980. return string.replace(regexEscape, function($0) {
  23981. // Note: there is no need to check `has(escapeMap, $0)` here.
  23982. return escapeMap[$0];
  23983. });
  23984. };
  23985. /*--------------------------------------------------------------------------*/
  23986. var he = {
  23987. 'version': '1.2.0',
  23988. 'encode': encode,
  23989. 'decode': decode,
  23990. 'escape': escape,
  23991. 'unescape': decode
  23992. };
  23993. // Some AMD build optimizers, like r.js, check for specific condition patterns
  23994. // like the following:
  23995. if (
  23996. typeof define == 'function' &&
  23997. typeof define.amd == 'object' &&
  23998. define.amd
  23999. ) {
  24000. define(function() {
  24001. return he;
  24002. });
  24003. } else if (freeExports && !freeExports.nodeType) {
  24004. if (freeModule) { // in Node.js, io.js, or RingoJS v0.8.0+
  24005. freeModule.exports = he;
  24006. } else { // in Narwhal or RingoJS v0.7.0-
  24007. for (var key in he) {
  24008. has(he, key) && (freeExports[key] = he[key]);
  24009. }
  24010. }
  24011. } else { // in Rhino or a web browser
  24012. root.he = he;
  24013. }
  24014. }(this));
  24015. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module), __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  24016. /***/ }),
  24017. /***/ "./node_modules/is-regexp/index.js":
  24018. /*!*****************************************!*\
  24019. !*** ./node_modules/is-regexp/index.js ***!
  24020. \*****************************************/
  24021. /*! no static exports found */
  24022. /***/ (function(module, exports, __webpack_require__) {
  24023. "use strict";
  24024. module.exports = function (re) {
  24025. return Object.prototype.toString.call(re) === '[object RegExp]';
  24026. };
  24027. /***/ }),
  24028. /***/ "./node_modules/lodash/lodash.js":
  24029. /*!***************************************!*\
  24030. !*** ./node_modules/lodash/lodash.js ***!
  24031. \***************************************/
  24032. /*! no static exports found */
  24033. /***/ (function(module, exports, __webpack_require__) {
  24034. /* WEBPACK VAR INJECTION */(function(global, module) {/**
  24035. * @license
  24036. * Lodash <https://lodash.com/>
  24037. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  24038. * Released under MIT license <https://lodash.com/license>
  24039. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  24040. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  24041. */
  24042. ;(function() {
  24043. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  24044. var undefined;
  24045. /** Used as the semantic version number. */
  24046. var VERSION = '4.17.13';
  24047. /** Used as the size to enable large array optimizations. */
  24048. var LARGE_ARRAY_SIZE = 200;
  24049. /** Error message constants. */
  24050. var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  24051. FUNC_ERROR_TEXT = 'Expected a function';
  24052. /** Used to stand-in for `undefined` hash values. */
  24053. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  24054. /** Used as the maximum memoize cache size. */
  24055. var MAX_MEMOIZE_SIZE = 500;
  24056. /** Used as the internal argument placeholder. */
  24057. var PLACEHOLDER = '__lodash_placeholder__';
  24058. /** Used to compose bitmasks for cloning. */
  24059. var CLONE_DEEP_FLAG = 1,
  24060. CLONE_FLAT_FLAG = 2,
  24061. CLONE_SYMBOLS_FLAG = 4;
  24062. /** Used to compose bitmasks for value comparisons. */
  24063. var COMPARE_PARTIAL_FLAG = 1,
  24064. COMPARE_UNORDERED_FLAG = 2;
  24065. /** Used to compose bitmasks for function metadata. */
  24066. var WRAP_BIND_FLAG = 1,
  24067. WRAP_BIND_KEY_FLAG = 2,
  24068. WRAP_CURRY_BOUND_FLAG = 4,
  24069. WRAP_CURRY_FLAG = 8,
  24070. WRAP_CURRY_RIGHT_FLAG = 16,
  24071. WRAP_PARTIAL_FLAG = 32,
  24072. WRAP_PARTIAL_RIGHT_FLAG = 64,
  24073. WRAP_ARY_FLAG = 128,
  24074. WRAP_REARG_FLAG = 256,
  24075. WRAP_FLIP_FLAG = 512;
  24076. /** Used as default options for `_.truncate`. */
  24077. var DEFAULT_TRUNC_LENGTH = 30,
  24078. DEFAULT_TRUNC_OMISSION = '...';
  24079. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  24080. var HOT_COUNT = 800,
  24081. HOT_SPAN = 16;
  24082. /** Used to indicate the type of lazy iteratees. */
  24083. var LAZY_FILTER_FLAG = 1,
  24084. LAZY_MAP_FLAG = 2,
  24085. LAZY_WHILE_FLAG = 3;
  24086. /** Used as references for various `Number` constants. */
  24087. var INFINITY = 1 / 0,
  24088. MAX_SAFE_INTEGER = 9007199254740991,
  24089. MAX_INTEGER = 1.7976931348623157e+308,
  24090. NAN = 0 / 0;
  24091. /** Used as references for the maximum length and index of an array. */
  24092. var MAX_ARRAY_LENGTH = 4294967295,
  24093. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  24094. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  24095. /** Used to associate wrap methods with their bit flags. */
  24096. var wrapFlags = [
  24097. ['ary', WRAP_ARY_FLAG],
  24098. ['bind', WRAP_BIND_FLAG],
  24099. ['bindKey', WRAP_BIND_KEY_FLAG],
  24100. ['curry', WRAP_CURRY_FLAG],
  24101. ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  24102. ['flip', WRAP_FLIP_FLAG],
  24103. ['partial', WRAP_PARTIAL_FLAG],
  24104. ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  24105. ['rearg', WRAP_REARG_FLAG]
  24106. ];
  24107. /** `Object#toString` result references. */
  24108. var argsTag = '[object Arguments]',
  24109. arrayTag = '[object Array]',
  24110. asyncTag = '[object AsyncFunction]',
  24111. boolTag = '[object Boolean]',
  24112. dateTag = '[object Date]',
  24113. domExcTag = '[object DOMException]',
  24114. errorTag = '[object Error]',
  24115. funcTag = '[object Function]',
  24116. genTag = '[object GeneratorFunction]',
  24117. mapTag = '[object Map]',
  24118. numberTag = '[object Number]',
  24119. nullTag = '[object Null]',
  24120. objectTag = '[object Object]',
  24121. promiseTag = '[object Promise]',
  24122. proxyTag = '[object Proxy]',
  24123. regexpTag = '[object RegExp]',
  24124. setTag = '[object Set]',
  24125. stringTag = '[object String]',
  24126. symbolTag = '[object Symbol]',
  24127. undefinedTag = '[object Undefined]',
  24128. weakMapTag = '[object WeakMap]',
  24129. weakSetTag = '[object WeakSet]';
  24130. var arrayBufferTag = '[object ArrayBuffer]',
  24131. dataViewTag = '[object DataView]',
  24132. float32Tag = '[object Float32Array]',
  24133. float64Tag = '[object Float64Array]',
  24134. int8Tag = '[object Int8Array]',
  24135. int16Tag = '[object Int16Array]',
  24136. int32Tag = '[object Int32Array]',
  24137. uint8Tag = '[object Uint8Array]',
  24138. uint8ClampedTag = '[object Uint8ClampedArray]',
  24139. uint16Tag = '[object Uint16Array]',
  24140. uint32Tag = '[object Uint32Array]';
  24141. /** Used to match empty string literals in compiled template source. */
  24142. var reEmptyStringLeading = /\b__p \+= '';/g,
  24143. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  24144. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  24145. /** Used to match HTML entities and HTML characters. */
  24146. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
  24147. reUnescapedHtml = /[&<>"']/g,
  24148. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  24149. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  24150. /** Used to match template delimiters. */
  24151. var reEscape = /<%-([\s\S]+?)%>/g,
  24152. reEvaluate = /<%([\s\S]+?)%>/g,
  24153. reInterpolate = /<%=([\s\S]+?)%>/g;
  24154. /** Used to match property names within property paths. */
  24155. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  24156. reIsPlainProp = /^\w*$/,
  24157. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  24158. /**
  24159. * Used to match `RegExp`
  24160. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  24161. */
  24162. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
  24163. reHasRegExpChar = RegExp(reRegExpChar.source);
  24164. /** Used to match leading and trailing whitespace. */
  24165. var reTrim = /^\s+|\s+$/g,
  24166. reTrimStart = /^\s+/,
  24167. reTrimEnd = /\s+$/;
  24168. /** Used to match wrap detail comments. */
  24169. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  24170. reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
  24171. reSplitDetails = /,? & /;
  24172. /** Used to match words composed of alphanumeric characters. */
  24173. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  24174. /** Used to match backslashes in property paths. */
  24175. var reEscapeChar = /\\(\\)?/g;
  24176. /**
  24177. * Used to match
  24178. * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
  24179. */
  24180. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  24181. /** Used to match `RegExp` flags from their coerced string values. */
  24182. var reFlags = /\w*$/;
  24183. /** Used to detect bad signed hexadecimal string values. */
  24184. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  24185. /** Used to detect binary string values. */
  24186. var reIsBinary = /^0b[01]+$/i;
  24187. /** Used to detect host constructors (Safari). */
  24188. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  24189. /** Used to detect octal string values. */
  24190. var reIsOctal = /^0o[0-7]+$/i;
  24191. /** Used to detect unsigned integer values. */
  24192. var reIsUint = /^(?:0|[1-9]\d*)$/;
  24193. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  24194. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  24195. /** Used to ensure capturing order of template delimiters. */
  24196. var reNoMatch = /($^)/;
  24197. /** Used to match unescaped characters in compiled string literals. */
  24198. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  24199. /** Used to compose unicode character classes. */
  24200. var rsAstralRange = '\\ud800-\\udfff',
  24201. rsComboMarksRange = '\\u0300-\\u036f',
  24202. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  24203. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  24204. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  24205. rsDingbatRange = '\\u2700-\\u27bf',
  24206. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  24207. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  24208. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  24209. rsPunctuationRange = '\\u2000-\\u206f',
  24210. rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
  24211. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  24212. rsVarRange = '\\ufe0e\\ufe0f',
  24213. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  24214. /** Used to compose unicode capture groups. */
  24215. var rsApos = "['\u2019]",
  24216. rsAstral = '[' + rsAstralRange + ']',
  24217. rsBreak = '[' + rsBreakRange + ']',
  24218. rsCombo = '[' + rsComboRange + ']',
  24219. rsDigits = '\\d+',
  24220. rsDingbat = '[' + rsDingbatRange + ']',
  24221. rsLower = '[' + rsLowerRange + ']',
  24222. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  24223. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  24224. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  24225. rsNonAstral = '[^' + rsAstralRange + ']',
  24226. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  24227. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  24228. rsUpper = '[' + rsUpperRange + ']',
  24229. rsZWJ = '\\u200d';
  24230. /** Used to compose unicode regexes. */
  24231. var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
  24232. rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
  24233. rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  24234. rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  24235. reOptMod = rsModifier + '?',
  24236. rsOptVar = '[' + rsVarRange + ']?',
  24237. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  24238. rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  24239. rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  24240. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  24241. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  24242. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  24243. /** Used to match apostrophes. */
  24244. var reApos = RegExp(rsApos, 'g');
  24245. /**
  24246. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  24247. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  24248. */
  24249. var reComboMark = RegExp(rsCombo, 'g');
  24250. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  24251. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  24252. /** Used to match complex or compound words. */
  24253. var reUnicodeWord = RegExp([
  24254. rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  24255. rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
  24256. rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
  24257. rsUpper + '+' + rsOptContrUpper,
  24258. rsOrdUpper,
  24259. rsOrdLower,
  24260. rsDigits,
  24261. rsEmoji
  24262. ].join('|'), 'g');
  24263. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  24264. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  24265. /** Used to detect strings that need a more robust regexp to match words. */
  24266. var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
  24267. /** Used to assign default `context` object properties. */
  24268. var contextProps = [
  24269. 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
  24270. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
  24271. 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
  24272. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  24273. '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  24274. ];
  24275. /** Used to make template sourceURLs easier to identify. */
  24276. var templateCounter = -1;
  24277. /** Used to identify `toStringTag` values of typed arrays. */
  24278. var typedArrayTags = {};
  24279. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  24280. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  24281. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  24282. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  24283. typedArrayTags[uint32Tag] = true;
  24284. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  24285. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  24286. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  24287. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  24288. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  24289. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  24290. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  24291. typedArrayTags[weakMapTag] = false;
  24292. /** Used to identify `toStringTag` values supported by `_.clone`. */
  24293. var cloneableTags = {};
  24294. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  24295. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  24296. cloneableTags[boolTag] = cloneableTags[dateTag] =
  24297. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  24298. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  24299. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  24300. cloneableTags[numberTag] = cloneableTags[objectTag] =
  24301. cloneableTags[regexpTag] = cloneableTags[setTag] =
  24302. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  24303. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  24304. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  24305. cloneableTags[errorTag] = cloneableTags[funcTag] =
  24306. cloneableTags[weakMapTag] = false;
  24307. /** Used to map Latin Unicode letters to basic Latin letters. */
  24308. var deburredLetters = {
  24309. // Latin-1 Supplement block.
  24310. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  24311. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  24312. '\xc7': 'C', '\xe7': 'c',
  24313. '\xd0': 'D', '\xf0': 'd',
  24314. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  24315. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  24316. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  24317. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  24318. '\xd1': 'N', '\xf1': 'n',
  24319. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  24320. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  24321. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  24322. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  24323. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  24324. '\xc6': 'Ae', '\xe6': 'ae',
  24325. '\xde': 'Th', '\xfe': 'th',
  24326. '\xdf': 'ss',
  24327. // Latin Extended-A block.
  24328. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  24329. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  24330. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  24331. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  24332. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  24333. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  24334. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  24335. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  24336. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  24337. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  24338. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  24339. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  24340. '\u0134': 'J', '\u0135': 'j',
  24341. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  24342. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  24343. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  24344. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  24345. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  24346. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  24347. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  24348. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  24349. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  24350. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  24351. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  24352. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  24353. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  24354. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  24355. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  24356. '\u0174': 'W', '\u0175': 'w',
  24357. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  24358. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  24359. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  24360. '\u0132': 'IJ', '\u0133': 'ij',
  24361. '\u0152': 'Oe', '\u0153': 'oe',
  24362. '\u0149': "'n", '\u017f': 's'
  24363. };
  24364. /** Used to map characters to HTML entities. */
  24365. var htmlEscapes = {
  24366. '&': '&amp;',
  24367. '<': '&lt;',
  24368. '>': '&gt;',
  24369. '"': '&quot;',
  24370. "'": '&#39;'
  24371. };
  24372. /** Used to map HTML entities to characters. */
  24373. var htmlUnescapes = {
  24374. '&amp;': '&',
  24375. '&lt;': '<',
  24376. '&gt;': '>',
  24377. '&quot;': '"',
  24378. '&#39;': "'"
  24379. };
  24380. /** Used to escape characters for inclusion in compiled string literals. */
  24381. var stringEscapes = {
  24382. '\\': '\\',
  24383. "'": "'",
  24384. '\n': 'n',
  24385. '\r': 'r',
  24386. '\u2028': 'u2028',
  24387. '\u2029': 'u2029'
  24388. };
  24389. /** Built-in method references without a dependency on `root`. */
  24390. var freeParseFloat = parseFloat,
  24391. freeParseInt = parseInt;
  24392. /** Detect free variable `global` from Node.js. */
  24393. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  24394. /** Detect free variable `self`. */
  24395. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  24396. /** Used as a reference to the global object. */
  24397. var root = freeGlobal || freeSelf || Function('return this')();
  24398. /** Detect free variable `exports`. */
  24399. var freeExports = true && exports && !exports.nodeType && exports;
  24400. /** Detect free variable `module`. */
  24401. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  24402. /** Detect the popular CommonJS extension `module.exports`. */
  24403. var moduleExports = freeModule && freeModule.exports === freeExports;
  24404. /** Detect free variable `process` from Node.js. */
  24405. var freeProcess = moduleExports && freeGlobal.process;
  24406. /** Used to access faster Node.js helpers. */
  24407. var nodeUtil = (function() {
  24408. try {
  24409. // Use `util.types` for Node.js 10+.
  24410. var types = freeModule && freeModule.require && freeModule.require('util').types;
  24411. if (types) {
  24412. return types;
  24413. }
  24414. // Legacy `process.binding('util')` for Node.js < 10.
  24415. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  24416. } catch (e) {}
  24417. }());
  24418. /* Node.js helper references. */
  24419. var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
  24420. nodeIsDate = nodeUtil && nodeUtil.isDate,
  24421. nodeIsMap = nodeUtil && nodeUtil.isMap,
  24422. nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
  24423. nodeIsSet = nodeUtil && nodeUtil.isSet,
  24424. nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  24425. /*--------------------------------------------------------------------------*/
  24426. /**
  24427. * A faster alternative to `Function#apply`, this function invokes `func`
  24428. * with the `this` binding of `thisArg` and the arguments of `args`.
  24429. *
  24430. * @private
  24431. * @param {Function} func The function to invoke.
  24432. * @param {*} thisArg The `this` binding of `func`.
  24433. * @param {Array} args The arguments to invoke `func` with.
  24434. * @returns {*} Returns the result of `func`.
  24435. */
  24436. function apply(func, thisArg, args) {
  24437. switch (args.length) {
  24438. case 0: return func.call(thisArg);
  24439. case 1: return func.call(thisArg, args[0]);
  24440. case 2: return func.call(thisArg, args[0], args[1]);
  24441. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  24442. }
  24443. return func.apply(thisArg, args);
  24444. }
  24445. /**
  24446. * A specialized version of `baseAggregator` for arrays.
  24447. *
  24448. * @private
  24449. * @param {Array} [array] The array to iterate over.
  24450. * @param {Function} setter The function to set `accumulator` values.
  24451. * @param {Function} iteratee The iteratee to transform keys.
  24452. * @param {Object} accumulator The initial aggregated object.
  24453. * @returns {Function} Returns `accumulator`.
  24454. */
  24455. function arrayAggregator(array, setter, iteratee, accumulator) {
  24456. var index = -1,
  24457. length = array == null ? 0 : array.length;
  24458. while (++index < length) {
  24459. var value = array[index];
  24460. setter(accumulator, value, iteratee(value), array);
  24461. }
  24462. return accumulator;
  24463. }
  24464. /**
  24465. * A specialized version of `_.forEach` for arrays without support for
  24466. * iteratee shorthands.
  24467. *
  24468. * @private
  24469. * @param {Array} [array] The array to iterate over.
  24470. * @param {Function} iteratee The function invoked per iteration.
  24471. * @returns {Array} Returns `array`.
  24472. */
  24473. function arrayEach(array, iteratee) {
  24474. var index = -1,
  24475. length = array == null ? 0 : array.length;
  24476. while (++index < length) {
  24477. if (iteratee(array[index], index, array) === false) {
  24478. break;
  24479. }
  24480. }
  24481. return array;
  24482. }
  24483. /**
  24484. * A specialized version of `_.forEachRight` for arrays without support for
  24485. * iteratee shorthands.
  24486. *
  24487. * @private
  24488. * @param {Array} [array] The array to iterate over.
  24489. * @param {Function} iteratee The function invoked per iteration.
  24490. * @returns {Array} Returns `array`.
  24491. */
  24492. function arrayEachRight(array, iteratee) {
  24493. var length = array == null ? 0 : array.length;
  24494. while (length--) {
  24495. if (iteratee(array[length], length, array) === false) {
  24496. break;
  24497. }
  24498. }
  24499. return array;
  24500. }
  24501. /**
  24502. * A specialized version of `_.every` for arrays without support for
  24503. * iteratee shorthands.
  24504. *
  24505. * @private
  24506. * @param {Array} [array] The array to iterate over.
  24507. * @param {Function} predicate The function invoked per iteration.
  24508. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  24509. * else `false`.
  24510. */
  24511. function arrayEvery(array, predicate) {
  24512. var index = -1,
  24513. length = array == null ? 0 : array.length;
  24514. while (++index < length) {
  24515. if (!predicate(array[index], index, array)) {
  24516. return false;
  24517. }
  24518. }
  24519. return true;
  24520. }
  24521. /**
  24522. * A specialized version of `_.filter` for arrays without support for
  24523. * iteratee shorthands.
  24524. *
  24525. * @private
  24526. * @param {Array} [array] The array to iterate over.
  24527. * @param {Function} predicate The function invoked per iteration.
  24528. * @returns {Array} Returns the new filtered array.
  24529. */
  24530. function arrayFilter(array, predicate) {
  24531. var index = -1,
  24532. length = array == null ? 0 : array.length,
  24533. resIndex = 0,
  24534. result = [];
  24535. while (++index < length) {
  24536. var value = array[index];
  24537. if (predicate(value, index, array)) {
  24538. result[resIndex++] = value;
  24539. }
  24540. }
  24541. return result;
  24542. }
  24543. /**
  24544. * A specialized version of `_.includes` for arrays without support for
  24545. * specifying an index to search from.
  24546. *
  24547. * @private
  24548. * @param {Array} [array] The array to inspect.
  24549. * @param {*} target The value to search for.
  24550. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  24551. */
  24552. function arrayIncludes(array, value) {
  24553. var length = array == null ? 0 : array.length;
  24554. return !!length && baseIndexOf(array, value, 0) > -1;
  24555. }
  24556. /**
  24557. * This function is like `arrayIncludes` except that it accepts a comparator.
  24558. *
  24559. * @private
  24560. * @param {Array} [array] The array to inspect.
  24561. * @param {*} target The value to search for.
  24562. * @param {Function} comparator The comparator invoked per element.
  24563. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  24564. */
  24565. function arrayIncludesWith(array, value, comparator) {
  24566. var index = -1,
  24567. length = array == null ? 0 : array.length;
  24568. while (++index < length) {
  24569. if (comparator(value, array[index])) {
  24570. return true;
  24571. }
  24572. }
  24573. return false;
  24574. }
  24575. /**
  24576. * A specialized version of `_.map` for arrays without support for iteratee
  24577. * shorthands.
  24578. *
  24579. * @private
  24580. * @param {Array} [array] The array to iterate over.
  24581. * @param {Function} iteratee The function invoked per iteration.
  24582. * @returns {Array} Returns the new mapped array.
  24583. */
  24584. function arrayMap(array, iteratee) {
  24585. var index = -1,
  24586. length = array == null ? 0 : array.length,
  24587. result = Array(length);
  24588. while (++index < length) {
  24589. result[index] = iteratee(array[index], index, array);
  24590. }
  24591. return result;
  24592. }
  24593. /**
  24594. * Appends the elements of `values` to `array`.
  24595. *
  24596. * @private
  24597. * @param {Array} array The array to modify.
  24598. * @param {Array} values The values to append.
  24599. * @returns {Array} Returns `array`.
  24600. */
  24601. function arrayPush(array, values) {
  24602. var index = -1,
  24603. length = values.length,
  24604. offset = array.length;
  24605. while (++index < length) {
  24606. array[offset + index] = values[index];
  24607. }
  24608. return array;
  24609. }
  24610. /**
  24611. * A specialized version of `_.reduce` for arrays without support for
  24612. * iteratee shorthands.
  24613. *
  24614. * @private
  24615. * @param {Array} [array] The array to iterate over.
  24616. * @param {Function} iteratee The function invoked per iteration.
  24617. * @param {*} [accumulator] The initial value.
  24618. * @param {boolean} [initAccum] Specify using the first element of `array` as
  24619. * the initial value.
  24620. * @returns {*} Returns the accumulated value.
  24621. */
  24622. function arrayReduce(array, iteratee, accumulator, initAccum) {
  24623. var index = -1,
  24624. length = array == null ? 0 : array.length;
  24625. if (initAccum && length) {
  24626. accumulator = array[++index];
  24627. }
  24628. while (++index < length) {
  24629. accumulator = iteratee(accumulator, array[index], index, array);
  24630. }
  24631. return accumulator;
  24632. }
  24633. /**
  24634. * A specialized version of `_.reduceRight` for arrays without support for
  24635. * iteratee shorthands.
  24636. *
  24637. * @private
  24638. * @param {Array} [array] The array to iterate over.
  24639. * @param {Function} iteratee The function invoked per iteration.
  24640. * @param {*} [accumulator] The initial value.
  24641. * @param {boolean} [initAccum] Specify using the last element of `array` as
  24642. * the initial value.
  24643. * @returns {*} Returns the accumulated value.
  24644. */
  24645. function arrayReduceRight(array, iteratee, accumulator, initAccum) {
  24646. var length = array == null ? 0 : array.length;
  24647. if (initAccum && length) {
  24648. accumulator = array[--length];
  24649. }
  24650. while (length--) {
  24651. accumulator = iteratee(accumulator, array[length], length, array);
  24652. }
  24653. return accumulator;
  24654. }
  24655. /**
  24656. * A specialized version of `_.some` for arrays without support for iteratee
  24657. * shorthands.
  24658. *
  24659. * @private
  24660. * @param {Array} [array] The array to iterate over.
  24661. * @param {Function} predicate The function invoked per iteration.
  24662. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24663. * else `false`.
  24664. */
  24665. function arraySome(array, predicate) {
  24666. var index = -1,
  24667. length = array == null ? 0 : array.length;
  24668. while (++index < length) {
  24669. if (predicate(array[index], index, array)) {
  24670. return true;
  24671. }
  24672. }
  24673. return false;
  24674. }
  24675. /**
  24676. * Gets the size of an ASCII `string`.
  24677. *
  24678. * @private
  24679. * @param {string} string The string inspect.
  24680. * @returns {number} Returns the string size.
  24681. */
  24682. var asciiSize = baseProperty('length');
  24683. /**
  24684. * Converts an ASCII `string` to an array.
  24685. *
  24686. * @private
  24687. * @param {string} string The string to convert.
  24688. * @returns {Array} Returns the converted array.
  24689. */
  24690. function asciiToArray(string) {
  24691. return string.split('');
  24692. }
  24693. /**
  24694. * Splits an ASCII `string` into an array of its words.
  24695. *
  24696. * @private
  24697. * @param {string} The string to inspect.
  24698. * @returns {Array} Returns the words of `string`.
  24699. */
  24700. function asciiWords(string) {
  24701. return string.match(reAsciiWord) || [];
  24702. }
  24703. /**
  24704. * The base implementation of methods like `_.findKey` and `_.findLastKey`,
  24705. * without support for iteratee shorthands, which iterates over `collection`
  24706. * using `eachFunc`.
  24707. *
  24708. * @private
  24709. * @param {Array|Object} collection The collection to inspect.
  24710. * @param {Function} predicate The function invoked per iteration.
  24711. * @param {Function} eachFunc The function to iterate over `collection`.
  24712. * @returns {*} Returns the found element or its key, else `undefined`.
  24713. */
  24714. function baseFindKey(collection, predicate, eachFunc) {
  24715. var result;
  24716. eachFunc(collection, function(value, key, collection) {
  24717. if (predicate(value, key, collection)) {
  24718. result = key;
  24719. return false;
  24720. }
  24721. });
  24722. return result;
  24723. }
  24724. /**
  24725. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  24726. * support for iteratee shorthands.
  24727. *
  24728. * @private
  24729. * @param {Array} array The array to inspect.
  24730. * @param {Function} predicate The function invoked per iteration.
  24731. * @param {number} fromIndex The index to search from.
  24732. * @param {boolean} [fromRight] Specify iterating from right to left.
  24733. * @returns {number} Returns the index of the matched value, else `-1`.
  24734. */
  24735. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  24736. var length = array.length,
  24737. index = fromIndex + (fromRight ? 1 : -1);
  24738. while ((fromRight ? index-- : ++index < length)) {
  24739. if (predicate(array[index], index, array)) {
  24740. return index;
  24741. }
  24742. }
  24743. return -1;
  24744. }
  24745. /**
  24746. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  24747. *
  24748. * @private
  24749. * @param {Array} array The array to inspect.
  24750. * @param {*} value The value to search for.
  24751. * @param {number} fromIndex The index to search from.
  24752. * @returns {number} Returns the index of the matched value, else `-1`.
  24753. */
  24754. function baseIndexOf(array, value, fromIndex) {
  24755. return value === value
  24756. ? strictIndexOf(array, value, fromIndex)
  24757. : baseFindIndex(array, baseIsNaN, fromIndex);
  24758. }
  24759. /**
  24760. * This function is like `baseIndexOf` except that it accepts a comparator.
  24761. *
  24762. * @private
  24763. * @param {Array} array The array to inspect.
  24764. * @param {*} value The value to search for.
  24765. * @param {number} fromIndex The index to search from.
  24766. * @param {Function} comparator The comparator invoked per element.
  24767. * @returns {number} Returns the index of the matched value, else `-1`.
  24768. */
  24769. function baseIndexOfWith(array, value, fromIndex, comparator) {
  24770. var index = fromIndex - 1,
  24771. length = array.length;
  24772. while (++index < length) {
  24773. if (comparator(array[index], value)) {
  24774. return index;
  24775. }
  24776. }
  24777. return -1;
  24778. }
  24779. /**
  24780. * The base implementation of `_.isNaN` without support for number objects.
  24781. *
  24782. * @private
  24783. * @param {*} value The value to check.
  24784. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  24785. */
  24786. function baseIsNaN(value) {
  24787. return value !== value;
  24788. }
  24789. /**
  24790. * The base implementation of `_.mean` and `_.meanBy` without support for
  24791. * iteratee shorthands.
  24792. *
  24793. * @private
  24794. * @param {Array} array The array to iterate over.
  24795. * @param {Function} iteratee The function invoked per iteration.
  24796. * @returns {number} Returns the mean.
  24797. */
  24798. function baseMean(array, iteratee) {
  24799. var length = array == null ? 0 : array.length;
  24800. return length ? (baseSum(array, iteratee) / length) : NAN;
  24801. }
  24802. /**
  24803. * The base implementation of `_.property` without support for deep paths.
  24804. *
  24805. * @private
  24806. * @param {string} key The key of the property to get.
  24807. * @returns {Function} Returns the new accessor function.
  24808. */
  24809. function baseProperty(key) {
  24810. return function(object) {
  24811. return object == null ? undefined : object[key];
  24812. };
  24813. }
  24814. /**
  24815. * The base implementation of `_.propertyOf` without support for deep paths.
  24816. *
  24817. * @private
  24818. * @param {Object} object The object to query.
  24819. * @returns {Function} Returns the new accessor function.
  24820. */
  24821. function basePropertyOf(object) {
  24822. return function(key) {
  24823. return object == null ? undefined : object[key];
  24824. };
  24825. }
  24826. /**
  24827. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  24828. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  24829. *
  24830. * @private
  24831. * @param {Array|Object} collection The collection to iterate over.
  24832. * @param {Function} iteratee The function invoked per iteration.
  24833. * @param {*} accumulator The initial value.
  24834. * @param {boolean} initAccum Specify using the first or last element of
  24835. * `collection` as the initial value.
  24836. * @param {Function} eachFunc The function to iterate over `collection`.
  24837. * @returns {*} Returns the accumulated value.
  24838. */
  24839. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  24840. eachFunc(collection, function(value, index, collection) {
  24841. accumulator = initAccum
  24842. ? (initAccum = false, value)
  24843. : iteratee(accumulator, value, index, collection);
  24844. });
  24845. return accumulator;
  24846. }
  24847. /**
  24848. * The base implementation of `_.sortBy` which uses `comparer` to define the
  24849. * sort order of `array` and replaces criteria objects with their corresponding
  24850. * values.
  24851. *
  24852. * @private
  24853. * @param {Array} array The array to sort.
  24854. * @param {Function} comparer The function to define sort order.
  24855. * @returns {Array} Returns `array`.
  24856. */
  24857. function baseSortBy(array, comparer) {
  24858. var length = array.length;
  24859. array.sort(comparer);
  24860. while (length--) {
  24861. array[length] = array[length].value;
  24862. }
  24863. return array;
  24864. }
  24865. /**
  24866. * The base implementation of `_.sum` and `_.sumBy` without support for
  24867. * iteratee shorthands.
  24868. *
  24869. * @private
  24870. * @param {Array} array The array to iterate over.
  24871. * @param {Function} iteratee The function invoked per iteration.
  24872. * @returns {number} Returns the sum.
  24873. */
  24874. function baseSum(array, iteratee) {
  24875. var result,
  24876. index = -1,
  24877. length = array.length;
  24878. while (++index < length) {
  24879. var current = iteratee(array[index]);
  24880. if (current !== undefined) {
  24881. result = result === undefined ? current : (result + current);
  24882. }
  24883. }
  24884. return result;
  24885. }
  24886. /**
  24887. * The base implementation of `_.times` without support for iteratee shorthands
  24888. * or max array length checks.
  24889. *
  24890. * @private
  24891. * @param {number} n The number of times to invoke `iteratee`.
  24892. * @param {Function} iteratee The function invoked per iteration.
  24893. * @returns {Array} Returns the array of results.
  24894. */
  24895. function baseTimes(n, iteratee) {
  24896. var index = -1,
  24897. result = Array(n);
  24898. while (++index < n) {
  24899. result[index] = iteratee(index);
  24900. }
  24901. return result;
  24902. }
  24903. /**
  24904. * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
  24905. * of key-value pairs for `object` corresponding to the property names of `props`.
  24906. *
  24907. * @private
  24908. * @param {Object} object The object to query.
  24909. * @param {Array} props The property names to get values for.
  24910. * @returns {Object} Returns the key-value pairs.
  24911. */
  24912. function baseToPairs(object, props) {
  24913. return arrayMap(props, function(key) {
  24914. return [key, object[key]];
  24915. });
  24916. }
  24917. /**
  24918. * The base implementation of `_.unary` without support for storing metadata.
  24919. *
  24920. * @private
  24921. * @param {Function} func The function to cap arguments for.
  24922. * @returns {Function} Returns the new capped function.
  24923. */
  24924. function baseUnary(func) {
  24925. return function(value) {
  24926. return func(value);
  24927. };
  24928. }
  24929. /**
  24930. * The base implementation of `_.values` and `_.valuesIn` which creates an
  24931. * array of `object` property values corresponding to the property names
  24932. * of `props`.
  24933. *
  24934. * @private
  24935. * @param {Object} object The object to query.
  24936. * @param {Array} props The property names to get values for.
  24937. * @returns {Object} Returns the array of property values.
  24938. */
  24939. function baseValues(object, props) {
  24940. return arrayMap(props, function(key) {
  24941. return object[key];
  24942. });
  24943. }
  24944. /**
  24945. * Checks if a `cache` value for `key` exists.
  24946. *
  24947. * @private
  24948. * @param {Object} cache The cache to query.
  24949. * @param {string} key The key of the entry to check.
  24950. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24951. */
  24952. function cacheHas(cache, key) {
  24953. return cache.has(key);
  24954. }
  24955. /**
  24956. * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
  24957. * that is not found in the character symbols.
  24958. *
  24959. * @private
  24960. * @param {Array} strSymbols The string symbols to inspect.
  24961. * @param {Array} chrSymbols The character symbols to find.
  24962. * @returns {number} Returns the index of the first unmatched string symbol.
  24963. */
  24964. function charsStartIndex(strSymbols, chrSymbols) {
  24965. var index = -1,
  24966. length = strSymbols.length;
  24967. while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  24968. return index;
  24969. }
  24970. /**
  24971. * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
  24972. * that is not found in the character symbols.
  24973. *
  24974. * @private
  24975. * @param {Array} strSymbols The string symbols to inspect.
  24976. * @param {Array} chrSymbols The character symbols to find.
  24977. * @returns {number} Returns the index of the last unmatched string symbol.
  24978. */
  24979. function charsEndIndex(strSymbols, chrSymbols) {
  24980. var index = strSymbols.length;
  24981. while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  24982. return index;
  24983. }
  24984. /**
  24985. * Gets the number of `placeholder` occurrences in `array`.
  24986. *
  24987. * @private
  24988. * @param {Array} array The array to inspect.
  24989. * @param {*} placeholder The placeholder to search for.
  24990. * @returns {number} Returns the placeholder count.
  24991. */
  24992. function countHolders(array, placeholder) {
  24993. var length = array.length,
  24994. result = 0;
  24995. while (length--) {
  24996. if (array[length] === placeholder) {
  24997. ++result;
  24998. }
  24999. }
  25000. return result;
  25001. }
  25002. /**
  25003. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  25004. * letters to basic Latin letters.
  25005. *
  25006. * @private
  25007. * @param {string} letter The matched letter to deburr.
  25008. * @returns {string} Returns the deburred letter.
  25009. */
  25010. var deburrLetter = basePropertyOf(deburredLetters);
  25011. /**
  25012. * Used by `_.escape` to convert characters to HTML entities.
  25013. *
  25014. * @private
  25015. * @param {string} chr The matched character to escape.
  25016. * @returns {string} Returns the escaped character.
  25017. */
  25018. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  25019. /**
  25020. * Used by `_.template` to escape characters for inclusion in compiled string literals.
  25021. *
  25022. * @private
  25023. * @param {string} chr The matched character to escape.
  25024. * @returns {string} Returns the escaped character.
  25025. */
  25026. function escapeStringChar(chr) {
  25027. return '\\' + stringEscapes[chr];
  25028. }
  25029. /**
  25030. * Gets the value at `key` of `object`.
  25031. *
  25032. * @private
  25033. * @param {Object} [object] The object to query.
  25034. * @param {string} key The key of the property to get.
  25035. * @returns {*} Returns the property value.
  25036. */
  25037. function getValue(object, key) {
  25038. return object == null ? undefined : object[key];
  25039. }
  25040. /**
  25041. * Checks if `string` contains Unicode symbols.
  25042. *
  25043. * @private
  25044. * @param {string} string The string to inspect.
  25045. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  25046. */
  25047. function hasUnicode(string) {
  25048. return reHasUnicode.test(string);
  25049. }
  25050. /**
  25051. * Checks if `string` contains a word composed of Unicode symbols.
  25052. *
  25053. * @private
  25054. * @param {string} string The string to inspect.
  25055. * @returns {boolean} Returns `true` if a word is found, else `false`.
  25056. */
  25057. function hasUnicodeWord(string) {
  25058. return reHasUnicodeWord.test(string);
  25059. }
  25060. /**
  25061. * Converts `iterator` to an array.
  25062. *
  25063. * @private
  25064. * @param {Object} iterator The iterator to convert.
  25065. * @returns {Array} Returns the converted array.
  25066. */
  25067. function iteratorToArray(iterator) {
  25068. var data,
  25069. result = [];
  25070. while (!(data = iterator.next()).done) {
  25071. result.push(data.value);
  25072. }
  25073. return result;
  25074. }
  25075. /**
  25076. * Converts `map` to its key-value pairs.
  25077. *
  25078. * @private
  25079. * @param {Object} map The map to convert.
  25080. * @returns {Array} Returns the key-value pairs.
  25081. */
  25082. function mapToArray(map) {
  25083. var index = -1,
  25084. result = Array(map.size);
  25085. map.forEach(function(value, key) {
  25086. result[++index] = [key, value];
  25087. });
  25088. return result;
  25089. }
  25090. /**
  25091. * Creates a unary function that invokes `func` with its argument transformed.
  25092. *
  25093. * @private
  25094. * @param {Function} func The function to wrap.
  25095. * @param {Function} transform The argument transform.
  25096. * @returns {Function} Returns the new function.
  25097. */
  25098. function overArg(func, transform) {
  25099. return function(arg) {
  25100. return func(transform(arg));
  25101. };
  25102. }
  25103. /**
  25104. * Replaces all `placeholder` elements in `array` with an internal placeholder
  25105. * and returns an array of their indexes.
  25106. *
  25107. * @private
  25108. * @param {Array} array The array to modify.
  25109. * @param {*} placeholder The placeholder to replace.
  25110. * @returns {Array} Returns the new array of placeholder indexes.
  25111. */
  25112. function replaceHolders(array, placeholder) {
  25113. var index = -1,
  25114. length = array.length,
  25115. resIndex = 0,
  25116. result = [];
  25117. while (++index < length) {
  25118. var value = array[index];
  25119. if (value === placeholder || value === PLACEHOLDER) {
  25120. array[index] = PLACEHOLDER;
  25121. result[resIndex++] = index;
  25122. }
  25123. }
  25124. return result;
  25125. }
  25126. /**
  25127. * Converts `set` to an array of its values.
  25128. *
  25129. * @private
  25130. * @param {Object} set The set to convert.
  25131. * @returns {Array} Returns the values.
  25132. */
  25133. function setToArray(set) {
  25134. var index = -1,
  25135. result = Array(set.size);
  25136. set.forEach(function(value) {
  25137. result[++index] = value;
  25138. });
  25139. return result;
  25140. }
  25141. /**
  25142. * Converts `set` to its value-value pairs.
  25143. *
  25144. * @private
  25145. * @param {Object} set The set to convert.
  25146. * @returns {Array} Returns the value-value pairs.
  25147. */
  25148. function setToPairs(set) {
  25149. var index = -1,
  25150. result = Array(set.size);
  25151. set.forEach(function(value) {
  25152. result[++index] = [value, value];
  25153. });
  25154. return result;
  25155. }
  25156. /**
  25157. * A specialized version of `_.indexOf` which performs strict equality
  25158. * comparisons of values, i.e. `===`.
  25159. *
  25160. * @private
  25161. * @param {Array} array The array to inspect.
  25162. * @param {*} value The value to search for.
  25163. * @param {number} fromIndex The index to search from.
  25164. * @returns {number} Returns the index of the matched value, else `-1`.
  25165. */
  25166. function strictIndexOf(array, value, fromIndex) {
  25167. var index = fromIndex - 1,
  25168. length = array.length;
  25169. while (++index < length) {
  25170. if (array[index] === value) {
  25171. return index;
  25172. }
  25173. }
  25174. return -1;
  25175. }
  25176. /**
  25177. * A specialized version of `_.lastIndexOf` which performs strict equality
  25178. * comparisons of values, i.e. `===`.
  25179. *
  25180. * @private
  25181. * @param {Array} array The array to inspect.
  25182. * @param {*} value The value to search for.
  25183. * @param {number} fromIndex The index to search from.
  25184. * @returns {number} Returns the index of the matched value, else `-1`.
  25185. */
  25186. function strictLastIndexOf(array, value, fromIndex) {
  25187. var index = fromIndex + 1;
  25188. while (index--) {
  25189. if (array[index] === value) {
  25190. return index;
  25191. }
  25192. }
  25193. return index;
  25194. }
  25195. /**
  25196. * Gets the number of symbols in `string`.
  25197. *
  25198. * @private
  25199. * @param {string} string The string to inspect.
  25200. * @returns {number} Returns the string size.
  25201. */
  25202. function stringSize(string) {
  25203. return hasUnicode(string)
  25204. ? unicodeSize(string)
  25205. : asciiSize(string);
  25206. }
  25207. /**
  25208. * Converts `string` to an array.
  25209. *
  25210. * @private
  25211. * @param {string} string The string to convert.
  25212. * @returns {Array} Returns the converted array.
  25213. */
  25214. function stringToArray(string) {
  25215. return hasUnicode(string)
  25216. ? unicodeToArray(string)
  25217. : asciiToArray(string);
  25218. }
  25219. /**
  25220. * Used by `_.unescape` to convert HTML entities to characters.
  25221. *
  25222. * @private
  25223. * @param {string} chr The matched character to unescape.
  25224. * @returns {string} Returns the unescaped character.
  25225. */
  25226. var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
  25227. /**
  25228. * Gets the size of a Unicode `string`.
  25229. *
  25230. * @private
  25231. * @param {string} string The string inspect.
  25232. * @returns {number} Returns the string size.
  25233. */
  25234. function unicodeSize(string) {
  25235. var result = reUnicode.lastIndex = 0;
  25236. while (reUnicode.test(string)) {
  25237. ++result;
  25238. }
  25239. return result;
  25240. }
  25241. /**
  25242. * Converts a Unicode `string` to an array.
  25243. *
  25244. * @private
  25245. * @param {string} string The string to convert.
  25246. * @returns {Array} Returns the converted array.
  25247. */
  25248. function unicodeToArray(string) {
  25249. return string.match(reUnicode) || [];
  25250. }
  25251. /**
  25252. * Splits a Unicode `string` into an array of its words.
  25253. *
  25254. * @private
  25255. * @param {string} The string to inspect.
  25256. * @returns {Array} Returns the words of `string`.
  25257. */
  25258. function unicodeWords(string) {
  25259. return string.match(reUnicodeWord) || [];
  25260. }
  25261. /*--------------------------------------------------------------------------*/
  25262. /**
  25263. * Create a new pristine `lodash` function using the `context` object.
  25264. *
  25265. * @static
  25266. * @memberOf _
  25267. * @since 1.1.0
  25268. * @category Util
  25269. * @param {Object} [context=root] The context object.
  25270. * @returns {Function} Returns a new `lodash` function.
  25271. * @example
  25272. *
  25273. * _.mixin({ 'foo': _.constant('foo') });
  25274. *
  25275. * var lodash = _.runInContext();
  25276. * lodash.mixin({ 'bar': lodash.constant('bar') });
  25277. *
  25278. * _.isFunction(_.foo);
  25279. * // => true
  25280. * _.isFunction(_.bar);
  25281. * // => false
  25282. *
  25283. * lodash.isFunction(lodash.foo);
  25284. * // => false
  25285. * lodash.isFunction(lodash.bar);
  25286. * // => true
  25287. *
  25288. * // Create a suped-up `defer` in Node.js.
  25289. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  25290. */
  25291. var runInContext = (function runInContext(context) {
  25292. context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
  25293. /** Built-in constructor references. */
  25294. var Array = context.Array,
  25295. Date = context.Date,
  25296. Error = context.Error,
  25297. Function = context.Function,
  25298. Math = context.Math,
  25299. Object = context.Object,
  25300. RegExp = context.RegExp,
  25301. String = context.String,
  25302. TypeError = context.TypeError;
  25303. /** Used for built-in method references. */
  25304. var arrayProto = Array.prototype,
  25305. funcProto = Function.prototype,
  25306. objectProto = Object.prototype;
  25307. /** Used to detect overreaching core-js shims. */
  25308. var coreJsData = context['__core-js_shared__'];
  25309. /** Used to resolve the decompiled source of functions. */
  25310. var funcToString = funcProto.toString;
  25311. /** Used to check objects for own properties. */
  25312. var hasOwnProperty = objectProto.hasOwnProperty;
  25313. /** Used to generate unique IDs. */
  25314. var idCounter = 0;
  25315. /** Used to detect methods masquerading as native. */
  25316. var maskSrcKey = (function() {
  25317. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  25318. return uid ? ('Symbol(src)_1.' + uid) : '';
  25319. }());
  25320. /**
  25321. * Used to resolve the
  25322. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  25323. * of values.
  25324. */
  25325. var nativeObjectToString = objectProto.toString;
  25326. /** Used to infer the `Object` constructor. */
  25327. var objectCtorString = funcToString.call(Object);
  25328. /** Used to restore the original `_` reference in `_.noConflict`. */
  25329. var oldDash = root._;
  25330. /** Used to detect if a method is native. */
  25331. var reIsNative = RegExp('^' +
  25332. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  25333. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  25334. );
  25335. /** Built-in value references. */
  25336. var Buffer = moduleExports ? context.Buffer : undefined,
  25337. Symbol = context.Symbol,
  25338. Uint8Array = context.Uint8Array,
  25339. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  25340. getPrototype = overArg(Object.getPrototypeOf, Object),
  25341. objectCreate = Object.create,
  25342. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  25343. splice = arrayProto.splice,
  25344. spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
  25345. symIterator = Symbol ? Symbol.iterator : undefined,
  25346. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  25347. var defineProperty = (function() {
  25348. try {
  25349. var func = getNative(Object, 'defineProperty');
  25350. func({}, '', {});
  25351. return func;
  25352. } catch (e) {}
  25353. }());
  25354. /** Mocked built-ins. */
  25355. var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
  25356. ctxNow = Date && Date.now !== root.Date.now && Date.now,
  25357. ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
  25358. /* Built-in method references for those with the same name as other `lodash` methods. */
  25359. var nativeCeil = Math.ceil,
  25360. nativeFloor = Math.floor,
  25361. nativeGetSymbols = Object.getOwnPropertySymbols,
  25362. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  25363. nativeIsFinite = context.isFinite,
  25364. nativeJoin = arrayProto.join,
  25365. nativeKeys = overArg(Object.keys, Object),
  25366. nativeMax = Math.max,
  25367. nativeMin = Math.min,
  25368. nativeNow = Date.now,
  25369. nativeParseInt = context.parseInt,
  25370. nativeRandom = Math.random,
  25371. nativeReverse = arrayProto.reverse;
  25372. /* Built-in method references that are verified to be native. */
  25373. var DataView = getNative(context, 'DataView'),
  25374. Map = getNative(context, 'Map'),
  25375. Promise = getNative(context, 'Promise'),
  25376. Set = getNative(context, 'Set'),
  25377. WeakMap = getNative(context, 'WeakMap'),
  25378. nativeCreate = getNative(Object, 'create');
  25379. /** Used to store function metadata. */
  25380. var metaMap = WeakMap && new WeakMap;
  25381. /** Used to lookup unminified function names. */
  25382. var realNames = {};
  25383. /** Used to detect maps, sets, and weakmaps. */
  25384. var dataViewCtorString = toSource(DataView),
  25385. mapCtorString = toSource(Map),
  25386. promiseCtorString = toSource(Promise),
  25387. setCtorString = toSource(Set),
  25388. weakMapCtorString = toSource(WeakMap);
  25389. /** Used to convert symbols to primitives and strings. */
  25390. var symbolProto = Symbol ? Symbol.prototype : undefined,
  25391. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
  25392. symbolToString = symbolProto ? symbolProto.toString : undefined;
  25393. /*------------------------------------------------------------------------*/
  25394. /**
  25395. * Creates a `lodash` object which wraps `value` to enable implicit method
  25396. * chain sequences. Methods that operate on and return arrays, collections,
  25397. * and functions can be chained together. Methods that retrieve a single value
  25398. * or may return a primitive value will automatically end the chain sequence
  25399. * and return the unwrapped value. Otherwise, the value must be unwrapped
  25400. * with `_#value`.
  25401. *
  25402. * Explicit chain sequences, which must be unwrapped with `_#value`, may be
  25403. * enabled using `_.chain`.
  25404. *
  25405. * The execution of chained methods is lazy, that is, it's deferred until
  25406. * `_#value` is implicitly or explicitly called.
  25407. *
  25408. * Lazy evaluation allows several methods to support shortcut fusion.
  25409. * Shortcut fusion is an optimization to merge iteratee calls; this avoids
  25410. * the creation of intermediate arrays and can greatly reduce the number of
  25411. * iteratee executions. Sections of a chain sequence qualify for shortcut
  25412. * fusion if the section is applied to an array and iteratees accept only
  25413. * one argument. The heuristic for whether a section qualifies for shortcut
  25414. * fusion is subject to change.
  25415. *
  25416. * Chaining is supported in custom builds as long as the `_#value` method is
  25417. * directly or indirectly included in the build.
  25418. *
  25419. * In addition to lodash methods, wrappers have `Array` and `String` methods.
  25420. *
  25421. * The wrapper `Array` methods are:
  25422. * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
  25423. *
  25424. * The wrapper `String` methods are:
  25425. * `replace` and `split`
  25426. *
  25427. * The wrapper methods that support shortcut fusion are:
  25428. * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
  25429. * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
  25430. * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
  25431. *
  25432. * The chainable wrapper methods are:
  25433. * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
  25434. * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
  25435. * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
  25436. * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
  25437. * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
  25438. * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
  25439. * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
  25440. * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
  25441. * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
  25442. * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
  25443. * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
  25444. * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
  25445. * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
  25446. * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
  25447. * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
  25448. * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
  25449. * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
  25450. * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
  25451. * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
  25452. * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
  25453. * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
  25454. * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
  25455. * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
  25456. * `zipObject`, `zipObjectDeep`, and `zipWith`
  25457. *
  25458. * The wrapper methods that are **not** chainable by default are:
  25459. * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
  25460. * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
  25461. * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
  25462. * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
  25463. * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
  25464. * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
  25465. * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
  25466. * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
  25467. * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
  25468. * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
  25469. * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
  25470. * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
  25471. * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
  25472. * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
  25473. * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
  25474. * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
  25475. * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
  25476. * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
  25477. * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
  25478. * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
  25479. * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
  25480. * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
  25481. * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
  25482. * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
  25483. * `upperFirst`, `value`, and `words`
  25484. *
  25485. * @name _
  25486. * @constructor
  25487. * @category Seq
  25488. * @param {*} value The value to wrap in a `lodash` instance.
  25489. * @returns {Object} Returns the new `lodash` wrapper instance.
  25490. * @example
  25491. *
  25492. * function square(n) {
  25493. * return n * n;
  25494. * }
  25495. *
  25496. * var wrapped = _([1, 2, 3]);
  25497. *
  25498. * // Returns an unwrapped value.
  25499. * wrapped.reduce(_.add);
  25500. * // => 6
  25501. *
  25502. * // Returns a wrapped value.
  25503. * var squares = wrapped.map(square);
  25504. *
  25505. * _.isArray(squares);
  25506. * // => false
  25507. *
  25508. * _.isArray(squares.value());
  25509. * // => true
  25510. */
  25511. function lodash(value) {
  25512. if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
  25513. if (value instanceof LodashWrapper) {
  25514. return value;
  25515. }
  25516. if (hasOwnProperty.call(value, '__wrapped__')) {
  25517. return wrapperClone(value);
  25518. }
  25519. }
  25520. return new LodashWrapper(value);
  25521. }
  25522. /**
  25523. * The base implementation of `_.create` without support for assigning
  25524. * properties to the created object.
  25525. *
  25526. * @private
  25527. * @param {Object} proto The object to inherit from.
  25528. * @returns {Object} Returns the new object.
  25529. */
  25530. var baseCreate = (function() {
  25531. function object() {}
  25532. return function(proto) {
  25533. if (!isObject(proto)) {
  25534. return {};
  25535. }
  25536. if (objectCreate) {
  25537. return objectCreate(proto);
  25538. }
  25539. object.prototype = proto;
  25540. var result = new object;
  25541. object.prototype = undefined;
  25542. return result;
  25543. };
  25544. }());
  25545. /**
  25546. * The function whose prototype chain sequence wrappers inherit from.
  25547. *
  25548. * @private
  25549. */
  25550. function baseLodash() {
  25551. // No operation performed.
  25552. }
  25553. /**
  25554. * The base constructor for creating `lodash` wrapper objects.
  25555. *
  25556. * @private
  25557. * @param {*} value The value to wrap.
  25558. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  25559. */
  25560. function LodashWrapper(value, chainAll) {
  25561. this.__wrapped__ = value;
  25562. this.__actions__ = [];
  25563. this.__chain__ = !!chainAll;
  25564. this.__index__ = 0;
  25565. this.__values__ = undefined;
  25566. }
  25567. /**
  25568. * By default, the template delimiters used by lodash are like those in
  25569. * embedded Ruby (ERB) as well as ES2015 template strings. Change the
  25570. * following template settings to use alternative delimiters.
  25571. *
  25572. * @static
  25573. * @memberOf _
  25574. * @type {Object}
  25575. */
  25576. lodash.templateSettings = {
  25577. /**
  25578. * Used to detect `data` property values to be HTML-escaped.
  25579. *
  25580. * @memberOf _.templateSettings
  25581. * @type {RegExp}
  25582. */
  25583. 'escape': reEscape,
  25584. /**
  25585. * Used to detect code to be evaluated.
  25586. *
  25587. * @memberOf _.templateSettings
  25588. * @type {RegExp}
  25589. */
  25590. 'evaluate': reEvaluate,
  25591. /**
  25592. * Used to detect `data` property values to inject.
  25593. *
  25594. * @memberOf _.templateSettings
  25595. * @type {RegExp}
  25596. */
  25597. 'interpolate': reInterpolate,
  25598. /**
  25599. * Used to reference the data object in the template text.
  25600. *
  25601. * @memberOf _.templateSettings
  25602. * @type {string}
  25603. */
  25604. 'variable': '',
  25605. /**
  25606. * Used to import variables into the compiled template.
  25607. *
  25608. * @memberOf _.templateSettings
  25609. * @type {Object}
  25610. */
  25611. 'imports': {
  25612. /**
  25613. * A reference to the `lodash` function.
  25614. *
  25615. * @memberOf _.templateSettings.imports
  25616. * @type {Function}
  25617. */
  25618. '_': lodash
  25619. }
  25620. };
  25621. // Ensure wrappers are instances of `baseLodash`.
  25622. lodash.prototype = baseLodash.prototype;
  25623. lodash.prototype.constructor = lodash;
  25624. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  25625. LodashWrapper.prototype.constructor = LodashWrapper;
  25626. /*------------------------------------------------------------------------*/
  25627. /**
  25628. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  25629. *
  25630. * @private
  25631. * @constructor
  25632. * @param {*} value The value to wrap.
  25633. */
  25634. function LazyWrapper(value) {
  25635. this.__wrapped__ = value;
  25636. this.__actions__ = [];
  25637. this.__dir__ = 1;
  25638. this.__filtered__ = false;
  25639. this.__iteratees__ = [];
  25640. this.__takeCount__ = MAX_ARRAY_LENGTH;
  25641. this.__views__ = [];
  25642. }
  25643. /**
  25644. * Creates a clone of the lazy wrapper object.
  25645. *
  25646. * @private
  25647. * @name clone
  25648. * @memberOf LazyWrapper
  25649. * @returns {Object} Returns the cloned `LazyWrapper` object.
  25650. */
  25651. function lazyClone() {
  25652. var result = new LazyWrapper(this.__wrapped__);
  25653. result.__actions__ = copyArray(this.__actions__);
  25654. result.__dir__ = this.__dir__;
  25655. result.__filtered__ = this.__filtered__;
  25656. result.__iteratees__ = copyArray(this.__iteratees__);
  25657. result.__takeCount__ = this.__takeCount__;
  25658. result.__views__ = copyArray(this.__views__);
  25659. return result;
  25660. }
  25661. /**
  25662. * Reverses the direction of lazy iteration.
  25663. *
  25664. * @private
  25665. * @name reverse
  25666. * @memberOf LazyWrapper
  25667. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  25668. */
  25669. function lazyReverse() {
  25670. if (this.__filtered__) {
  25671. var result = new LazyWrapper(this);
  25672. result.__dir__ = -1;
  25673. result.__filtered__ = true;
  25674. } else {
  25675. result = this.clone();
  25676. result.__dir__ *= -1;
  25677. }
  25678. return result;
  25679. }
  25680. /**
  25681. * Extracts the unwrapped value from its lazy wrapper.
  25682. *
  25683. * @private
  25684. * @name value
  25685. * @memberOf LazyWrapper
  25686. * @returns {*} Returns the unwrapped value.
  25687. */
  25688. function lazyValue() {
  25689. var array = this.__wrapped__.value(),
  25690. dir = this.__dir__,
  25691. isArr = isArray(array),
  25692. isRight = dir < 0,
  25693. arrLength = isArr ? array.length : 0,
  25694. view = getView(0, arrLength, this.__views__),
  25695. start = view.start,
  25696. end = view.end,
  25697. length = end - start,
  25698. index = isRight ? end : (start - 1),
  25699. iteratees = this.__iteratees__,
  25700. iterLength = iteratees.length,
  25701. resIndex = 0,
  25702. takeCount = nativeMin(length, this.__takeCount__);
  25703. if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
  25704. return baseWrapperValue(array, this.__actions__);
  25705. }
  25706. var result = [];
  25707. outer:
  25708. while (length-- && resIndex < takeCount) {
  25709. index += dir;
  25710. var iterIndex = -1,
  25711. value = array[index];
  25712. while (++iterIndex < iterLength) {
  25713. var data = iteratees[iterIndex],
  25714. iteratee = data.iteratee,
  25715. type = data.type,
  25716. computed = iteratee(value);
  25717. if (type == LAZY_MAP_FLAG) {
  25718. value = computed;
  25719. } else if (!computed) {
  25720. if (type == LAZY_FILTER_FLAG) {
  25721. continue outer;
  25722. } else {
  25723. break outer;
  25724. }
  25725. }
  25726. }
  25727. result[resIndex++] = value;
  25728. }
  25729. return result;
  25730. }
  25731. // Ensure `LazyWrapper` is an instance of `baseLodash`.
  25732. LazyWrapper.prototype = baseCreate(baseLodash.prototype);
  25733. LazyWrapper.prototype.constructor = LazyWrapper;
  25734. /*------------------------------------------------------------------------*/
  25735. /**
  25736. * Creates a hash object.
  25737. *
  25738. * @private
  25739. * @constructor
  25740. * @param {Array} [entries] The key-value pairs to cache.
  25741. */
  25742. function Hash(entries) {
  25743. var index = -1,
  25744. length = entries == null ? 0 : entries.length;
  25745. this.clear();
  25746. while (++index < length) {
  25747. var entry = entries[index];
  25748. this.set(entry[0], entry[1]);
  25749. }
  25750. }
  25751. /**
  25752. * Removes all key-value entries from the hash.
  25753. *
  25754. * @private
  25755. * @name clear
  25756. * @memberOf Hash
  25757. */
  25758. function hashClear() {
  25759. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  25760. this.size = 0;
  25761. }
  25762. /**
  25763. * Removes `key` and its value from the hash.
  25764. *
  25765. * @private
  25766. * @name delete
  25767. * @memberOf Hash
  25768. * @param {Object} hash The hash to modify.
  25769. * @param {string} key The key of the value to remove.
  25770. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25771. */
  25772. function hashDelete(key) {
  25773. var result = this.has(key) && delete this.__data__[key];
  25774. this.size -= result ? 1 : 0;
  25775. return result;
  25776. }
  25777. /**
  25778. * Gets the hash value for `key`.
  25779. *
  25780. * @private
  25781. * @name get
  25782. * @memberOf Hash
  25783. * @param {string} key The key of the value to get.
  25784. * @returns {*} Returns the entry value.
  25785. */
  25786. function hashGet(key) {
  25787. var data = this.__data__;
  25788. if (nativeCreate) {
  25789. var result = data[key];
  25790. return result === HASH_UNDEFINED ? undefined : result;
  25791. }
  25792. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  25793. }
  25794. /**
  25795. * Checks if a hash value for `key` exists.
  25796. *
  25797. * @private
  25798. * @name has
  25799. * @memberOf Hash
  25800. * @param {string} key The key of the entry to check.
  25801. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  25802. */
  25803. function hashHas(key) {
  25804. var data = this.__data__;
  25805. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  25806. }
  25807. /**
  25808. * Sets the hash `key` to `value`.
  25809. *
  25810. * @private
  25811. * @name set
  25812. * @memberOf Hash
  25813. * @param {string} key The key of the value to set.
  25814. * @param {*} value The value to set.
  25815. * @returns {Object} Returns the hash instance.
  25816. */
  25817. function hashSet(key, value) {
  25818. var data = this.__data__;
  25819. this.size += this.has(key) ? 0 : 1;
  25820. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  25821. return this;
  25822. }
  25823. // Add methods to `Hash`.
  25824. Hash.prototype.clear = hashClear;
  25825. Hash.prototype['delete'] = hashDelete;
  25826. Hash.prototype.get = hashGet;
  25827. Hash.prototype.has = hashHas;
  25828. Hash.prototype.set = hashSet;
  25829. /*------------------------------------------------------------------------*/
  25830. /**
  25831. * Creates an list cache object.
  25832. *
  25833. * @private
  25834. * @constructor
  25835. * @param {Array} [entries] The key-value pairs to cache.
  25836. */
  25837. function ListCache(entries) {
  25838. var index = -1,
  25839. length = entries == null ? 0 : entries.length;
  25840. this.clear();
  25841. while (++index < length) {
  25842. var entry = entries[index];
  25843. this.set(entry[0], entry[1]);
  25844. }
  25845. }
  25846. /**
  25847. * Removes all key-value entries from the list cache.
  25848. *
  25849. * @private
  25850. * @name clear
  25851. * @memberOf ListCache
  25852. */
  25853. function listCacheClear() {
  25854. this.__data__ = [];
  25855. this.size = 0;
  25856. }
  25857. /**
  25858. * Removes `key` and its value from the list cache.
  25859. *
  25860. * @private
  25861. * @name delete
  25862. * @memberOf ListCache
  25863. * @param {string} key The key of the value to remove.
  25864. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25865. */
  25866. function listCacheDelete(key) {
  25867. var data = this.__data__,
  25868. index = assocIndexOf(data, key);
  25869. if (index < 0) {
  25870. return false;
  25871. }
  25872. var lastIndex = data.length - 1;
  25873. if (index == lastIndex) {
  25874. data.pop();
  25875. } else {
  25876. splice.call(data, index, 1);
  25877. }
  25878. --this.size;
  25879. return true;
  25880. }
  25881. /**
  25882. * Gets the list cache value for `key`.
  25883. *
  25884. * @private
  25885. * @name get
  25886. * @memberOf ListCache
  25887. * @param {string} key The key of the value to get.
  25888. * @returns {*} Returns the entry value.
  25889. */
  25890. function listCacheGet(key) {
  25891. var data = this.__data__,
  25892. index = assocIndexOf(data, key);
  25893. return index < 0 ? undefined : data[index][1];
  25894. }
  25895. /**
  25896. * Checks if a list cache value for `key` exists.
  25897. *
  25898. * @private
  25899. * @name has
  25900. * @memberOf ListCache
  25901. * @param {string} key The key of the entry to check.
  25902. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  25903. */
  25904. function listCacheHas(key) {
  25905. return assocIndexOf(this.__data__, key) > -1;
  25906. }
  25907. /**
  25908. * Sets the list cache `key` to `value`.
  25909. *
  25910. * @private
  25911. * @name set
  25912. * @memberOf ListCache
  25913. * @param {string} key The key of the value to set.
  25914. * @param {*} value The value to set.
  25915. * @returns {Object} Returns the list cache instance.
  25916. */
  25917. function listCacheSet(key, value) {
  25918. var data = this.__data__,
  25919. index = assocIndexOf(data, key);
  25920. if (index < 0) {
  25921. ++this.size;
  25922. data.push([key, value]);
  25923. } else {
  25924. data[index][1] = value;
  25925. }
  25926. return this;
  25927. }
  25928. // Add methods to `ListCache`.
  25929. ListCache.prototype.clear = listCacheClear;
  25930. ListCache.prototype['delete'] = listCacheDelete;
  25931. ListCache.prototype.get = listCacheGet;
  25932. ListCache.prototype.has = listCacheHas;
  25933. ListCache.prototype.set = listCacheSet;
  25934. /*------------------------------------------------------------------------*/
  25935. /**
  25936. * Creates a map cache object to store key-value pairs.
  25937. *
  25938. * @private
  25939. * @constructor
  25940. * @param {Array} [entries] The key-value pairs to cache.
  25941. */
  25942. function MapCache(entries) {
  25943. var index = -1,
  25944. length = entries == null ? 0 : entries.length;
  25945. this.clear();
  25946. while (++index < length) {
  25947. var entry = entries[index];
  25948. this.set(entry[0], entry[1]);
  25949. }
  25950. }
  25951. /**
  25952. * Removes all key-value entries from the map.
  25953. *
  25954. * @private
  25955. * @name clear
  25956. * @memberOf MapCache
  25957. */
  25958. function mapCacheClear() {
  25959. this.size = 0;
  25960. this.__data__ = {
  25961. 'hash': new Hash,
  25962. 'map': new (Map || ListCache),
  25963. 'string': new Hash
  25964. };
  25965. }
  25966. /**
  25967. * Removes `key` and its value from the map.
  25968. *
  25969. * @private
  25970. * @name delete
  25971. * @memberOf MapCache
  25972. * @param {string} key The key of the value to remove.
  25973. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  25974. */
  25975. function mapCacheDelete(key) {
  25976. var result = getMapData(this, key)['delete'](key);
  25977. this.size -= result ? 1 : 0;
  25978. return result;
  25979. }
  25980. /**
  25981. * Gets the map value for `key`.
  25982. *
  25983. * @private
  25984. * @name get
  25985. * @memberOf MapCache
  25986. * @param {string} key The key of the value to get.
  25987. * @returns {*} Returns the entry value.
  25988. */
  25989. function mapCacheGet(key) {
  25990. return getMapData(this, key).get(key);
  25991. }
  25992. /**
  25993. * Checks if a map value for `key` exists.
  25994. *
  25995. * @private
  25996. * @name has
  25997. * @memberOf MapCache
  25998. * @param {string} key The key of the entry to check.
  25999. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  26000. */
  26001. function mapCacheHas(key) {
  26002. return getMapData(this, key).has(key);
  26003. }
  26004. /**
  26005. * Sets the map `key` to `value`.
  26006. *
  26007. * @private
  26008. * @name set
  26009. * @memberOf MapCache
  26010. * @param {string} key The key of the value to set.
  26011. * @param {*} value The value to set.
  26012. * @returns {Object} Returns the map cache instance.
  26013. */
  26014. function mapCacheSet(key, value) {
  26015. var data = getMapData(this, key),
  26016. size = data.size;
  26017. data.set(key, value);
  26018. this.size += data.size == size ? 0 : 1;
  26019. return this;
  26020. }
  26021. // Add methods to `MapCache`.
  26022. MapCache.prototype.clear = mapCacheClear;
  26023. MapCache.prototype['delete'] = mapCacheDelete;
  26024. MapCache.prototype.get = mapCacheGet;
  26025. MapCache.prototype.has = mapCacheHas;
  26026. MapCache.prototype.set = mapCacheSet;
  26027. /*------------------------------------------------------------------------*/
  26028. /**
  26029. *
  26030. * Creates an array cache object to store unique values.
  26031. *
  26032. * @private
  26033. * @constructor
  26034. * @param {Array} [values] The values to cache.
  26035. */
  26036. function SetCache(values) {
  26037. var index = -1,
  26038. length = values == null ? 0 : values.length;
  26039. this.__data__ = new MapCache;
  26040. while (++index < length) {
  26041. this.add(values[index]);
  26042. }
  26043. }
  26044. /**
  26045. * Adds `value` to the array cache.
  26046. *
  26047. * @private
  26048. * @name add
  26049. * @memberOf SetCache
  26050. * @alias push
  26051. * @param {*} value The value to cache.
  26052. * @returns {Object} Returns the cache instance.
  26053. */
  26054. function setCacheAdd(value) {
  26055. this.__data__.set(value, HASH_UNDEFINED);
  26056. return this;
  26057. }
  26058. /**
  26059. * Checks if `value` is in the array cache.
  26060. *
  26061. * @private
  26062. * @name has
  26063. * @memberOf SetCache
  26064. * @param {*} value The value to search for.
  26065. * @returns {number} Returns `true` if `value` is found, else `false`.
  26066. */
  26067. function setCacheHas(value) {
  26068. return this.__data__.has(value);
  26069. }
  26070. // Add methods to `SetCache`.
  26071. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  26072. SetCache.prototype.has = setCacheHas;
  26073. /*------------------------------------------------------------------------*/
  26074. /**
  26075. * Creates a stack cache object to store key-value pairs.
  26076. *
  26077. * @private
  26078. * @constructor
  26079. * @param {Array} [entries] The key-value pairs to cache.
  26080. */
  26081. function Stack(entries) {
  26082. var data = this.__data__ = new ListCache(entries);
  26083. this.size = data.size;
  26084. }
  26085. /**
  26086. * Removes all key-value entries from the stack.
  26087. *
  26088. * @private
  26089. * @name clear
  26090. * @memberOf Stack
  26091. */
  26092. function stackClear() {
  26093. this.__data__ = new ListCache;
  26094. this.size = 0;
  26095. }
  26096. /**
  26097. * Removes `key` and its value from the stack.
  26098. *
  26099. * @private
  26100. * @name delete
  26101. * @memberOf Stack
  26102. * @param {string} key The key of the value to remove.
  26103. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  26104. */
  26105. function stackDelete(key) {
  26106. var data = this.__data__,
  26107. result = data['delete'](key);
  26108. this.size = data.size;
  26109. return result;
  26110. }
  26111. /**
  26112. * Gets the stack value for `key`.
  26113. *
  26114. * @private
  26115. * @name get
  26116. * @memberOf Stack
  26117. * @param {string} key The key of the value to get.
  26118. * @returns {*} Returns the entry value.
  26119. */
  26120. function stackGet(key) {
  26121. return this.__data__.get(key);
  26122. }
  26123. /**
  26124. * Checks if a stack value for `key` exists.
  26125. *
  26126. * @private
  26127. * @name has
  26128. * @memberOf Stack
  26129. * @param {string} key The key of the entry to check.
  26130. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  26131. */
  26132. function stackHas(key) {
  26133. return this.__data__.has(key);
  26134. }
  26135. /**
  26136. * Sets the stack `key` to `value`.
  26137. *
  26138. * @private
  26139. * @name set
  26140. * @memberOf Stack
  26141. * @param {string} key The key of the value to set.
  26142. * @param {*} value The value to set.
  26143. * @returns {Object} Returns the stack cache instance.
  26144. */
  26145. function stackSet(key, value) {
  26146. var data = this.__data__;
  26147. if (data instanceof ListCache) {
  26148. var pairs = data.__data__;
  26149. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  26150. pairs.push([key, value]);
  26151. this.size = ++data.size;
  26152. return this;
  26153. }
  26154. data = this.__data__ = new MapCache(pairs);
  26155. }
  26156. data.set(key, value);
  26157. this.size = data.size;
  26158. return this;
  26159. }
  26160. // Add methods to `Stack`.
  26161. Stack.prototype.clear = stackClear;
  26162. Stack.prototype['delete'] = stackDelete;
  26163. Stack.prototype.get = stackGet;
  26164. Stack.prototype.has = stackHas;
  26165. Stack.prototype.set = stackSet;
  26166. /*------------------------------------------------------------------------*/
  26167. /**
  26168. * Creates an array of the enumerable property names of the array-like `value`.
  26169. *
  26170. * @private
  26171. * @param {*} value The value to query.
  26172. * @param {boolean} inherited Specify returning inherited property names.
  26173. * @returns {Array} Returns the array of property names.
  26174. */
  26175. function arrayLikeKeys(value, inherited) {
  26176. var isArr = isArray(value),
  26177. isArg = !isArr && isArguments(value),
  26178. isBuff = !isArr && !isArg && isBuffer(value),
  26179. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  26180. skipIndexes = isArr || isArg || isBuff || isType,
  26181. result = skipIndexes ? baseTimes(value.length, String) : [],
  26182. length = result.length;
  26183. for (var key in value) {
  26184. if ((inherited || hasOwnProperty.call(value, key)) &&
  26185. !(skipIndexes && (
  26186. // Safari 9 has enumerable `arguments.length` in strict mode.
  26187. key == 'length' ||
  26188. // Node.js 0.10 has enumerable non-index properties on buffers.
  26189. (isBuff && (key == 'offset' || key == 'parent')) ||
  26190. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  26191. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  26192. // Skip index properties.
  26193. isIndex(key, length)
  26194. ))) {
  26195. result.push(key);
  26196. }
  26197. }
  26198. return result;
  26199. }
  26200. /**
  26201. * A specialized version of `_.sample` for arrays.
  26202. *
  26203. * @private
  26204. * @param {Array} array The array to sample.
  26205. * @returns {*} Returns the random element.
  26206. */
  26207. function arraySample(array) {
  26208. var length = array.length;
  26209. return length ? array[baseRandom(0, length - 1)] : undefined;
  26210. }
  26211. /**
  26212. * A specialized version of `_.sampleSize` for arrays.
  26213. *
  26214. * @private
  26215. * @param {Array} array The array to sample.
  26216. * @param {number} n The number of elements to sample.
  26217. * @returns {Array} Returns the random elements.
  26218. */
  26219. function arraySampleSize(array, n) {
  26220. return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
  26221. }
  26222. /**
  26223. * A specialized version of `_.shuffle` for arrays.
  26224. *
  26225. * @private
  26226. * @param {Array} array The array to shuffle.
  26227. * @returns {Array} Returns the new shuffled array.
  26228. */
  26229. function arrayShuffle(array) {
  26230. return shuffleSelf(copyArray(array));
  26231. }
  26232. /**
  26233. * This function is like `assignValue` except that it doesn't assign
  26234. * `undefined` values.
  26235. *
  26236. * @private
  26237. * @param {Object} object The object to modify.
  26238. * @param {string} key The key of the property to assign.
  26239. * @param {*} value The value to assign.
  26240. */
  26241. function assignMergeValue(object, key, value) {
  26242. if ((value !== undefined && !eq(object[key], value)) ||
  26243. (value === undefined && !(key in object))) {
  26244. baseAssignValue(object, key, value);
  26245. }
  26246. }
  26247. /**
  26248. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  26249. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  26250. * for equality comparisons.
  26251. *
  26252. * @private
  26253. * @param {Object} object The object to modify.
  26254. * @param {string} key The key of the property to assign.
  26255. * @param {*} value The value to assign.
  26256. */
  26257. function assignValue(object, key, value) {
  26258. var objValue = object[key];
  26259. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  26260. (value === undefined && !(key in object))) {
  26261. baseAssignValue(object, key, value);
  26262. }
  26263. }
  26264. /**
  26265. * Gets the index at which the `key` is found in `array` of key-value pairs.
  26266. *
  26267. * @private
  26268. * @param {Array} array The array to inspect.
  26269. * @param {*} key The key to search for.
  26270. * @returns {number} Returns the index of the matched value, else `-1`.
  26271. */
  26272. function assocIndexOf(array, key) {
  26273. var length = array.length;
  26274. while (length--) {
  26275. if (eq(array[length][0], key)) {
  26276. return length;
  26277. }
  26278. }
  26279. return -1;
  26280. }
  26281. /**
  26282. * Aggregates elements of `collection` on `accumulator` with keys transformed
  26283. * by `iteratee` and values set by `setter`.
  26284. *
  26285. * @private
  26286. * @param {Array|Object} collection The collection to iterate over.
  26287. * @param {Function} setter The function to set `accumulator` values.
  26288. * @param {Function} iteratee The iteratee to transform keys.
  26289. * @param {Object} accumulator The initial aggregated object.
  26290. * @returns {Function} Returns `accumulator`.
  26291. */
  26292. function baseAggregator(collection, setter, iteratee, accumulator) {
  26293. baseEach(collection, function(value, key, collection) {
  26294. setter(accumulator, value, iteratee(value), collection);
  26295. });
  26296. return accumulator;
  26297. }
  26298. /**
  26299. * The base implementation of `_.assign` without support for multiple sources
  26300. * or `customizer` functions.
  26301. *
  26302. * @private
  26303. * @param {Object} object The destination object.
  26304. * @param {Object} source The source object.
  26305. * @returns {Object} Returns `object`.
  26306. */
  26307. function baseAssign(object, source) {
  26308. return object && copyObject(source, keys(source), object);
  26309. }
  26310. /**
  26311. * The base implementation of `_.assignIn` without support for multiple sources
  26312. * or `customizer` functions.
  26313. *
  26314. * @private
  26315. * @param {Object} object The destination object.
  26316. * @param {Object} source The source object.
  26317. * @returns {Object} Returns `object`.
  26318. */
  26319. function baseAssignIn(object, source) {
  26320. return object && copyObject(source, keysIn(source), object);
  26321. }
  26322. /**
  26323. * The base implementation of `assignValue` and `assignMergeValue` without
  26324. * value checks.
  26325. *
  26326. * @private
  26327. * @param {Object} object The object to modify.
  26328. * @param {string} key The key of the property to assign.
  26329. * @param {*} value The value to assign.
  26330. */
  26331. function baseAssignValue(object, key, value) {
  26332. if (key == '__proto__' && defineProperty) {
  26333. defineProperty(object, key, {
  26334. 'configurable': true,
  26335. 'enumerable': true,
  26336. 'value': value,
  26337. 'writable': true
  26338. });
  26339. } else {
  26340. object[key] = value;
  26341. }
  26342. }
  26343. /**
  26344. * The base implementation of `_.at` without support for individual paths.
  26345. *
  26346. * @private
  26347. * @param {Object} object The object to iterate over.
  26348. * @param {string[]} paths The property paths to pick.
  26349. * @returns {Array} Returns the picked elements.
  26350. */
  26351. function baseAt(object, paths) {
  26352. var index = -1,
  26353. length = paths.length,
  26354. result = Array(length),
  26355. skip = object == null;
  26356. while (++index < length) {
  26357. result[index] = skip ? undefined : get(object, paths[index]);
  26358. }
  26359. return result;
  26360. }
  26361. /**
  26362. * The base implementation of `_.clamp` which doesn't coerce arguments.
  26363. *
  26364. * @private
  26365. * @param {number} number The number to clamp.
  26366. * @param {number} [lower] The lower bound.
  26367. * @param {number} upper The upper bound.
  26368. * @returns {number} Returns the clamped number.
  26369. */
  26370. function baseClamp(number, lower, upper) {
  26371. if (number === number) {
  26372. if (upper !== undefined) {
  26373. number = number <= upper ? number : upper;
  26374. }
  26375. if (lower !== undefined) {
  26376. number = number >= lower ? number : lower;
  26377. }
  26378. }
  26379. return number;
  26380. }
  26381. /**
  26382. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  26383. * traversed objects.
  26384. *
  26385. * @private
  26386. * @param {*} value The value to clone.
  26387. * @param {boolean} bitmask The bitmask flags.
  26388. * 1 - Deep clone
  26389. * 2 - Flatten inherited properties
  26390. * 4 - Clone symbols
  26391. * @param {Function} [customizer] The function to customize cloning.
  26392. * @param {string} [key] The key of `value`.
  26393. * @param {Object} [object] The parent object of `value`.
  26394. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  26395. * @returns {*} Returns the cloned value.
  26396. */
  26397. function baseClone(value, bitmask, customizer, key, object, stack) {
  26398. var result,
  26399. isDeep = bitmask & CLONE_DEEP_FLAG,
  26400. isFlat = bitmask & CLONE_FLAT_FLAG,
  26401. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  26402. if (customizer) {
  26403. result = object ? customizer(value, key, object, stack) : customizer(value);
  26404. }
  26405. if (result !== undefined) {
  26406. return result;
  26407. }
  26408. if (!isObject(value)) {
  26409. return value;
  26410. }
  26411. var isArr = isArray(value);
  26412. if (isArr) {
  26413. result = initCloneArray(value);
  26414. if (!isDeep) {
  26415. return copyArray(value, result);
  26416. }
  26417. } else {
  26418. var tag = getTag(value),
  26419. isFunc = tag == funcTag || tag == genTag;
  26420. if (isBuffer(value)) {
  26421. return cloneBuffer(value, isDeep);
  26422. }
  26423. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  26424. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  26425. if (!isDeep) {
  26426. return isFlat
  26427. ? copySymbolsIn(value, baseAssignIn(result, value))
  26428. : copySymbols(value, baseAssign(result, value));
  26429. }
  26430. } else {
  26431. if (!cloneableTags[tag]) {
  26432. return object ? value : {};
  26433. }
  26434. result = initCloneByTag(value, tag, isDeep);
  26435. }
  26436. }
  26437. // Check for circular references and return its corresponding clone.
  26438. stack || (stack = new Stack);
  26439. var stacked = stack.get(value);
  26440. if (stacked) {
  26441. return stacked;
  26442. }
  26443. stack.set(value, result);
  26444. if (isSet(value)) {
  26445. value.forEach(function(subValue) {
  26446. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  26447. });
  26448. } else if (isMap(value)) {
  26449. value.forEach(function(subValue, key) {
  26450. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  26451. });
  26452. }
  26453. var keysFunc = isFull
  26454. ? (isFlat ? getAllKeysIn : getAllKeys)
  26455. : (isFlat ? keysIn : keys);
  26456. var props = isArr ? undefined : keysFunc(value);
  26457. arrayEach(props || value, function(subValue, key) {
  26458. if (props) {
  26459. key = subValue;
  26460. subValue = value[key];
  26461. }
  26462. // Recursively populate clone (susceptible to call stack limits).
  26463. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  26464. });
  26465. return result;
  26466. }
  26467. /**
  26468. * The base implementation of `_.conforms` which doesn't clone `source`.
  26469. *
  26470. * @private
  26471. * @param {Object} source The object of property predicates to conform to.
  26472. * @returns {Function} Returns the new spec function.
  26473. */
  26474. function baseConforms(source) {
  26475. var props = keys(source);
  26476. return function(object) {
  26477. return baseConformsTo(object, source, props);
  26478. };
  26479. }
  26480. /**
  26481. * The base implementation of `_.conformsTo` which accepts `props` to check.
  26482. *
  26483. * @private
  26484. * @param {Object} object The object to inspect.
  26485. * @param {Object} source The object of property predicates to conform to.
  26486. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  26487. */
  26488. function baseConformsTo(object, source, props) {
  26489. var length = props.length;
  26490. if (object == null) {
  26491. return !length;
  26492. }
  26493. object = Object(object);
  26494. while (length--) {
  26495. var key = props[length],
  26496. predicate = source[key],
  26497. value = object[key];
  26498. if ((value === undefined && !(key in object)) || !predicate(value)) {
  26499. return false;
  26500. }
  26501. }
  26502. return true;
  26503. }
  26504. /**
  26505. * The base implementation of `_.delay` and `_.defer` which accepts `args`
  26506. * to provide to `func`.
  26507. *
  26508. * @private
  26509. * @param {Function} func The function to delay.
  26510. * @param {number} wait The number of milliseconds to delay invocation.
  26511. * @param {Array} args The arguments to provide to `func`.
  26512. * @returns {number|Object} Returns the timer id or timeout object.
  26513. */
  26514. function baseDelay(func, wait, args) {
  26515. if (typeof func != 'function') {
  26516. throw new TypeError(FUNC_ERROR_TEXT);
  26517. }
  26518. return setTimeout(function() { func.apply(undefined, args); }, wait);
  26519. }
  26520. /**
  26521. * The base implementation of methods like `_.difference` without support
  26522. * for excluding multiple arrays or iteratee shorthands.
  26523. *
  26524. * @private
  26525. * @param {Array} array The array to inspect.
  26526. * @param {Array} values The values to exclude.
  26527. * @param {Function} [iteratee] The iteratee invoked per element.
  26528. * @param {Function} [comparator] The comparator invoked per element.
  26529. * @returns {Array} Returns the new array of filtered values.
  26530. */
  26531. function baseDifference(array, values, iteratee, comparator) {
  26532. var index = -1,
  26533. includes = arrayIncludes,
  26534. isCommon = true,
  26535. length = array.length,
  26536. result = [],
  26537. valuesLength = values.length;
  26538. if (!length) {
  26539. return result;
  26540. }
  26541. if (iteratee) {
  26542. values = arrayMap(values, baseUnary(iteratee));
  26543. }
  26544. if (comparator) {
  26545. includes = arrayIncludesWith;
  26546. isCommon = false;
  26547. }
  26548. else if (values.length >= LARGE_ARRAY_SIZE) {
  26549. includes = cacheHas;
  26550. isCommon = false;
  26551. values = new SetCache(values);
  26552. }
  26553. outer:
  26554. while (++index < length) {
  26555. var value = array[index],
  26556. computed = iteratee == null ? value : iteratee(value);
  26557. value = (comparator || value !== 0) ? value : 0;
  26558. if (isCommon && computed === computed) {
  26559. var valuesIndex = valuesLength;
  26560. while (valuesIndex--) {
  26561. if (values[valuesIndex] === computed) {
  26562. continue outer;
  26563. }
  26564. }
  26565. result.push(value);
  26566. }
  26567. else if (!includes(values, computed, comparator)) {
  26568. result.push(value);
  26569. }
  26570. }
  26571. return result;
  26572. }
  26573. /**
  26574. * The base implementation of `_.forEach` without support for iteratee shorthands.
  26575. *
  26576. * @private
  26577. * @param {Array|Object} collection The collection to iterate over.
  26578. * @param {Function} iteratee The function invoked per iteration.
  26579. * @returns {Array|Object} Returns `collection`.
  26580. */
  26581. var baseEach = createBaseEach(baseForOwn);
  26582. /**
  26583. * The base implementation of `_.forEachRight` without support for iteratee shorthands.
  26584. *
  26585. * @private
  26586. * @param {Array|Object} collection The collection to iterate over.
  26587. * @param {Function} iteratee The function invoked per iteration.
  26588. * @returns {Array|Object} Returns `collection`.
  26589. */
  26590. var baseEachRight = createBaseEach(baseForOwnRight, true);
  26591. /**
  26592. * The base implementation of `_.every` without support for iteratee shorthands.
  26593. *
  26594. * @private
  26595. * @param {Array|Object} collection The collection to iterate over.
  26596. * @param {Function} predicate The function invoked per iteration.
  26597. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  26598. * else `false`
  26599. */
  26600. function baseEvery(collection, predicate) {
  26601. var result = true;
  26602. baseEach(collection, function(value, index, collection) {
  26603. result = !!predicate(value, index, collection);
  26604. return result;
  26605. });
  26606. return result;
  26607. }
  26608. /**
  26609. * The base implementation of methods like `_.max` and `_.min` which accepts a
  26610. * `comparator` to determine the extremum value.
  26611. *
  26612. * @private
  26613. * @param {Array} array The array to iterate over.
  26614. * @param {Function} iteratee The iteratee invoked per iteration.
  26615. * @param {Function} comparator The comparator used to compare values.
  26616. * @returns {*} Returns the extremum value.
  26617. */
  26618. function baseExtremum(array, iteratee, comparator) {
  26619. var index = -1,
  26620. length = array.length;
  26621. while (++index < length) {
  26622. var value = array[index],
  26623. current = iteratee(value);
  26624. if (current != null && (computed === undefined
  26625. ? (current === current && !isSymbol(current))
  26626. : comparator(current, computed)
  26627. )) {
  26628. var computed = current,
  26629. result = value;
  26630. }
  26631. }
  26632. return result;
  26633. }
  26634. /**
  26635. * The base implementation of `_.fill` without an iteratee call guard.
  26636. *
  26637. * @private
  26638. * @param {Array} array The array to fill.
  26639. * @param {*} value The value to fill `array` with.
  26640. * @param {number} [start=0] The start position.
  26641. * @param {number} [end=array.length] The end position.
  26642. * @returns {Array} Returns `array`.
  26643. */
  26644. function baseFill(array, value, start, end) {
  26645. var length = array.length;
  26646. start = toInteger(start);
  26647. if (start < 0) {
  26648. start = -start > length ? 0 : (length + start);
  26649. }
  26650. end = (end === undefined || end > length) ? length : toInteger(end);
  26651. if (end < 0) {
  26652. end += length;
  26653. }
  26654. end = start > end ? 0 : toLength(end);
  26655. while (start < end) {
  26656. array[start++] = value;
  26657. }
  26658. return array;
  26659. }
  26660. /**
  26661. * The base implementation of `_.filter` without support for iteratee shorthands.
  26662. *
  26663. * @private
  26664. * @param {Array|Object} collection The collection to iterate over.
  26665. * @param {Function} predicate The function invoked per iteration.
  26666. * @returns {Array} Returns the new filtered array.
  26667. */
  26668. function baseFilter(collection, predicate) {
  26669. var result = [];
  26670. baseEach(collection, function(value, index, collection) {
  26671. if (predicate(value, index, collection)) {
  26672. result.push(value);
  26673. }
  26674. });
  26675. return result;
  26676. }
  26677. /**
  26678. * The base implementation of `_.flatten` with support for restricting flattening.
  26679. *
  26680. * @private
  26681. * @param {Array} array The array to flatten.
  26682. * @param {number} depth The maximum recursion depth.
  26683. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  26684. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  26685. * @param {Array} [result=[]] The initial result value.
  26686. * @returns {Array} Returns the new flattened array.
  26687. */
  26688. function baseFlatten(array, depth, predicate, isStrict, result) {
  26689. var index = -1,
  26690. length = array.length;
  26691. predicate || (predicate = isFlattenable);
  26692. result || (result = []);
  26693. while (++index < length) {
  26694. var value = array[index];
  26695. if (depth > 0 && predicate(value)) {
  26696. if (depth > 1) {
  26697. // Recursively flatten arrays (susceptible to call stack limits).
  26698. baseFlatten(value, depth - 1, predicate, isStrict, result);
  26699. } else {
  26700. arrayPush(result, value);
  26701. }
  26702. } else if (!isStrict) {
  26703. result[result.length] = value;
  26704. }
  26705. }
  26706. return result;
  26707. }
  26708. /**
  26709. * The base implementation of `baseForOwn` which iterates over `object`
  26710. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  26711. * Iteratee functions may exit iteration early by explicitly returning `false`.
  26712. *
  26713. * @private
  26714. * @param {Object} object The object to iterate over.
  26715. * @param {Function} iteratee The function invoked per iteration.
  26716. * @param {Function} keysFunc The function to get the keys of `object`.
  26717. * @returns {Object} Returns `object`.
  26718. */
  26719. var baseFor = createBaseFor();
  26720. /**
  26721. * This function is like `baseFor` except that it iterates over properties
  26722. * in the opposite order.
  26723. *
  26724. * @private
  26725. * @param {Object} object The object to iterate over.
  26726. * @param {Function} iteratee The function invoked per iteration.
  26727. * @param {Function} keysFunc The function to get the keys of `object`.
  26728. * @returns {Object} Returns `object`.
  26729. */
  26730. var baseForRight = createBaseFor(true);
  26731. /**
  26732. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  26733. *
  26734. * @private
  26735. * @param {Object} object The object to iterate over.
  26736. * @param {Function} iteratee The function invoked per iteration.
  26737. * @returns {Object} Returns `object`.
  26738. */
  26739. function baseForOwn(object, iteratee) {
  26740. return object && baseFor(object, iteratee, keys);
  26741. }
  26742. /**
  26743. * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
  26744. *
  26745. * @private
  26746. * @param {Object} object The object to iterate over.
  26747. * @param {Function} iteratee The function invoked per iteration.
  26748. * @returns {Object} Returns `object`.
  26749. */
  26750. function baseForOwnRight(object, iteratee) {
  26751. return object && baseForRight(object, iteratee, keys);
  26752. }
  26753. /**
  26754. * The base implementation of `_.functions` which creates an array of
  26755. * `object` function property names filtered from `props`.
  26756. *
  26757. * @private
  26758. * @param {Object} object The object to inspect.
  26759. * @param {Array} props The property names to filter.
  26760. * @returns {Array} Returns the function names.
  26761. */
  26762. function baseFunctions(object, props) {
  26763. return arrayFilter(props, function(key) {
  26764. return isFunction(object[key]);
  26765. });
  26766. }
  26767. /**
  26768. * The base implementation of `_.get` without support for default values.
  26769. *
  26770. * @private
  26771. * @param {Object} object The object to query.
  26772. * @param {Array|string} path The path of the property to get.
  26773. * @returns {*} Returns the resolved value.
  26774. */
  26775. function baseGet(object, path) {
  26776. path = castPath(path, object);
  26777. var index = 0,
  26778. length = path.length;
  26779. while (object != null && index < length) {
  26780. object = object[toKey(path[index++])];
  26781. }
  26782. return (index && index == length) ? object : undefined;
  26783. }
  26784. /**
  26785. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  26786. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  26787. * symbols of `object`.
  26788. *
  26789. * @private
  26790. * @param {Object} object The object to query.
  26791. * @param {Function} keysFunc The function to get the keys of `object`.
  26792. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  26793. * @returns {Array} Returns the array of property names and symbols.
  26794. */
  26795. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  26796. var result = keysFunc(object);
  26797. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  26798. }
  26799. /**
  26800. * The base implementation of `getTag` without fallbacks for buggy environments.
  26801. *
  26802. * @private
  26803. * @param {*} value The value to query.
  26804. * @returns {string} Returns the `toStringTag`.
  26805. */
  26806. function baseGetTag(value) {
  26807. if (value == null) {
  26808. return value === undefined ? undefinedTag : nullTag;
  26809. }
  26810. return (symToStringTag && symToStringTag in Object(value))
  26811. ? getRawTag(value)
  26812. : objectToString(value);
  26813. }
  26814. /**
  26815. * The base implementation of `_.gt` which doesn't coerce arguments.
  26816. *
  26817. * @private
  26818. * @param {*} value The value to compare.
  26819. * @param {*} other The other value to compare.
  26820. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  26821. * else `false`.
  26822. */
  26823. function baseGt(value, other) {
  26824. return value > other;
  26825. }
  26826. /**
  26827. * The base implementation of `_.has` without support for deep paths.
  26828. *
  26829. * @private
  26830. * @param {Object} [object] The object to query.
  26831. * @param {Array|string} key The key to check.
  26832. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  26833. */
  26834. function baseHas(object, key) {
  26835. return object != null && hasOwnProperty.call(object, key);
  26836. }
  26837. /**
  26838. * The base implementation of `_.hasIn` without support for deep paths.
  26839. *
  26840. * @private
  26841. * @param {Object} [object] The object to query.
  26842. * @param {Array|string} key The key to check.
  26843. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  26844. */
  26845. function baseHasIn(object, key) {
  26846. return object != null && key in Object(object);
  26847. }
  26848. /**
  26849. * The base implementation of `_.inRange` which doesn't coerce arguments.
  26850. *
  26851. * @private
  26852. * @param {number} number The number to check.
  26853. * @param {number} start The start of the range.
  26854. * @param {number} end The end of the range.
  26855. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  26856. */
  26857. function baseInRange(number, start, end) {
  26858. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  26859. }
  26860. /**
  26861. * The base implementation of methods like `_.intersection`, without support
  26862. * for iteratee shorthands, that accepts an array of arrays to inspect.
  26863. *
  26864. * @private
  26865. * @param {Array} arrays The arrays to inspect.
  26866. * @param {Function} [iteratee] The iteratee invoked per element.
  26867. * @param {Function} [comparator] The comparator invoked per element.
  26868. * @returns {Array} Returns the new array of shared values.
  26869. */
  26870. function baseIntersection(arrays, iteratee, comparator) {
  26871. var includes = comparator ? arrayIncludesWith : arrayIncludes,
  26872. length = arrays[0].length,
  26873. othLength = arrays.length,
  26874. othIndex = othLength,
  26875. caches = Array(othLength),
  26876. maxLength = Infinity,
  26877. result = [];
  26878. while (othIndex--) {
  26879. var array = arrays[othIndex];
  26880. if (othIndex && iteratee) {
  26881. array = arrayMap(array, baseUnary(iteratee));
  26882. }
  26883. maxLength = nativeMin(array.length, maxLength);
  26884. caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
  26885. ? new SetCache(othIndex && array)
  26886. : undefined;
  26887. }
  26888. array = arrays[0];
  26889. var index = -1,
  26890. seen = caches[0];
  26891. outer:
  26892. while (++index < length && result.length < maxLength) {
  26893. var value = array[index],
  26894. computed = iteratee ? iteratee(value) : value;
  26895. value = (comparator || value !== 0) ? value : 0;
  26896. if (!(seen
  26897. ? cacheHas(seen, computed)
  26898. : includes(result, computed, comparator)
  26899. )) {
  26900. othIndex = othLength;
  26901. while (--othIndex) {
  26902. var cache = caches[othIndex];
  26903. if (!(cache
  26904. ? cacheHas(cache, computed)
  26905. : includes(arrays[othIndex], computed, comparator))
  26906. ) {
  26907. continue outer;
  26908. }
  26909. }
  26910. if (seen) {
  26911. seen.push(computed);
  26912. }
  26913. result.push(value);
  26914. }
  26915. }
  26916. return result;
  26917. }
  26918. /**
  26919. * The base implementation of `_.invert` and `_.invertBy` which inverts
  26920. * `object` with values transformed by `iteratee` and set by `setter`.
  26921. *
  26922. * @private
  26923. * @param {Object} object The object to iterate over.
  26924. * @param {Function} setter The function to set `accumulator` values.
  26925. * @param {Function} iteratee The iteratee to transform values.
  26926. * @param {Object} accumulator The initial inverted object.
  26927. * @returns {Function} Returns `accumulator`.
  26928. */
  26929. function baseInverter(object, setter, iteratee, accumulator) {
  26930. baseForOwn(object, function(value, key, object) {
  26931. setter(accumulator, iteratee(value), key, object);
  26932. });
  26933. return accumulator;
  26934. }
  26935. /**
  26936. * The base implementation of `_.invoke` without support for individual
  26937. * method arguments.
  26938. *
  26939. * @private
  26940. * @param {Object} object The object to query.
  26941. * @param {Array|string} path The path of the method to invoke.
  26942. * @param {Array} args The arguments to invoke the method with.
  26943. * @returns {*} Returns the result of the invoked method.
  26944. */
  26945. function baseInvoke(object, path, args) {
  26946. path = castPath(path, object);
  26947. object = parent(object, path);
  26948. var func = object == null ? object : object[toKey(last(path))];
  26949. return func == null ? undefined : apply(func, object, args);
  26950. }
  26951. /**
  26952. * The base implementation of `_.isArguments`.
  26953. *
  26954. * @private
  26955. * @param {*} value The value to check.
  26956. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  26957. */
  26958. function baseIsArguments(value) {
  26959. return isObjectLike(value) && baseGetTag(value) == argsTag;
  26960. }
  26961. /**
  26962. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  26963. *
  26964. * @private
  26965. * @param {*} value The value to check.
  26966. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  26967. */
  26968. function baseIsArrayBuffer(value) {
  26969. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  26970. }
  26971. /**
  26972. * The base implementation of `_.isDate` without Node.js optimizations.
  26973. *
  26974. * @private
  26975. * @param {*} value The value to check.
  26976. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  26977. */
  26978. function baseIsDate(value) {
  26979. return isObjectLike(value) && baseGetTag(value) == dateTag;
  26980. }
  26981. /**
  26982. * The base implementation of `_.isEqual` which supports partial comparisons
  26983. * and tracks traversed objects.
  26984. *
  26985. * @private
  26986. * @param {*} value The value to compare.
  26987. * @param {*} other The other value to compare.
  26988. * @param {boolean} bitmask The bitmask flags.
  26989. * 1 - Unordered comparison
  26990. * 2 - Partial comparison
  26991. * @param {Function} [customizer] The function to customize comparisons.
  26992. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  26993. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26994. */
  26995. function baseIsEqual(value, other, bitmask, customizer, stack) {
  26996. if (value === other) {
  26997. return true;
  26998. }
  26999. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  27000. return value !== value && other !== other;
  27001. }
  27002. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  27003. }
  27004. /**
  27005. * A specialized version of `baseIsEqual` for arrays and objects which performs
  27006. * deep comparisons and tracks traversed objects enabling objects with circular
  27007. * references to be compared.
  27008. *
  27009. * @private
  27010. * @param {Object} object The object to compare.
  27011. * @param {Object} other The other object to compare.
  27012. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  27013. * @param {Function} customizer The function to customize comparisons.
  27014. * @param {Function} equalFunc The function to determine equivalents of values.
  27015. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  27016. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  27017. */
  27018. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  27019. var objIsArr = isArray(object),
  27020. othIsArr = isArray(other),
  27021. objTag = objIsArr ? arrayTag : getTag(object),
  27022. othTag = othIsArr ? arrayTag : getTag(other);
  27023. objTag = objTag == argsTag ? objectTag : objTag;
  27024. othTag = othTag == argsTag ? objectTag : othTag;
  27025. var objIsObj = objTag == objectTag,
  27026. othIsObj = othTag == objectTag,
  27027. isSameTag = objTag == othTag;
  27028. if (isSameTag && isBuffer(object)) {
  27029. if (!isBuffer(other)) {
  27030. return false;
  27031. }
  27032. objIsArr = true;
  27033. objIsObj = false;
  27034. }
  27035. if (isSameTag && !objIsObj) {
  27036. stack || (stack = new Stack);
  27037. return (objIsArr || isTypedArray(object))
  27038. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  27039. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  27040. }
  27041. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  27042. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  27043. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  27044. if (objIsWrapped || othIsWrapped) {
  27045. var objUnwrapped = objIsWrapped ? object.value() : object,
  27046. othUnwrapped = othIsWrapped ? other.value() : other;
  27047. stack || (stack = new Stack);
  27048. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  27049. }
  27050. }
  27051. if (!isSameTag) {
  27052. return false;
  27053. }
  27054. stack || (stack = new Stack);
  27055. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  27056. }
  27057. /**
  27058. * The base implementation of `_.isMap` without Node.js optimizations.
  27059. *
  27060. * @private
  27061. * @param {*} value The value to check.
  27062. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  27063. */
  27064. function baseIsMap(value) {
  27065. return isObjectLike(value) && getTag(value) == mapTag;
  27066. }
  27067. /**
  27068. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  27069. *
  27070. * @private
  27071. * @param {Object} object The object to inspect.
  27072. * @param {Object} source The object of property values to match.
  27073. * @param {Array} matchData The property names, values, and compare flags to match.
  27074. * @param {Function} [customizer] The function to customize comparisons.
  27075. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  27076. */
  27077. function baseIsMatch(object, source, matchData, customizer) {
  27078. var index = matchData.length,
  27079. length = index,
  27080. noCustomizer = !customizer;
  27081. if (object == null) {
  27082. return !length;
  27083. }
  27084. object = Object(object);
  27085. while (index--) {
  27086. var data = matchData[index];
  27087. if ((noCustomizer && data[2])
  27088. ? data[1] !== object[data[0]]
  27089. : !(data[0] in object)
  27090. ) {
  27091. return false;
  27092. }
  27093. }
  27094. while (++index < length) {
  27095. data = matchData[index];
  27096. var key = data[0],
  27097. objValue = object[key],
  27098. srcValue = data[1];
  27099. if (noCustomizer && data[2]) {
  27100. if (objValue === undefined && !(key in object)) {
  27101. return false;
  27102. }
  27103. } else {
  27104. var stack = new Stack;
  27105. if (customizer) {
  27106. var result = customizer(objValue, srcValue, key, object, source, stack);
  27107. }
  27108. if (!(result === undefined
  27109. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  27110. : result
  27111. )) {
  27112. return false;
  27113. }
  27114. }
  27115. }
  27116. return true;
  27117. }
  27118. /**
  27119. * The base implementation of `_.isNative` without bad shim checks.
  27120. *
  27121. * @private
  27122. * @param {*} value The value to check.
  27123. * @returns {boolean} Returns `true` if `value` is a native function,
  27124. * else `false`.
  27125. */
  27126. function baseIsNative(value) {
  27127. if (!isObject(value) || isMasked(value)) {
  27128. return false;
  27129. }
  27130. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  27131. return pattern.test(toSource(value));
  27132. }
  27133. /**
  27134. * The base implementation of `_.isRegExp` without Node.js optimizations.
  27135. *
  27136. * @private
  27137. * @param {*} value The value to check.
  27138. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  27139. */
  27140. function baseIsRegExp(value) {
  27141. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  27142. }
  27143. /**
  27144. * The base implementation of `_.isSet` without Node.js optimizations.
  27145. *
  27146. * @private
  27147. * @param {*} value The value to check.
  27148. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  27149. */
  27150. function baseIsSet(value) {
  27151. return isObjectLike(value) && getTag(value) == setTag;
  27152. }
  27153. /**
  27154. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  27155. *
  27156. * @private
  27157. * @param {*} value The value to check.
  27158. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  27159. */
  27160. function baseIsTypedArray(value) {
  27161. return isObjectLike(value) &&
  27162. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  27163. }
  27164. /**
  27165. * The base implementation of `_.iteratee`.
  27166. *
  27167. * @private
  27168. * @param {*} [value=_.identity] The value to convert to an iteratee.
  27169. * @returns {Function} Returns the iteratee.
  27170. */
  27171. function baseIteratee(value) {
  27172. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  27173. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  27174. if (typeof value == 'function') {
  27175. return value;
  27176. }
  27177. if (value == null) {
  27178. return identity;
  27179. }
  27180. if (typeof value == 'object') {
  27181. return isArray(value)
  27182. ? baseMatchesProperty(value[0], value[1])
  27183. : baseMatches(value);
  27184. }
  27185. return property(value);
  27186. }
  27187. /**
  27188. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  27189. *
  27190. * @private
  27191. * @param {Object} object The object to query.
  27192. * @returns {Array} Returns the array of property names.
  27193. */
  27194. function baseKeys(object) {
  27195. if (!isPrototype(object)) {
  27196. return nativeKeys(object);
  27197. }
  27198. var result = [];
  27199. for (var key in Object(object)) {
  27200. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  27201. result.push(key);
  27202. }
  27203. }
  27204. return result;
  27205. }
  27206. /**
  27207. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  27208. *
  27209. * @private
  27210. * @param {Object} object The object to query.
  27211. * @returns {Array} Returns the array of property names.
  27212. */
  27213. function baseKeysIn(object) {
  27214. if (!isObject(object)) {
  27215. return nativeKeysIn(object);
  27216. }
  27217. var isProto = isPrototype(object),
  27218. result = [];
  27219. for (var key in object) {
  27220. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  27221. result.push(key);
  27222. }
  27223. }
  27224. return result;
  27225. }
  27226. /**
  27227. * The base implementation of `_.lt` which doesn't coerce arguments.
  27228. *
  27229. * @private
  27230. * @param {*} value The value to compare.
  27231. * @param {*} other The other value to compare.
  27232. * @returns {boolean} Returns `true` if `value` is less than `other`,
  27233. * else `false`.
  27234. */
  27235. function baseLt(value, other) {
  27236. return value < other;
  27237. }
  27238. /**
  27239. * The base implementation of `_.map` without support for iteratee shorthands.
  27240. *
  27241. * @private
  27242. * @param {Array|Object} collection The collection to iterate over.
  27243. * @param {Function} iteratee The function invoked per iteration.
  27244. * @returns {Array} Returns the new mapped array.
  27245. */
  27246. function baseMap(collection, iteratee) {
  27247. var index = -1,
  27248. result = isArrayLike(collection) ? Array(collection.length) : [];
  27249. baseEach(collection, function(value, key, collection) {
  27250. result[++index] = iteratee(value, key, collection);
  27251. });
  27252. return result;
  27253. }
  27254. /**
  27255. * The base implementation of `_.matches` which doesn't clone `source`.
  27256. *
  27257. * @private
  27258. * @param {Object} source The object of property values to match.
  27259. * @returns {Function} Returns the new spec function.
  27260. */
  27261. function baseMatches(source) {
  27262. var matchData = getMatchData(source);
  27263. if (matchData.length == 1 && matchData[0][2]) {
  27264. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  27265. }
  27266. return function(object) {
  27267. return object === source || baseIsMatch(object, source, matchData);
  27268. };
  27269. }
  27270. /**
  27271. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  27272. *
  27273. * @private
  27274. * @param {string} path The path of the property to get.
  27275. * @param {*} srcValue The value to match.
  27276. * @returns {Function} Returns the new spec function.
  27277. */
  27278. function baseMatchesProperty(path, srcValue) {
  27279. if (isKey(path) && isStrictComparable(srcValue)) {
  27280. return matchesStrictComparable(toKey(path), srcValue);
  27281. }
  27282. return function(object) {
  27283. var objValue = get(object, path);
  27284. return (objValue === undefined && objValue === srcValue)
  27285. ? hasIn(object, path)
  27286. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  27287. };
  27288. }
  27289. /**
  27290. * The base implementation of `_.merge` without support for multiple sources.
  27291. *
  27292. * @private
  27293. * @param {Object} object The destination object.
  27294. * @param {Object} source The source object.
  27295. * @param {number} srcIndex The index of `source`.
  27296. * @param {Function} [customizer] The function to customize merged values.
  27297. * @param {Object} [stack] Tracks traversed source values and their merged
  27298. * counterparts.
  27299. */
  27300. function baseMerge(object, source, srcIndex, customizer, stack) {
  27301. if (object === source) {
  27302. return;
  27303. }
  27304. baseFor(source, function(srcValue, key) {
  27305. stack || (stack = new Stack);
  27306. if (isObject(srcValue)) {
  27307. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  27308. }
  27309. else {
  27310. var newValue = customizer
  27311. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  27312. : undefined;
  27313. if (newValue === undefined) {
  27314. newValue = srcValue;
  27315. }
  27316. assignMergeValue(object, key, newValue);
  27317. }
  27318. }, keysIn);
  27319. }
  27320. /**
  27321. * A specialized version of `baseMerge` for arrays and objects which performs
  27322. * deep merges and tracks traversed objects enabling objects with circular
  27323. * references to be merged.
  27324. *
  27325. * @private
  27326. * @param {Object} object The destination object.
  27327. * @param {Object} source The source object.
  27328. * @param {string} key The key of the value to merge.
  27329. * @param {number} srcIndex The index of `source`.
  27330. * @param {Function} mergeFunc The function to merge values.
  27331. * @param {Function} [customizer] The function to customize assigned values.
  27332. * @param {Object} [stack] Tracks traversed source values and their merged
  27333. * counterparts.
  27334. */
  27335. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  27336. var objValue = safeGet(object, key),
  27337. srcValue = safeGet(source, key),
  27338. stacked = stack.get(srcValue);
  27339. if (stacked) {
  27340. assignMergeValue(object, key, stacked);
  27341. return;
  27342. }
  27343. var newValue = customizer
  27344. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  27345. : undefined;
  27346. var isCommon = newValue === undefined;
  27347. if (isCommon) {
  27348. var isArr = isArray(srcValue),
  27349. isBuff = !isArr && isBuffer(srcValue),
  27350. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  27351. newValue = srcValue;
  27352. if (isArr || isBuff || isTyped) {
  27353. if (isArray(objValue)) {
  27354. newValue = objValue;
  27355. }
  27356. else if (isArrayLikeObject(objValue)) {
  27357. newValue = copyArray(objValue);
  27358. }
  27359. else if (isBuff) {
  27360. isCommon = false;
  27361. newValue = cloneBuffer(srcValue, true);
  27362. }
  27363. else if (isTyped) {
  27364. isCommon = false;
  27365. newValue = cloneTypedArray(srcValue, true);
  27366. }
  27367. else {
  27368. newValue = [];
  27369. }
  27370. }
  27371. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  27372. newValue = objValue;
  27373. if (isArguments(objValue)) {
  27374. newValue = toPlainObject(objValue);
  27375. }
  27376. else if (!isObject(objValue) || isFunction(objValue)) {
  27377. newValue = initCloneObject(srcValue);
  27378. }
  27379. }
  27380. else {
  27381. isCommon = false;
  27382. }
  27383. }
  27384. if (isCommon) {
  27385. // Recursively merge objects and arrays (susceptible to call stack limits).
  27386. stack.set(srcValue, newValue);
  27387. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  27388. stack['delete'](srcValue);
  27389. }
  27390. assignMergeValue(object, key, newValue);
  27391. }
  27392. /**
  27393. * The base implementation of `_.nth` which doesn't coerce arguments.
  27394. *
  27395. * @private
  27396. * @param {Array} array The array to query.
  27397. * @param {number} n The index of the element to return.
  27398. * @returns {*} Returns the nth element of `array`.
  27399. */
  27400. function baseNth(array, n) {
  27401. var length = array.length;
  27402. if (!length) {
  27403. return;
  27404. }
  27405. n += n < 0 ? length : 0;
  27406. return isIndex(n, length) ? array[n] : undefined;
  27407. }
  27408. /**
  27409. * The base implementation of `_.orderBy` without param guards.
  27410. *
  27411. * @private
  27412. * @param {Array|Object} collection The collection to iterate over.
  27413. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  27414. * @param {string[]} orders The sort orders of `iteratees`.
  27415. * @returns {Array} Returns the new sorted array.
  27416. */
  27417. function baseOrderBy(collection, iteratees, orders) {
  27418. var index = -1;
  27419. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
  27420. var result = baseMap(collection, function(value, key, collection) {
  27421. var criteria = arrayMap(iteratees, function(iteratee) {
  27422. return iteratee(value);
  27423. });
  27424. return { 'criteria': criteria, 'index': ++index, 'value': value };
  27425. });
  27426. return baseSortBy(result, function(object, other) {
  27427. return compareMultiple(object, other, orders);
  27428. });
  27429. }
  27430. /**
  27431. * The base implementation of `_.pick` without support for individual
  27432. * property identifiers.
  27433. *
  27434. * @private
  27435. * @param {Object} object The source object.
  27436. * @param {string[]} paths The property paths to pick.
  27437. * @returns {Object} Returns the new object.
  27438. */
  27439. function basePick(object, paths) {
  27440. return basePickBy(object, paths, function(value, path) {
  27441. return hasIn(object, path);
  27442. });
  27443. }
  27444. /**
  27445. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  27446. *
  27447. * @private
  27448. * @param {Object} object The source object.
  27449. * @param {string[]} paths The property paths to pick.
  27450. * @param {Function} predicate The function invoked per property.
  27451. * @returns {Object} Returns the new object.
  27452. */
  27453. function basePickBy(object, paths, predicate) {
  27454. var index = -1,
  27455. length = paths.length,
  27456. result = {};
  27457. while (++index < length) {
  27458. var path = paths[index],
  27459. value = baseGet(object, path);
  27460. if (predicate(value, path)) {
  27461. baseSet(result, castPath(path, object), value);
  27462. }
  27463. }
  27464. return result;
  27465. }
  27466. /**
  27467. * A specialized version of `baseProperty` which supports deep paths.
  27468. *
  27469. * @private
  27470. * @param {Array|string} path The path of the property to get.
  27471. * @returns {Function} Returns the new accessor function.
  27472. */
  27473. function basePropertyDeep(path) {
  27474. return function(object) {
  27475. return baseGet(object, path);
  27476. };
  27477. }
  27478. /**
  27479. * The base implementation of `_.pullAllBy` without support for iteratee
  27480. * shorthands.
  27481. *
  27482. * @private
  27483. * @param {Array} array The array to modify.
  27484. * @param {Array} values The values to remove.
  27485. * @param {Function} [iteratee] The iteratee invoked per element.
  27486. * @param {Function} [comparator] The comparator invoked per element.
  27487. * @returns {Array} Returns `array`.
  27488. */
  27489. function basePullAll(array, values, iteratee, comparator) {
  27490. var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
  27491. index = -1,
  27492. length = values.length,
  27493. seen = array;
  27494. if (array === values) {
  27495. values = copyArray(values);
  27496. }
  27497. if (iteratee) {
  27498. seen = arrayMap(array, baseUnary(iteratee));
  27499. }
  27500. while (++index < length) {
  27501. var fromIndex = 0,
  27502. value = values[index],
  27503. computed = iteratee ? iteratee(value) : value;
  27504. while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
  27505. if (seen !== array) {
  27506. splice.call(seen, fromIndex, 1);
  27507. }
  27508. splice.call(array, fromIndex, 1);
  27509. }
  27510. }
  27511. return array;
  27512. }
  27513. /**
  27514. * The base implementation of `_.pullAt` without support for individual
  27515. * indexes or capturing the removed elements.
  27516. *
  27517. * @private
  27518. * @param {Array} array The array to modify.
  27519. * @param {number[]} indexes The indexes of elements to remove.
  27520. * @returns {Array} Returns `array`.
  27521. */
  27522. function basePullAt(array, indexes) {
  27523. var length = array ? indexes.length : 0,
  27524. lastIndex = length - 1;
  27525. while (length--) {
  27526. var index = indexes[length];
  27527. if (length == lastIndex || index !== previous) {
  27528. var previous = index;
  27529. if (isIndex(index)) {
  27530. splice.call(array, index, 1);
  27531. } else {
  27532. baseUnset(array, index);
  27533. }
  27534. }
  27535. }
  27536. return array;
  27537. }
  27538. /**
  27539. * The base implementation of `_.random` without support for returning
  27540. * floating-point numbers.
  27541. *
  27542. * @private
  27543. * @param {number} lower The lower bound.
  27544. * @param {number} upper The upper bound.
  27545. * @returns {number} Returns the random number.
  27546. */
  27547. function baseRandom(lower, upper) {
  27548. return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
  27549. }
  27550. /**
  27551. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  27552. * coerce arguments.
  27553. *
  27554. * @private
  27555. * @param {number} start The start of the range.
  27556. * @param {number} end The end of the range.
  27557. * @param {number} step The value to increment or decrement by.
  27558. * @param {boolean} [fromRight] Specify iterating from right to left.
  27559. * @returns {Array} Returns the range of numbers.
  27560. */
  27561. function baseRange(start, end, step, fromRight) {
  27562. var index = -1,
  27563. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  27564. result = Array(length);
  27565. while (length--) {
  27566. result[fromRight ? length : ++index] = start;
  27567. start += step;
  27568. }
  27569. return result;
  27570. }
  27571. /**
  27572. * The base implementation of `_.repeat` which doesn't coerce arguments.
  27573. *
  27574. * @private
  27575. * @param {string} string The string to repeat.
  27576. * @param {number} n The number of times to repeat the string.
  27577. * @returns {string} Returns the repeated string.
  27578. */
  27579. function baseRepeat(string, n) {
  27580. var result = '';
  27581. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  27582. return result;
  27583. }
  27584. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  27585. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  27586. do {
  27587. if (n % 2) {
  27588. result += string;
  27589. }
  27590. n = nativeFloor(n / 2);
  27591. if (n) {
  27592. string += string;
  27593. }
  27594. } while (n);
  27595. return result;
  27596. }
  27597. /**
  27598. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  27599. *
  27600. * @private
  27601. * @param {Function} func The function to apply a rest parameter to.
  27602. * @param {number} [start=func.length-1] The start position of the rest parameter.
  27603. * @returns {Function} Returns the new function.
  27604. */
  27605. function baseRest(func, start) {
  27606. return setToString(overRest(func, start, identity), func + '');
  27607. }
  27608. /**
  27609. * The base implementation of `_.sample`.
  27610. *
  27611. * @private
  27612. * @param {Array|Object} collection The collection to sample.
  27613. * @returns {*} Returns the random element.
  27614. */
  27615. function baseSample(collection) {
  27616. return arraySample(values(collection));
  27617. }
  27618. /**
  27619. * The base implementation of `_.sampleSize` without param guards.
  27620. *
  27621. * @private
  27622. * @param {Array|Object} collection The collection to sample.
  27623. * @param {number} n The number of elements to sample.
  27624. * @returns {Array} Returns the random elements.
  27625. */
  27626. function baseSampleSize(collection, n) {
  27627. var array = values(collection);
  27628. return shuffleSelf(array, baseClamp(n, 0, array.length));
  27629. }
  27630. /**
  27631. * The base implementation of `_.set`.
  27632. *
  27633. * @private
  27634. * @param {Object} object The object to modify.
  27635. * @param {Array|string} path The path of the property to set.
  27636. * @param {*} value The value to set.
  27637. * @param {Function} [customizer] The function to customize path creation.
  27638. * @returns {Object} Returns `object`.
  27639. */
  27640. function baseSet(object, path, value, customizer) {
  27641. if (!isObject(object)) {
  27642. return object;
  27643. }
  27644. path = castPath(path, object);
  27645. var index = -1,
  27646. length = path.length,
  27647. lastIndex = length - 1,
  27648. nested = object;
  27649. while (nested != null && ++index < length) {
  27650. var key = toKey(path[index]),
  27651. newValue = value;
  27652. if (index != lastIndex) {
  27653. var objValue = nested[key];
  27654. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  27655. if (newValue === undefined) {
  27656. newValue = isObject(objValue)
  27657. ? objValue
  27658. : (isIndex(path[index + 1]) ? [] : {});
  27659. }
  27660. }
  27661. assignValue(nested, key, newValue);
  27662. nested = nested[key];
  27663. }
  27664. return object;
  27665. }
  27666. /**
  27667. * The base implementation of `setData` without support for hot loop shorting.
  27668. *
  27669. * @private
  27670. * @param {Function} func The function to associate metadata with.
  27671. * @param {*} data The metadata.
  27672. * @returns {Function} Returns `func`.
  27673. */
  27674. var baseSetData = !metaMap ? identity : function(func, data) {
  27675. metaMap.set(func, data);
  27676. return func;
  27677. };
  27678. /**
  27679. * The base implementation of `setToString` without support for hot loop shorting.
  27680. *
  27681. * @private
  27682. * @param {Function} func The function to modify.
  27683. * @param {Function} string The `toString` result.
  27684. * @returns {Function} Returns `func`.
  27685. */
  27686. var baseSetToString = !defineProperty ? identity : function(func, string) {
  27687. return defineProperty(func, 'toString', {
  27688. 'configurable': true,
  27689. 'enumerable': false,
  27690. 'value': constant(string),
  27691. 'writable': true
  27692. });
  27693. };
  27694. /**
  27695. * The base implementation of `_.shuffle`.
  27696. *
  27697. * @private
  27698. * @param {Array|Object} collection The collection to shuffle.
  27699. * @returns {Array} Returns the new shuffled array.
  27700. */
  27701. function baseShuffle(collection) {
  27702. return shuffleSelf(values(collection));
  27703. }
  27704. /**
  27705. * The base implementation of `_.slice` without an iteratee call guard.
  27706. *
  27707. * @private
  27708. * @param {Array} array The array to slice.
  27709. * @param {number} [start=0] The start position.
  27710. * @param {number} [end=array.length] The end position.
  27711. * @returns {Array} Returns the slice of `array`.
  27712. */
  27713. function baseSlice(array, start, end) {
  27714. var index = -1,
  27715. length = array.length;
  27716. if (start < 0) {
  27717. start = -start > length ? 0 : (length + start);
  27718. }
  27719. end = end > length ? length : end;
  27720. if (end < 0) {
  27721. end += length;
  27722. }
  27723. length = start > end ? 0 : ((end - start) >>> 0);
  27724. start >>>= 0;
  27725. var result = Array(length);
  27726. while (++index < length) {
  27727. result[index] = array[index + start];
  27728. }
  27729. return result;
  27730. }
  27731. /**
  27732. * The base implementation of `_.some` without support for iteratee shorthands.
  27733. *
  27734. * @private
  27735. * @param {Array|Object} collection The collection to iterate over.
  27736. * @param {Function} predicate The function invoked per iteration.
  27737. * @returns {boolean} Returns `true` if any element passes the predicate check,
  27738. * else `false`.
  27739. */
  27740. function baseSome(collection, predicate) {
  27741. var result;
  27742. baseEach(collection, function(value, index, collection) {
  27743. result = predicate(value, index, collection);
  27744. return !result;
  27745. });
  27746. return !!result;
  27747. }
  27748. /**
  27749. * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
  27750. * performs a binary search of `array` to determine the index at which `value`
  27751. * should be inserted into `array` in order to maintain its sort order.
  27752. *
  27753. * @private
  27754. * @param {Array} array The sorted array to inspect.
  27755. * @param {*} value The value to evaluate.
  27756. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  27757. * @returns {number} Returns the index at which `value` should be inserted
  27758. * into `array`.
  27759. */
  27760. function baseSortedIndex(array, value, retHighest) {
  27761. var low = 0,
  27762. high = array == null ? low : array.length;
  27763. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  27764. while (low < high) {
  27765. var mid = (low + high) >>> 1,
  27766. computed = array[mid];
  27767. if (computed !== null && !isSymbol(computed) &&
  27768. (retHighest ? (computed <= value) : (computed < value))) {
  27769. low = mid + 1;
  27770. } else {
  27771. high = mid;
  27772. }
  27773. }
  27774. return high;
  27775. }
  27776. return baseSortedIndexBy(array, value, identity, retHighest);
  27777. }
  27778. /**
  27779. * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
  27780. * which invokes `iteratee` for `value` and each element of `array` to compute
  27781. * their sort ranking. The iteratee is invoked with one argument; (value).
  27782. *
  27783. * @private
  27784. * @param {Array} array The sorted array to inspect.
  27785. * @param {*} value The value to evaluate.
  27786. * @param {Function} iteratee The iteratee invoked per element.
  27787. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  27788. * @returns {number} Returns the index at which `value` should be inserted
  27789. * into `array`.
  27790. */
  27791. function baseSortedIndexBy(array, value, iteratee, retHighest) {
  27792. value = iteratee(value);
  27793. var low = 0,
  27794. high = array == null ? 0 : array.length,
  27795. valIsNaN = value !== value,
  27796. valIsNull = value === null,
  27797. valIsSymbol = isSymbol(value),
  27798. valIsUndefined = value === undefined;
  27799. while (low < high) {
  27800. var mid = nativeFloor((low + high) / 2),
  27801. computed = iteratee(array[mid]),
  27802. othIsDefined = computed !== undefined,
  27803. othIsNull = computed === null,
  27804. othIsReflexive = computed === computed,
  27805. othIsSymbol = isSymbol(computed);
  27806. if (valIsNaN) {
  27807. var setLow = retHighest || othIsReflexive;
  27808. } else if (valIsUndefined) {
  27809. setLow = othIsReflexive && (retHighest || othIsDefined);
  27810. } else if (valIsNull) {
  27811. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  27812. } else if (valIsSymbol) {
  27813. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  27814. } else if (othIsNull || othIsSymbol) {
  27815. setLow = false;
  27816. } else {
  27817. setLow = retHighest ? (computed <= value) : (computed < value);
  27818. }
  27819. if (setLow) {
  27820. low = mid + 1;
  27821. } else {
  27822. high = mid;
  27823. }
  27824. }
  27825. return nativeMin(high, MAX_ARRAY_INDEX);
  27826. }
  27827. /**
  27828. * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
  27829. * support for iteratee shorthands.
  27830. *
  27831. * @private
  27832. * @param {Array} array The array to inspect.
  27833. * @param {Function} [iteratee] The iteratee invoked per element.
  27834. * @returns {Array} Returns the new duplicate free array.
  27835. */
  27836. function baseSortedUniq(array, iteratee) {
  27837. var index = -1,
  27838. length = array.length,
  27839. resIndex = 0,
  27840. result = [];
  27841. while (++index < length) {
  27842. var value = array[index],
  27843. computed = iteratee ? iteratee(value) : value;
  27844. if (!index || !eq(computed, seen)) {
  27845. var seen = computed;
  27846. result[resIndex++] = value === 0 ? 0 : value;
  27847. }
  27848. }
  27849. return result;
  27850. }
  27851. /**
  27852. * The base implementation of `_.toNumber` which doesn't ensure correct
  27853. * conversions of binary, hexadecimal, or octal string values.
  27854. *
  27855. * @private
  27856. * @param {*} value The value to process.
  27857. * @returns {number} Returns the number.
  27858. */
  27859. function baseToNumber(value) {
  27860. if (typeof value == 'number') {
  27861. return value;
  27862. }
  27863. if (isSymbol(value)) {
  27864. return NAN;
  27865. }
  27866. return +value;
  27867. }
  27868. /**
  27869. * The base implementation of `_.toString` which doesn't convert nullish
  27870. * values to empty strings.
  27871. *
  27872. * @private
  27873. * @param {*} value The value to process.
  27874. * @returns {string} Returns the string.
  27875. */
  27876. function baseToString(value) {
  27877. // Exit early for strings to avoid a performance hit in some environments.
  27878. if (typeof value == 'string') {
  27879. return value;
  27880. }
  27881. if (isArray(value)) {
  27882. // Recursively convert values (susceptible to call stack limits).
  27883. return arrayMap(value, baseToString) + '';
  27884. }
  27885. if (isSymbol(value)) {
  27886. return symbolToString ? symbolToString.call(value) : '';
  27887. }
  27888. var result = (value + '');
  27889. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  27890. }
  27891. /**
  27892. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  27893. *
  27894. * @private
  27895. * @param {Array} array The array to inspect.
  27896. * @param {Function} [iteratee] The iteratee invoked per element.
  27897. * @param {Function} [comparator] The comparator invoked per element.
  27898. * @returns {Array} Returns the new duplicate free array.
  27899. */
  27900. function baseUniq(array, iteratee, comparator) {
  27901. var index = -1,
  27902. includes = arrayIncludes,
  27903. length = array.length,
  27904. isCommon = true,
  27905. result = [],
  27906. seen = result;
  27907. if (comparator) {
  27908. isCommon = false;
  27909. includes = arrayIncludesWith;
  27910. }
  27911. else if (length >= LARGE_ARRAY_SIZE) {
  27912. var set = iteratee ? null : createSet(array);
  27913. if (set) {
  27914. return setToArray(set);
  27915. }
  27916. isCommon = false;
  27917. includes = cacheHas;
  27918. seen = new SetCache;
  27919. }
  27920. else {
  27921. seen = iteratee ? [] : result;
  27922. }
  27923. outer:
  27924. while (++index < length) {
  27925. var value = array[index],
  27926. computed = iteratee ? iteratee(value) : value;
  27927. value = (comparator || value !== 0) ? value : 0;
  27928. if (isCommon && computed === computed) {
  27929. var seenIndex = seen.length;
  27930. while (seenIndex--) {
  27931. if (seen[seenIndex] === computed) {
  27932. continue outer;
  27933. }
  27934. }
  27935. if (iteratee) {
  27936. seen.push(computed);
  27937. }
  27938. result.push(value);
  27939. }
  27940. else if (!includes(seen, computed, comparator)) {
  27941. if (seen !== result) {
  27942. seen.push(computed);
  27943. }
  27944. result.push(value);
  27945. }
  27946. }
  27947. return result;
  27948. }
  27949. /**
  27950. * The base implementation of `_.unset`.
  27951. *
  27952. * @private
  27953. * @param {Object} object The object to modify.
  27954. * @param {Array|string} path The property path to unset.
  27955. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  27956. */
  27957. function baseUnset(object, path) {
  27958. path = castPath(path, object);
  27959. object = parent(object, path);
  27960. return object == null || delete object[toKey(last(path))];
  27961. }
  27962. /**
  27963. * The base implementation of `_.update`.
  27964. *
  27965. * @private
  27966. * @param {Object} object The object to modify.
  27967. * @param {Array|string} path The path of the property to update.
  27968. * @param {Function} updater The function to produce the updated value.
  27969. * @param {Function} [customizer] The function to customize path creation.
  27970. * @returns {Object} Returns `object`.
  27971. */
  27972. function baseUpdate(object, path, updater, customizer) {
  27973. return baseSet(object, path, updater(baseGet(object, path)), customizer);
  27974. }
  27975. /**
  27976. * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
  27977. * without support for iteratee shorthands.
  27978. *
  27979. * @private
  27980. * @param {Array} array The array to query.
  27981. * @param {Function} predicate The function invoked per iteration.
  27982. * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
  27983. * @param {boolean} [fromRight] Specify iterating from right to left.
  27984. * @returns {Array} Returns the slice of `array`.
  27985. */
  27986. function baseWhile(array, predicate, isDrop, fromRight) {
  27987. var length = array.length,
  27988. index = fromRight ? length : -1;
  27989. while ((fromRight ? index-- : ++index < length) &&
  27990. predicate(array[index], index, array)) {}
  27991. return isDrop
  27992. ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
  27993. : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
  27994. }
  27995. /**
  27996. * The base implementation of `wrapperValue` which returns the result of
  27997. * performing a sequence of actions on the unwrapped `value`, where each
  27998. * successive action is supplied the return value of the previous.
  27999. *
  28000. * @private
  28001. * @param {*} value The unwrapped value.
  28002. * @param {Array} actions Actions to perform to resolve the unwrapped value.
  28003. * @returns {*} Returns the resolved value.
  28004. */
  28005. function baseWrapperValue(value, actions) {
  28006. var result = value;
  28007. if (result instanceof LazyWrapper) {
  28008. result = result.value();
  28009. }
  28010. return arrayReduce(actions, function(result, action) {
  28011. return action.func.apply(action.thisArg, arrayPush([result], action.args));
  28012. }, result);
  28013. }
  28014. /**
  28015. * The base implementation of methods like `_.xor`, without support for
  28016. * iteratee shorthands, that accepts an array of arrays to inspect.
  28017. *
  28018. * @private
  28019. * @param {Array} arrays The arrays to inspect.
  28020. * @param {Function} [iteratee] The iteratee invoked per element.
  28021. * @param {Function} [comparator] The comparator invoked per element.
  28022. * @returns {Array} Returns the new array of values.
  28023. */
  28024. function baseXor(arrays, iteratee, comparator) {
  28025. var length = arrays.length;
  28026. if (length < 2) {
  28027. return length ? baseUniq(arrays[0]) : [];
  28028. }
  28029. var index = -1,
  28030. result = Array(length);
  28031. while (++index < length) {
  28032. var array = arrays[index],
  28033. othIndex = -1;
  28034. while (++othIndex < length) {
  28035. if (othIndex != index) {
  28036. result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
  28037. }
  28038. }
  28039. }
  28040. return baseUniq(baseFlatten(result, 1), iteratee, comparator);
  28041. }
  28042. /**
  28043. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  28044. *
  28045. * @private
  28046. * @param {Array} props The property identifiers.
  28047. * @param {Array} values The property values.
  28048. * @param {Function} assignFunc The function to assign values.
  28049. * @returns {Object} Returns the new object.
  28050. */
  28051. function baseZipObject(props, values, assignFunc) {
  28052. var index = -1,
  28053. length = props.length,
  28054. valsLength = values.length,
  28055. result = {};
  28056. while (++index < length) {
  28057. var value = index < valsLength ? values[index] : undefined;
  28058. assignFunc(result, props[index], value);
  28059. }
  28060. return result;
  28061. }
  28062. /**
  28063. * Casts `value` to an empty array if it's not an array like object.
  28064. *
  28065. * @private
  28066. * @param {*} value The value to inspect.
  28067. * @returns {Array|Object} Returns the cast array-like object.
  28068. */
  28069. function castArrayLikeObject(value) {
  28070. return isArrayLikeObject(value) ? value : [];
  28071. }
  28072. /**
  28073. * Casts `value` to `identity` if it's not a function.
  28074. *
  28075. * @private
  28076. * @param {*} value The value to inspect.
  28077. * @returns {Function} Returns cast function.
  28078. */
  28079. function castFunction(value) {
  28080. return typeof value == 'function' ? value : identity;
  28081. }
  28082. /**
  28083. * Casts `value` to a path array if it's not one.
  28084. *
  28085. * @private
  28086. * @param {*} value The value to inspect.
  28087. * @param {Object} [object] The object to query keys on.
  28088. * @returns {Array} Returns the cast property path array.
  28089. */
  28090. function castPath(value, object) {
  28091. if (isArray(value)) {
  28092. return value;
  28093. }
  28094. return isKey(value, object) ? [value] : stringToPath(toString(value));
  28095. }
  28096. /**
  28097. * A `baseRest` alias which can be replaced with `identity` by module
  28098. * replacement plugins.
  28099. *
  28100. * @private
  28101. * @type {Function}
  28102. * @param {Function} func The function to apply a rest parameter to.
  28103. * @returns {Function} Returns the new function.
  28104. */
  28105. var castRest = baseRest;
  28106. /**
  28107. * Casts `array` to a slice if it's needed.
  28108. *
  28109. * @private
  28110. * @param {Array} array The array to inspect.
  28111. * @param {number} start The start position.
  28112. * @param {number} [end=array.length] The end position.
  28113. * @returns {Array} Returns the cast slice.
  28114. */
  28115. function castSlice(array, start, end) {
  28116. var length = array.length;
  28117. end = end === undefined ? length : end;
  28118. return (!start && end >= length) ? array : baseSlice(array, start, end);
  28119. }
  28120. /**
  28121. * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
  28122. *
  28123. * @private
  28124. * @param {number|Object} id The timer id or timeout object of the timer to clear.
  28125. */
  28126. var clearTimeout = ctxClearTimeout || function(id) {
  28127. return root.clearTimeout(id);
  28128. };
  28129. /**
  28130. * Creates a clone of `buffer`.
  28131. *
  28132. * @private
  28133. * @param {Buffer} buffer The buffer to clone.
  28134. * @param {boolean} [isDeep] Specify a deep clone.
  28135. * @returns {Buffer} Returns the cloned buffer.
  28136. */
  28137. function cloneBuffer(buffer, isDeep) {
  28138. if (isDeep) {
  28139. return buffer.slice();
  28140. }
  28141. var length = buffer.length,
  28142. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  28143. buffer.copy(result);
  28144. return result;
  28145. }
  28146. /**
  28147. * Creates a clone of `arrayBuffer`.
  28148. *
  28149. * @private
  28150. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  28151. * @returns {ArrayBuffer} Returns the cloned array buffer.
  28152. */
  28153. function cloneArrayBuffer(arrayBuffer) {
  28154. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  28155. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  28156. return result;
  28157. }
  28158. /**
  28159. * Creates a clone of `dataView`.
  28160. *
  28161. * @private
  28162. * @param {Object} dataView The data view to clone.
  28163. * @param {boolean} [isDeep] Specify a deep clone.
  28164. * @returns {Object} Returns the cloned data view.
  28165. */
  28166. function cloneDataView(dataView, isDeep) {
  28167. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  28168. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  28169. }
  28170. /**
  28171. * Creates a clone of `regexp`.
  28172. *
  28173. * @private
  28174. * @param {Object} regexp The regexp to clone.
  28175. * @returns {Object} Returns the cloned regexp.
  28176. */
  28177. function cloneRegExp(regexp) {
  28178. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  28179. result.lastIndex = regexp.lastIndex;
  28180. return result;
  28181. }
  28182. /**
  28183. * Creates a clone of the `symbol` object.
  28184. *
  28185. * @private
  28186. * @param {Object} symbol The symbol object to clone.
  28187. * @returns {Object} Returns the cloned symbol object.
  28188. */
  28189. function cloneSymbol(symbol) {
  28190. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  28191. }
  28192. /**
  28193. * Creates a clone of `typedArray`.
  28194. *
  28195. * @private
  28196. * @param {Object} typedArray The typed array to clone.
  28197. * @param {boolean} [isDeep] Specify a deep clone.
  28198. * @returns {Object} Returns the cloned typed array.
  28199. */
  28200. function cloneTypedArray(typedArray, isDeep) {
  28201. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  28202. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  28203. }
  28204. /**
  28205. * Compares values to sort them in ascending order.
  28206. *
  28207. * @private
  28208. * @param {*} value The value to compare.
  28209. * @param {*} other The other value to compare.
  28210. * @returns {number} Returns the sort order indicator for `value`.
  28211. */
  28212. function compareAscending(value, other) {
  28213. if (value !== other) {
  28214. var valIsDefined = value !== undefined,
  28215. valIsNull = value === null,
  28216. valIsReflexive = value === value,
  28217. valIsSymbol = isSymbol(value);
  28218. var othIsDefined = other !== undefined,
  28219. othIsNull = other === null,
  28220. othIsReflexive = other === other,
  28221. othIsSymbol = isSymbol(other);
  28222. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  28223. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  28224. (valIsNull && othIsDefined && othIsReflexive) ||
  28225. (!valIsDefined && othIsReflexive) ||
  28226. !valIsReflexive) {
  28227. return 1;
  28228. }
  28229. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  28230. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  28231. (othIsNull && valIsDefined && valIsReflexive) ||
  28232. (!othIsDefined && valIsReflexive) ||
  28233. !othIsReflexive) {
  28234. return -1;
  28235. }
  28236. }
  28237. return 0;
  28238. }
  28239. /**
  28240. * Used by `_.orderBy` to compare multiple properties of a value to another
  28241. * and stable sort them.
  28242. *
  28243. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  28244. * specify an order of "desc" for descending or "asc" for ascending sort order
  28245. * of corresponding values.
  28246. *
  28247. * @private
  28248. * @param {Object} object The object to compare.
  28249. * @param {Object} other The other object to compare.
  28250. * @param {boolean[]|string[]} orders The order to sort by for each property.
  28251. * @returns {number} Returns the sort order indicator for `object`.
  28252. */
  28253. function compareMultiple(object, other, orders) {
  28254. var index = -1,
  28255. objCriteria = object.criteria,
  28256. othCriteria = other.criteria,
  28257. length = objCriteria.length,
  28258. ordersLength = orders.length;
  28259. while (++index < length) {
  28260. var result = compareAscending(objCriteria[index], othCriteria[index]);
  28261. if (result) {
  28262. if (index >= ordersLength) {
  28263. return result;
  28264. }
  28265. var order = orders[index];
  28266. return result * (order == 'desc' ? -1 : 1);
  28267. }
  28268. }
  28269. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  28270. // that causes it, under certain circumstances, to provide the same value for
  28271. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  28272. // for more details.
  28273. //
  28274. // This also ensures a stable sort in V8 and other engines.
  28275. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  28276. return object.index - other.index;
  28277. }
  28278. /**
  28279. * Creates an array that is the composition of partially applied arguments,
  28280. * placeholders, and provided arguments into a single array of arguments.
  28281. *
  28282. * @private
  28283. * @param {Array} args The provided arguments.
  28284. * @param {Array} partials The arguments to prepend to those provided.
  28285. * @param {Array} holders The `partials` placeholder indexes.
  28286. * @params {boolean} [isCurried] Specify composing for a curried function.
  28287. * @returns {Array} Returns the new array of composed arguments.
  28288. */
  28289. function composeArgs(args, partials, holders, isCurried) {
  28290. var argsIndex = -1,
  28291. argsLength = args.length,
  28292. holdersLength = holders.length,
  28293. leftIndex = -1,
  28294. leftLength = partials.length,
  28295. rangeLength = nativeMax(argsLength - holdersLength, 0),
  28296. result = Array(leftLength + rangeLength),
  28297. isUncurried = !isCurried;
  28298. while (++leftIndex < leftLength) {
  28299. result[leftIndex] = partials[leftIndex];
  28300. }
  28301. while (++argsIndex < holdersLength) {
  28302. if (isUncurried || argsIndex < argsLength) {
  28303. result[holders[argsIndex]] = args[argsIndex];
  28304. }
  28305. }
  28306. while (rangeLength--) {
  28307. result[leftIndex++] = args[argsIndex++];
  28308. }
  28309. return result;
  28310. }
  28311. /**
  28312. * This function is like `composeArgs` except that the arguments composition
  28313. * is tailored for `_.partialRight`.
  28314. *
  28315. * @private
  28316. * @param {Array} args The provided arguments.
  28317. * @param {Array} partials The arguments to append to those provided.
  28318. * @param {Array} holders The `partials` placeholder indexes.
  28319. * @params {boolean} [isCurried] Specify composing for a curried function.
  28320. * @returns {Array} Returns the new array of composed arguments.
  28321. */
  28322. function composeArgsRight(args, partials, holders, isCurried) {
  28323. var argsIndex = -1,
  28324. argsLength = args.length,
  28325. holdersIndex = -1,
  28326. holdersLength = holders.length,
  28327. rightIndex = -1,
  28328. rightLength = partials.length,
  28329. rangeLength = nativeMax(argsLength - holdersLength, 0),
  28330. result = Array(rangeLength + rightLength),
  28331. isUncurried = !isCurried;
  28332. while (++argsIndex < rangeLength) {
  28333. result[argsIndex] = args[argsIndex];
  28334. }
  28335. var offset = argsIndex;
  28336. while (++rightIndex < rightLength) {
  28337. result[offset + rightIndex] = partials[rightIndex];
  28338. }
  28339. while (++holdersIndex < holdersLength) {
  28340. if (isUncurried || argsIndex < argsLength) {
  28341. result[offset + holders[holdersIndex]] = args[argsIndex++];
  28342. }
  28343. }
  28344. return result;
  28345. }
  28346. /**
  28347. * Copies the values of `source` to `array`.
  28348. *
  28349. * @private
  28350. * @param {Array} source The array to copy values from.
  28351. * @param {Array} [array=[]] The array to copy values to.
  28352. * @returns {Array} Returns `array`.
  28353. */
  28354. function copyArray(source, array) {
  28355. var index = -1,
  28356. length = source.length;
  28357. array || (array = Array(length));
  28358. while (++index < length) {
  28359. array[index] = source[index];
  28360. }
  28361. return array;
  28362. }
  28363. /**
  28364. * Copies properties of `source` to `object`.
  28365. *
  28366. * @private
  28367. * @param {Object} source The object to copy properties from.
  28368. * @param {Array} props The property identifiers to copy.
  28369. * @param {Object} [object={}] The object to copy properties to.
  28370. * @param {Function} [customizer] The function to customize copied values.
  28371. * @returns {Object} Returns `object`.
  28372. */
  28373. function copyObject(source, props, object, customizer) {
  28374. var isNew = !object;
  28375. object || (object = {});
  28376. var index = -1,
  28377. length = props.length;
  28378. while (++index < length) {
  28379. var key = props[index];
  28380. var newValue = customizer
  28381. ? customizer(object[key], source[key], key, object, source)
  28382. : undefined;
  28383. if (newValue === undefined) {
  28384. newValue = source[key];
  28385. }
  28386. if (isNew) {
  28387. baseAssignValue(object, key, newValue);
  28388. } else {
  28389. assignValue(object, key, newValue);
  28390. }
  28391. }
  28392. return object;
  28393. }
  28394. /**
  28395. * Copies own symbols of `source` to `object`.
  28396. *
  28397. * @private
  28398. * @param {Object} source The object to copy symbols from.
  28399. * @param {Object} [object={}] The object to copy symbols to.
  28400. * @returns {Object} Returns `object`.
  28401. */
  28402. function copySymbols(source, object) {
  28403. return copyObject(source, getSymbols(source), object);
  28404. }
  28405. /**
  28406. * Copies own and inherited symbols of `source` to `object`.
  28407. *
  28408. * @private
  28409. * @param {Object} source The object to copy symbols from.
  28410. * @param {Object} [object={}] The object to copy symbols to.
  28411. * @returns {Object} Returns `object`.
  28412. */
  28413. function copySymbolsIn(source, object) {
  28414. return copyObject(source, getSymbolsIn(source), object);
  28415. }
  28416. /**
  28417. * Creates a function like `_.groupBy`.
  28418. *
  28419. * @private
  28420. * @param {Function} setter The function to set accumulator values.
  28421. * @param {Function} [initializer] The accumulator object initializer.
  28422. * @returns {Function} Returns the new aggregator function.
  28423. */
  28424. function createAggregator(setter, initializer) {
  28425. return function(collection, iteratee) {
  28426. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  28427. accumulator = initializer ? initializer() : {};
  28428. return func(collection, setter, getIteratee(iteratee, 2), accumulator);
  28429. };
  28430. }
  28431. /**
  28432. * Creates a function like `_.assign`.
  28433. *
  28434. * @private
  28435. * @param {Function} assigner The function to assign values.
  28436. * @returns {Function} Returns the new assigner function.
  28437. */
  28438. function createAssigner(assigner) {
  28439. return baseRest(function(object, sources) {
  28440. var index = -1,
  28441. length = sources.length,
  28442. customizer = length > 1 ? sources[length - 1] : undefined,
  28443. guard = length > 2 ? sources[2] : undefined;
  28444. customizer = (assigner.length > 3 && typeof customizer == 'function')
  28445. ? (length--, customizer)
  28446. : undefined;
  28447. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  28448. customizer = length < 3 ? undefined : customizer;
  28449. length = 1;
  28450. }
  28451. object = Object(object);
  28452. while (++index < length) {
  28453. var source = sources[index];
  28454. if (source) {
  28455. assigner(object, source, index, customizer);
  28456. }
  28457. }
  28458. return object;
  28459. });
  28460. }
  28461. /**
  28462. * Creates a `baseEach` or `baseEachRight` function.
  28463. *
  28464. * @private
  28465. * @param {Function} eachFunc The function to iterate over a collection.
  28466. * @param {boolean} [fromRight] Specify iterating from right to left.
  28467. * @returns {Function} Returns the new base function.
  28468. */
  28469. function createBaseEach(eachFunc, fromRight) {
  28470. return function(collection, iteratee) {
  28471. if (collection == null) {
  28472. return collection;
  28473. }
  28474. if (!isArrayLike(collection)) {
  28475. return eachFunc(collection, iteratee);
  28476. }
  28477. var length = collection.length,
  28478. index = fromRight ? length : -1,
  28479. iterable = Object(collection);
  28480. while ((fromRight ? index-- : ++index < length)) {
  28481. if (iteratee(iterable[index], index, iterable) === false) {
  28482. break;
  28483. }
  28484. }
  28485. return collection;
  28486. };
  28487. }
  28488. /**
  28489. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  28490. *
  28491. * @private
  28492. * @param {boolean} [fromRight] Specify iterating from right to left.
  28493. * @returns {Function} Returns the new base function.
  28494. */
  28495. function createBaseFor(fromRight) {
  28496. return function(object, iteratee, keysFunc) {
  28497. var index = -1,
  28498. iterable = Object(object),
  28499. props = keysFunc(object),
  28500. length = props.length;
  28501. while (length--) {
  28502. var key = props[fromRight ? length : ++index];
  28503. if (iteratee(iterable[key], key, iterable) === false) {
  28504. break;
  28505. }
  28506. }
  28507. return object;
  28508. };
  28509. }
  28510. /**
  28511. * Creates a function that wraps `func` to invoke it with the optional `this`
  28512. * binding of `thisArg`.
  28513. *
  28514. * @private
  28515. * @param {Function} func The function to wrap.
  28516. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  28517. * @param {*} [thisArg] The `this` binding of `func`.
  28518. * @returns {Function} Returns the new wrapped function.
  28519. */
  28520. function createBind(func, bitmask, thisArg) {
  28521. var isBind = bitmask & WRAP_BIND_FLAG,
  28522. Ctor = createCtor(func);
  28523. function wrapper() {
  28524. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  28525. return fn.apply(isBind ? thisArg : this, arguments);
  28526. }
  28527. return wrapper;
  28528. }
  28529. /**
  28530. * Creates a function like `_.lowerFirst`.
  28531. *
  28532. * @private
  28533. * @param {string} methodName The name of the `String` case method to use.
  28534. * @returns {Function} Returns the new case function.
  28535. */
  28536. function createCaseFirst(methodName) {
  28537. return function(string) {
  28538. string = toString(string);
  28539. var strSymbols = hasUnicode(string)
  28540. ? stringToArray(string)
  28541. : undefined;
  28542. var chr = strSymbols
  28543. ? strSymbols[0]
  28544. : string.charAt(0);
  28545. var trailing = strSymbols
  28546. ? castSlice(strSymbols, 1).join('')
  28547. : string.slice(1);
  28548. return chr[methodName]() + trailing;
  28549. };
  28550. }
  28551. /**
  28552. * Creates a function like `_.camelCase`.
  28553. *
  28554. * @private
  28555. * @param {Function} callback The function to combine each word.
  28556. * @returns {Function} Returns the new compounder function.
  28557. */
  28558. function createCompounder(callback) {
  28559. return function(string) {
  28560. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  28561. };
  28562. }
  28563. /**
  28564. * Creates a function that produces an instance of `Ctor` regardless of
  28565. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  28566. *
  28567. * @private
  28568. * @param {Function} Ctor The constructor to wrap.
  28569. * @returns {Function} Returns the new wrapped function.
  28570. */
  28571. function createCtor(Ctor) {
  28572. return function() {
  28573. // Use a `switch` statement to work with class constructors. See
  28574. // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
  28575. // for more details.
  28576. var args = arguments;
  28577. switch (args.length) {
  28578. case 0: return new Ctor;
  28579. case 1: return new Ctor(args[0]);
  28580. case 2: return new Ctor(args[0], args[1]);
  28581. case 3: return new Ctor(args[0], args[1], args[2]);
  28582. case 4: return new Ctor(args[0], args[1], args[2], args[3]);
  28583. case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  28584. case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  28585. case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  28586. }
  28587. var thisBinding = baseCreate(Ctor.prototype),
  28588. result = Ctor.apply(thisBinding, args);
  28589. // Mimic the constructor's `return` behavior.
  28590. // See https://es5.github.io/#x13.2.2 for more details.
  28591. return isObject(result) ? result : thisBinding;
  28592. };
  28593. }
  28594. /**
  28595. * Creates a function that wraps `func` to enable currying.
  28596. *
  28597. * @private
  28598. * @param {Function} func The function to wrap.
  28599. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  28600. * @param {number} arity The arity of `func`.
  28601. * @returns {Function} Returns the new wrapped function.
  28602. */
  28603. function createCurry(func, bitmask, arity) {
  28604. var Ctor = createCtor(func);
  28605. function wrapper() {
  28606. var length = arguments.length,
  28607. args = Array(length),
  28608. index = length,
  28609. placeholder = getHolder(wrapper);
  28610. while (index--) {
  28611. args[index] = arguments[index];
  28612. }
  28613. var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
  28614. ? []
  28615. : replaceHolders(args, placeholder);
  28616. length -= holders.length;
  28617. if (length < arity) {
  28618. return createRecurry(
  28619. func, bitmask, createHybrid, wrapper.placeholder, undefined,
  28620. args, holders, undefined, undefined, arity - length);
  28621. }
  28622. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  28623. return apply(fn, this, args);
  28624. }
  28625. return wrapper;
  28626. }
  28627. /**
  28628. * Creates a `_.find` or `_.findLast` function.
  28629. *
  28630. * @private
  28631. * @param {Function} findIndexFunc The function to find the collection index.
  28632. * @returns {Function} Returns the new find function.
  28633. */
  28634. function createFind(findIndexFunc) {
  28635. return function(collection, predicate, fromIndex) {
  28636. var iterable = Object(collection);
  28637. if (!isArrayLike(collection)) {
  28638. var iteratee = getIteratee(predicate, 3);
  28639. collection = keys(collection);
  28640. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  28641. }
  28642. var index = findIndexFunc(collection, predicate, fromIndex);
  28643. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  28644. };
  28645. }
  28646. /**
  28647. * Creates a `_.flow` or `_.flowRight` function.
  28648. *
  28649. * @private
  28650. * @param {boolean} [fromRight] Specify iterating from right to left.
  28651. * @returns {Function} Returns the new flow function.
  28652. */
  28653. function createFlow(fromRight) {
  28654. return flatRest(function(funcs) {
  28655. var length = funcs.length,
  28656. index = length,
  28657. prereq = LodashWrapper.prototype.thru;
  28658. if (fromRight) {
  28659. funcs.reverse();
  28660. }
  28661. while (index--) {
  28662. var func = funcs[index];
  28663. if (typeof func != 'function') {
  28664. throw new TypeError(FUNC_ERROR_TEXT);
  28665. }
  28666. if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
  28667. var wrapper = new LodashWrapper([], true);
  28668. }
  28669. }
  28670. index = wrapper ? index : length;
  28671. while (++index < length) {
  28672. func = funcs[index];
  28673. var funcName = getFuncName(func),
  28674. data = funcName == 'wrapper' ? getData(func) : undefined;
  28675. if (data && isLaziable(data[0]) &&
  28676. data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
  28677. !data[4].length && data[9] == 1
  28678. ) {
  28679. wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
  28680. } else {
  28681. wrapper = (func.length == 1 && isLaziable(func))
  28682. ? wrapper[funcName]()
  28683. : wrapper.thru(func);
  28684. }
  28685. }
  28686. return function() {
  28687. var args = arguments,
  28688. value = args[0];
  28689. if (wrapper && args.length == 1 && isArray(value)) {
  28690. return wrapper.plant(value).value();
  28691. }
  28692. var index = 0,
  28693. result = length ? funcs[index].apply(this, args) : value;
  28694. while (++index < length) {
  28695. result = funcs[index].call(this, result);
  28696. }
  28697. return result;
  28698. };
  28699. });
  28700. }
  28701. /**
  28702. * Creates a function that wraps `func` to invoke it with optional `this`
  28703. * binding of `thisArg`, partial application, and currying.
  28704. *
  28705. * @private
  28706. * @param {Function|string} func The function or method name to wrap.
  28707. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  28708. * @param {*} [thisArg] The `this` binding of `func`.
  28709. * @param {Array} [partials] The arguments to prepend to those provided to
  28710. * the new function.
  28711. * @param {Array} [holders] The `partials` placeholder indexes.
  28712. * @param {Array} [partialsRight] The arguments to append to those provided
  28713. * to the new function.
  28714. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  28715. * @param {Array} [argPos] The argument positions of the new function.
  28716. * @param {number} [ary] The arity cap of `func`.
  28717. * @param {number} [arity] The arity of `func`.
  28718. * @returns {Function} Returns the new wrapped function.
  28719. */
  28720. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  28721. var isAry = bitmask & WRAP_ARY_FLAG,
  28722. isBind = bitmask & WRAP_BIND_FLAG,
  28723. isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
  28724. isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
  28725. isFlip = bitmask & WRAP_FLIP_FLAG,
  28726. Ctor = isBindKey ? undefined : createCtor(func);
  28727. function wrapper() {
  28728. var length = arguments.length,
  28729. args = Array(length),
  28730. index = length;
  28731. while (index--) {
  28732. args[index] = arguments[index];
  28733. }
  28734. if (isCurried) {
  28735. var placeholder = getHolder(wrapper),
  28736. holdersCount = countHolders(args, placeholder);
  28737. }
  28738. if (partials) {
  28739. args = composeArgs(args, partials, holders, isCurried);
  28740. }
  28741. if (partialsRight) {
  28742. args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
  28743. }
  28744. length -= holdersCount;
  28745. if (isCurried && length < arity) {
  28746. var newHolders = replaceHolders(args, placeholder);
  28747. return createRecurry(
  28748. func, bitmask, createHybrid, wrapper.placeholder, thisArg,
  28749. args, newHolders, argPos, ary, arity - length
  28750. );
  28751. }
  28752. var thisBinding = isBind ? thisArg : this,
  28753. fn = isBindKey ? thisBinding[func] : func;
  28754. length = args.length;
  28755. if (argPos) {
  28756. args = reorder(args, argPos);
  28757. } else if (isFlip && length > 1) {
  28758. args.reverse();
  28759. }
  28760. if (isAry && ary < length) {
  28761. args.length = ary;
  28762. }
  28763. if (this && this !== root && this instanceof wrapper) {
  28764. fn = Ctor || createCtor(fn);
  28765. }
  28766. return fn.apply(thisBinding, args);
  28767. }
  28768. return wrapper;
  28769. }
  28770. /**
  28771. * Creates a function like `_.invertBy`.
  28772. *
  28773. * @private
  28774. * @param {Function} setter The function to set accumulator values.
  28775. * @param {Function} toIteratee The function to resolve iteratees.
  28776. * @returns {Function} Returns the new inverter function.
  28777. */
  28778. function createInverter(setter, toIteratee) {
  28779. return function(object, iteratee) {
  28780. return baseInverter(object, setter, toIteratee(iteratee), {});
  28781. };
  28782. }
  28783. /**
  28784. * Creates a function that performs a mathematical operation on two values.
  28785. *
  28786. * @private
  28787. * @param {Function} operator The function to perform the operation.
  28788. * @param {number} [defaultValue] The value used for `undefined` arguments.
  28789. * @returns {Function} Returns the new mathematical operation function.
  28790. */
  28791. function createMathOperation(operator, defaultValue) {
  28792. return function(value, other) {
  28793. var result;
  28794. if (value === undefined && other === undefined) {
  28795. return defaultValue;
  28796. }
  28797. if (value !== undefined) {
  28798. result = value;
  28799. }
  28800. if (other !== undefined) {
  28801. if (result === undefined) {
  28802. return other;
  28803. }
  28804. if (typeof value == 'string' || typeof other == 'string') {
  28805. value = baseToString(value);
  28806. other = baseToString(other);
  28807. } else {
  28808. value = baseToNumber(value);
  28809. other = baseToNumber(other);
  28810. }
  28811. result = operator(value, other);
  28812. }
  28813. return result;
  28814. };
  28815. }
  28816. /**
  28817. * Creates a function like `_.over`.
  28818. *
  28819. * @private
  28820. * @param {Function} arrayFunc The function to iterate over iteratees.
  28821. * @returns {Function} Returns the new over function.
  28822. */
  28823. function createOver(arrayFunc) {
  28824. return flatRest(function(iteratees) {
  28825. iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
  28826. return baseRest(function(args) {
  28827. var thisArg = this;
  28828. return arrayFunc(iteratees, function(iteratee) {
  28829. return apply(iteratee, thisArg, args);
  28830. });
  28831. });
  28832. });
  28833. }
  28834. /**
  28835. * Creates the padding for `string` based on `length`. The `chars` string
  28836. * is truncated if the number of characters exceeds `length`.
  28837. *
  28838. * @private
  28839. * @param {number} length The padding length.
  28840. * @param {string} [chars=' '] The string used as padding.
  28841. * @returns {string} Returns the padding for `string`.
  28842. */
  28843. function createPadding(length, chars) {
  28844. chars = chars === undefined ? ' ' : baseToString(chars);
  28845. var charsLength = chars.length;
  28846. if (charsLength < 2) {
  28847. return charsLength ? baseRepeat(chars, length) : chars;
  28848. }
  28849. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  28850. return hasUnicode(chars)
  28851. ? castSlice(stringToArray(result), 0, length).join('')
  28852. : result.slice(0, length);
  28853. }
  28854. /**
  28855. * Creates a function that wraps `func` to invoke it with the `this` binding
  28856. * of `thisArg` and `partials` prepended to the arguments it receives.
  28857. *
  28858. * @private
  28859. * @param {Function} func The function to wrap.
  28860. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  28861. * @param {*} thisArg The `this` binding of `func`.
  28862. * @param {Array} partials The arguments to prepend to those provided to
  28863. * the new function.
  28864. * @returns {Function} Returns the new wrapped function.
  28865. */
  28866. function createPartial(func, bitmask, thisArg, partials) {
  28867. var isBind = bitmask & WRAP_BIND_FLAG,
  28868. Ctor = createCtor(func);
  28869. function wrapper() {
  28870. var argsIndex = -1,
  28871. argsLength = arguments.length,
  28872. leftIndex = -1,
  28873. leftLength = partials.length,
  28874. args = Array(leftLength + argsLength),
  28875. fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  28876. while (++leftIndex < leftLength) {
  28877. args[leftIndex] = partials[leftIndex];
  28878. }
  28879. while (argsLength--) {
  28880. args[leftIndex++] = arguments[++argsIndex];
  28881. }
  28882. return apply(fn, isBind ? thisArg : this, args);
  28883. }
  28884. return wrapper;
  28885. }
  28886. /**
  28887. * Creates a `_.range` or `_.rangeRight` function.
  28888. *
  28889. * @private
  28890. * @param {boolean} [fromRight] Specify iterating from right to left.
  28891. * @returns {Function} Returns the new range function.
  28892. */
  28893. function createRange(fromRight) {
  28894. return function(start, end, step) {
  28895. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  28896. end = step = undefined;
  28897. }
  28898. // Ensure the sign of `-0` is preserved.
  28899. start = toFinite(start);
  28900. if (end === undefined) {
  28901. end = start;
  28902. start = 0;
  28903. } else {
  28904. end = toFinite(end);
  28905. }
  28906. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  28907. return baseRange(start, end, step, fromRight);
  28908. };
  28909. }
  28910. /**
  28911. * Creates a function that performs a relational operation on two values.
  28912. *
  28913. * @private
  28914. * @param {Function} operator The function to perform the operation.
  28915. * @returns {Function} Returns the new relational operation function.
  28916. */
  28917. function createRelationalOperation(operator) {
  28918. return function(value, other) {
  28919. if (!(typeof value == 'string' && typeof other == 'string')) {
  28920. value = toNumber(value);
  28921. other = toNumber(other);
  28922. }
  28923. return operator(value, other);
  28924. };
  28925. }
  28926. /**
  28927. * Creates a function that wraps `func` to continue currying.
  28928. *
  28929. * @private
  28930. * @param {Function} func The function to wrap.
  28931. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  28932. * @param {Function} wrapFunc The function to create the `func` wrapper.
  28933. * @param {*} placeholder The placeholder value.
  28934. * @param {*} [thisArg] The `this` binding of `func`.
  28935. * @param {Array} [partials] The arguments to prepend to those provided to
  28936. * the new function.
  28937. * @param {Array} [holders] The `partials` placeholder indexes.
  28938. * @param {Array} [argPos] The argument positions of the new function.
  28939. * @param {number} [ary] The arity cap of `func`.
  28940. * @param {number} [arity] The arity of `func`.
  28941. * @returns {Function} Returns the new wrapped function.
  28942. */
  28943. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  28944. var isCurry = bitmask & WRAP_CURRY_FLAG,
  28945. newHolders = isCurry ? holders : undefined,
  28946. newHoldersRight = isCurry ? undefined : holders,
  28947. newPartials = isCurry ? partials : undefined,
  28948. newPartialsRight = isCurry ? undefined : partials;
  28949. bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  28950. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
  28951. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  28952. bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  28953. }
  28954. var newData = [
  28955. func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
  28956. newHoldersRight, argPos, ary, arity
  28957. ];
  28958. var result = wrapFunc.apply(undefined, newData);
  28959. if (isLaziable(func)) {
  28960. setData(result, newData);
  28961. }
  28962. result.placeholder = placeholder;
  28963. return setWrapToString(result, func, bitmask);
  28964. }
  28965. /**
  28966. * Creates a function like `_.round`.
  28967. *
  28968. * @private
  28969. * @param {string} methodName The name of the `Math` method to use when rounding.
  28970. * @returns {Function} Returns the new round function.
  28971. */
  28972. function createRound(methodName) {
  28973. var func = Math[methodName];
  28974. return function(number, precision) {
  28975. number = toNumber(number);
  28976. precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
  28977. if (precision && nativeIsFinite(number)) {
  28978. // Shift with exponential notation to avoid floating-point issues.
  28979. // See [MDN](https://mdn.io/round#Examples) for more details.
  28980. var pair = (toString(number) + 'e').split('e'),
  28981. value = func(pair[0] + 'e' + (+pair[1] + precision));
  28982. pair = (toString(value) + 'e').split('e');
  28983. return +(pair[0] + 'e' + (+pair[1] - precision));
  28984. }
  28985. return func(number);
  28986. };
  28987. }
  28988. /**
  28989. * Creates a set object of `values`.
  28990. *
  28991. * @private
  28992. * @param {Array} values The values to add to the set.
  28993. * @returns {Object} Returns the new set.
  28994. */
  28995. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  28996. return new Set(values);
  28997. };
  28998. /**
  28999. * Creates a `_.toPairs` or `_.toPairsIn` function.
  29000. *
  29001. * @private
  29002. * @param {Function} keysFunc The function to get the keys of a given object.
  29003. * @returns {Function} Returns the new pairs function.
  29004. */
  29005. function createToPairs(keysFunc) {
  29006. return function(object) {
  29007. var tag = getTag(object);
  29008. if (tag == mapTag) {
  29009. return mapToArray(object);
  29010. }
  29011. if (tag == setTag) {
  29012. return setToPairs(object);
  29013. }
  29014. return baseToPairs(object, keysFunc(object));
  29015. };
  29016. }
  29017. /**
  29018. * Creates a function that either curries or invokes `func` with optional
  29019. * `this` binding and partially applied arguments.
  29020. *
  29021. * @private
  29022. * @param {Function|string} func The function or method name to wrap.
  29023. * @param {number} bitmask The bitmask flags.
  29024. * 1 - `_.bind`
  29025. * 2 - `_.bindKey`
  29026. * 4 - `_.curry` or `_.curryRight` of a bound function
  29027. * 8 - `_.curry`
  29028. * 16 - `_.curryRight`
  29029. * 32 - `_.partial`
  29030. * 64 - `_.partialRight`
  29031. * 128 - `_.rearg`
  29032. * 256 - `_.ary`
  29033. * 512 - `_.flip`
  29034. * @param {*} [thisArg] The `this` binding of `func`.
  29035. * @param {Array} [partials] The arguments to be partially applied.
  29036. * @param {Array} [holders] The `partials` placeholder indexes.
  29037. * @param {Array} [argPos] The argument positions of the new function.
  29038. * @param {number} [ary] The arity cap of `func`.
  29039. * @param {number} [arity] The arity of `func`.
  29040. * @returns {Function} Returns the new wrapped function.
  29041. */
  29042. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  29043. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  29044. if (!isBindKey && typeof func != 'function') {
  29045. throw new TypeError(FUNC_ERROR_TEXT);
  29046. }
  29047. var length = partials ? partials.length : 0;
  29048. if (!length) {
  29049. bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
  29050. partials = holders = undefined;
  29051. }
  29052. ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  29053. arity = arity === undefined ? arity : toInteger(arity);
  29054. length -= holders ? holders.length : 0;
  29055. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
  29056. var partialsRight = partials,
  29057. holdersRight = holders;
  29058. partials = holders = undefined;
  29059. }
  29060. var data = isBindKey ? undefined : getData(func);
  29061. var newData = [
  29062. func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
  29063. argPos, ary, arity
  29064. ];
  29065. if (data) {
  29066. mergeData(newData, data);
  29067. }
  29068. func = newData[0];
  29069. bitmask = newData[1];
  29070. thisArg = newData[2];
  29071. partials = newData[3];
  29072. holders = newData[4];
  29073. arity = newData[9] = newData[9] === undefined
  29074. ? (isBindKey ? 0 : func.length)
  29075. : nativeMax(newData[9] - length, 0);
  29076. if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
  29077. bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  29078. }
  29079. if (!bitmask || bitmask == WRAP_BIND_FLAG) {
  29080. var result = createBind(func, bitmask, thisArg);
  29081. } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
  29082. result = createCurry(func, bitmask, arity);
  29083. } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
  29084. result = createPartial(func, bitmask, thisArg, partials);
  29085. } else {
  29086. result = createHybrid.apply(undefined, newData);
  29087. }
  29088. var setter = data ? baseSetData : setData;
  29089. return setWrapToString(setter(result, newData), func, bitmask);
  29090. }
  29091. /**
  29092. * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
  29093. * of source objects to the destination object for all destination properties
  29094. * that resolve to `undefined`.
  29095. *
  29096. * @private
  29097. * @param {*} objValue The destination value.
  29098. * @param {*} srcValue The source value.
  29099. * @param {string} key The key of the property to assign.
  29100. * @param {Object} object The parent object of `objValue`.
  29101. * @returns {*} Returns the value to assign.
  29102. */
  29103. function customDefaultsAssignIn(objValue, srcValue, key, object) {
  29104. if (objValue === undefined ||
  29105. (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  29106. return srcValue;
  29107. }
  29108. return objValue;
  29109. }
  29110. /**
  29111. * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
  29112. * objects into destination objects that are passed thru.
  29113. *
  29114. * @private
  29115. * @param {*} objValue The destination value.
  29116. * @param {*} srcValue The source value.
  29117. * @param {string} key The key of the property to merge.
  29118. * @param {Object} object The parent object of `objValue`.
  29119. * @param {Object} source The parent object of `srcValue`.
  29120. * @param {Object} [stack] Tracks traversed source values and their merged
  29121. * counterparts.
  29122. * @returns {*} Returns the value to assign.
  29123. */
  29124. function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
  29125. if (isObject(objValue) && isObject(srcValue)) {
  29126. // Recursively merge objects and arrays (susceptible to call stack limits).
  29127. stack.set(srcValue, objValue);
  29128. baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
  29129. stack['delete'](srcValue);
  29130. }
  29131. return objValue;
  29132. }
  29133. /**
  29134. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  29135. * objects.
  29136. *
  29137. * @private
  29138. * @param {*} value The value to inspect.
  29139. * @param {string} key The key of the property to inspect.
  29140. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  29141. */
  29142. function customOmitClone(value) {
  29143. return isPlainObject(value) ? undefined : value;
  29144. }
  29145. /**
  29146. * A specialized version of `baseIsEqualDeep` for arrays with support for
  29147. * partial deep comparisons.
  29148. *
  29149. * @private
  29150. * @param {Array} array The array to compare.
  29151. * @param {Array} other The other array to compare.
  29152. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  29153. * @param {Function} customizer The function to customize comparisons.
  29154. * @param {Function} equalFunc The function to determine equivalents of values.
  29155. * @param {Object} stack Tracks traversed `array` and `other` objects.
  29156. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  29157. */
  29158. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  29159. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  29160. arrLength = array.length,
  29161. othLength = other.length;
  29162. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  29163. return false;
  29164. }
  29165. // Assume cyclic values are equal.
  29166. var stacked = stack.get(array);
  29167. if (stacked && stack.get(other)) {
  29168. return stacked == other;
  29169. }
  29170. var index = -1,
  29171. result = true,
  29172. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  29173. stack.set(array, other);
  29174. stack.set(other, array);
  29175. // Ignore non-index properties.
  29176. while (++index < arrLength) {
  29177. var arrValue = array[index],
  29178. othValue = other[index];
  29179. if (customizer) {
  29180. var compared = isPartial
  29181. ? customizer(othValue, arrValue, index, other, array, stack)
  29182. : customizer(arrValue, othValue, index, array, other, stack);
  29183. }
  29184. if (compared !== undefined) {
  29185. if (compared) {
  29186. continue;
  29187. }
  29188. result = false;
  29189. break;
  29190. }
  29191. // Recursively compare arrays (susceptible to call stack limits).
  29192. if (seen) {
  29193. if (!arraySome(other, function(othValue, othIndex) {
  29194. if (!cacheHas(seen, othIndex) &&
  29195. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  29196. return seen.push(othIndex);
  29197. }
  29198. })) {
  29199. result = false;
  29200. break;
  29201. }
  29202. } else if (!(
  29203. arrValue === othValue ||
  29204. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  29205. )) {
  29206. result = false;
  29207. break;
  29208. }
  29209. }
  29210. stack['delete'](array);
  29211. stack['delete'](other);
  29212. return result;
  29213. }
  29214. /**
  29215. * A specialized version of `baseIsEqualDeep` for comparing objects of
  29216. * the same `toStringTag`.
  29217. *
  29218. * **Note:** This function only supports comparing values with tags of
  29219. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  29220. *
  29221. * @private
  29222. * @param {Object} object The object to compare.
  29223. * @param {Object} other The other object to compare.
  29224. * @param {string} tag The `toStringTag` of the objects to compare.
  29225. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  29226. * @param {Function} customizer The function to customize comparisons.
  29227. * @param {Function} equalFunc The function to determine equivalents of values.
  29228. * @param {Object} stack Tracks traversed `object` and `other` objects.
  29229. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  29230. */
  29231. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  29232. switch (tag) {
  29233. case dataViewTag:
  29234. if ((object.byteLength != other.byteLength) ||
  29235. (object.byteOffset != other.byteOffset)) {
  29236. return false;
  29237. }
  29238. object = object.buffer;
  29239. other = other.buffer;
  29240. case arrayBufferTag:
  29241. if ((object.byteLength != other.byteLength) ||
  29242. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  29243. return false;
  29244. }
  29245. return true;
  29246. case boolTag:
  29247. case dateTag:
  29248. case numberTag:
  29249. // Coerce booleans to `1` or `0` and dates to milliseconds.
  29250. // Invalid dates are coerced to `NaN`.
  29251. return eq(+object, +other);
  29252. case errorTag:
  29253. return object.name == other.name && object.message == other.message;
  29254. case regexpTag:
  29255. case stringTag:
  29256. // Coerce regexes to strings and treat strings, primitives and objects,
  29257. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  29258. // for more details.
  29259. return object == (other + '');
  29260. case mapTag:
  29261. var convert = mapToArray;
  29262. case setTag:
  29263. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  29264. convert || (convert = setToArray);
  29265. if (object.size != other.size && !isPartial) {
  29266. return false;
  29267. }
  29268. // Assume cyclic values are equal.
  29269. var stacked = stack.get(object);
  29270. if (stacked) {
  29271. return stacked == other;
  29272. }
  29273. bitmask |= COMPARE_UNORDERED_FLAG;
  29274. // Recursively compare objects (susceptible to call stack limits).
  29275. stack.set(object, other);
  29276. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  29277. stack['delete'](object);
  29278. return result;
  29279. case symbolTag:
  29280. if (symbolValueOf) {
  29281. return symbolValueOf.call(object) == symbolValueOf.call(other);
  29282. }
  29283. }
  29284. return false;
  29285. }
  29286. /**
  29287. * A specialized version of `baseIsEqualDeep` for objects with support for
  29288. * partial deep comparisons.
  29289. *
  29290. * @private
  29291. * @param {Object} object The object to compare.
  29292. * @param {Object} other The other object to compare.
  29293. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  29294. * @param {Function} customizer The function to customize comparisons.
  29295. * @param {Function} equalFunc The function to determine equivalents of values.
  29296. * @param {Object} stack Tracks traversed `object` and `other` objects.
  29297. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  29298. */
  29299. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  29300. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  29301. objProps = getAllKeys(object),
  29302. objLength = objProps.length,
  29303. othProps = getAllKeys(other),
  29304. othLength = othProps.length;
  29305. if (objLength != othLength && !isPartial) {
  29306. return false;
  29307. }
  29308. var index = objLength;
  29309. while (index--) {
  29310. var key = objProps[index];
  29311. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  29312. return false;
  29313. }
  29314. }
  29315. // Assume cyclic values are equal.
  29316. var stacked = stack.get(object);
  29317. if (stacked && stack.get(other)) {
  29318. return stacked == other;
  29319. }
  29320. var result = true;
  29321. stack.set(object, other);
  29322. stack.set(other, object);
  29323. var skipCtor = isPartial;
  29324. while (++index < objLength) {
  29325. key = objProps[index];
  29326. var objValue = object[key],
  29327. othValue = other[key];
  29328. if (customizer) {
  29329. var compared = isPartial
  29330. ? customizer(othValue, objValue, key, other, object, stack)
  29331. : customizer(objValue, othValue, key, object, other, stack);
  29332. }
  29333. // Recursively compare objects (susceptible to call stack limits).
  29334. if (!(compared === undefined
  29335. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  29336. : compared
  29337. )) {
  29338. result = false;
  29339. break;
  29340. }
  29341. skipCtor || (skipCtor = key == 'constructor');
  29342. }
  29343. if (result && !skipCtor) {
  29344. var objCtor = object.constructor,
  29345. othCtor = other.constructor;
  29346. // Non `Object` object instances with different constructors are not equal.
  29347. if (objCtor != othCtor &&
  29348. ('constructor' in object && 'constructor' in other) &&
  29349. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  29350. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  29351. result = false;
  29352. }
  29353. }
  29354. stack['delete'](object);
  29355. stack['delete'](other);
  29356. return result;
  29357. }
  29358. /**
  29359. * A specialized version of `baseRest` which flattens the rest array.
  29360. *
  29361. * @private
  29362. * @param {Function} func The function to apply a rest parameter to.
  29363. * @returns {Function} Returns the new function.
  29364. */
  29365. function flatRest(func) {
  29366. return setToString(overRest(func, undefined, flatten), func + '');
  29367. }
  29368. /**
  29369. * Creates an array of own enumerable property names and symbols of `object`.
  29370. *
  29371. * @private
  29372. * @param {Object} object The object to query.
  29373. * @returns {Array} Returns the array of property names and symbols.
  29374. */
  29375. function getAllKeys(object) {
  29376. return baseGetAllKeys(object, keys, getSymbols);
  29377. }
  29378. /**
  29379. * Creates an array of own and inherited enumerable property names and
  29380. * symbols of `object`.
  29381. *
  29382. * @private
  29383. * @param {Object} object The object to query.
  29384. * @returns {Array} Returns the array of property names and symbols.
  29385. */
  29386. function getAllKeysIn(object) {
  29387. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  29388. }
  29389. /**
  29390. * Gets metadata for `func`.
  29391. *
  29392. * @private
  29393. * @param {Function} func The function to query.
  29394. * @returns {*} Returns the metadata for `func`.
  29395. */
  29396. var getData = !metaMap ? noop : function(func) {
  29397. return metaMap.get(func);
  29398. };
  29399. /**
  29400. * Gets the name of `func`.
  29401. *
  29402. * @private
  29403. * @param {Function} func The function to query.
  29404. * @returns {string} Returns the function name.
  29405. */
  29406. function getFuncName(func) {
  29407. var result = (func.name + ''),
  29408. array = realNames[result],
  29409. length = hasOwnProperty.call(realNames, result) ? array.length : 0;
  29410. while (length--) {
  29411. var data = array[length],
  29412. otherFunc = data.func;
  29413. if (otherFunc == null || otherFunc == func) {
  29414. return data.name;
  29415. }
  29416. }
  29417. return result;
  29418. }
  29419. /**
  29420. * Gets the argument placeholder value for `func`.
  29421. *
  29422. * @private
  29423. * @param {Function} func The function to inspect.
  29424. * @returns {*} Returns the placeholder value.
  29425. */
  29426. function getHolder(func) {
  29427. var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
  29428. return object.placeholder;
  29429. }
  29430. /**
  29431. * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
  29432. * this function returns the custom method, otherwise it returns `baseIteratee`.
  29433. * If arguments are provided, the chosen function is invoked with them and
  29434. * its result is returned.
  29435. *
  29436. * @private
  29437. * @param {*} [value] The value to convert to an iteratee.
  29438. * @param {number} [arity] The arity of the created iteratee.
  29439. * @returns {Function} Returns the chosen function or its result.
  29440. */
  29441. function getIteratee() {
  29442. var result = lodash.iteratee || iteratee;
  29443. result = result === iteratee ? baseIteratee : result;
  29444. return arguments.length ? result(arguments[0], arguments[1]) : result;
  29445. }
  29446. /**
  29447. * Gets the data for `map`.
  29448. *
  29449. * @private
  29450. * @param {Object} map The map to query.
  29451. * @param {string} key The reference key.
  29452. * @returns {*} Returns the map data.
  29453. */
  29454. function getMapData(map, key) {
  29455. var data = map.__data__;
  29456. return isKeyable(key)
  29457. ? data[typeof key == 'string' ? 'string' : 'hash']
  29458. : data.map;
  29459. }
  29460. /**
  29461. * Gets the property names, values, and compare flags of `object`.
  29462. *
  29463. * @private
  29464. * @param {Object} object The object to query.
  29465. * @returns {Array} Returns the match data of `object`.
  29466. */
  29467. function getMatchData(object) {
  29468. var result = keys(object),
  29469. length = result.length;
  29470. while (length--) {
  29471. var key = result[length],
  29472. value = object[key];
  29473. result[length] = [key, value, isStrictComparable(value)];
  29474. }
  29475. return result;
  29476. }
  29477. /**
  29478. * Gets the native function at `key` of `object`.
  29479. *
  29480. * @private
  29481. * @param {Object} object The object to query.
  29482. * @param {string} key The key of the method to get.
  29483. * @returns {*} Returns the function if it's native, else `undefined`.
  29484. */
  29485. function getNative(object, key) {
  29486. var value = getValue(object, key);
  29487. return baseIsNative(value) ? value : undefined;
  29488. }
  29489. /**
  29490. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  29491. *
  29492. * @private
  29493. * @param {*} value The value to query.
  29494. * @returns {string} Returns the raw `toStringTag`.
  29495. */
  29496. function getRawTag(value) {
  29497. var isOwn = hasOwnProperty.call(value, symToStringTag),
  29498. tag = value[symToStringTag];
  29499. try {
  29500. value[symToStringTag] = undefined;
  29501. var unmasked = true;
  29502. } catch (e) {}
  29503. var result = nativeObjectToString.call(value);
  29504. if (unmasked) {
  29505. if (isOwn) {
  29506. value[symToStringTag] = tag;
  29507. } else {
  29508. delete value[symToStringTag];
  29509. }
  29510. }
  29511. return result;
  29512. }
  29513. /**
  29514. * Creates an array of the own enumerable symbols of `object`.
  29515. *
  29516. * @private
  29517. * @param {Object} object The object to query.
  29518. * @returns {Array} Returns the array of symbols.
  29519. */
  29520. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  29521. if (object == null) {
  29522. return [];
  29523. }
  29524. object = Object(object);
  29525. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  29526. return propertyIsEnumerable.call(object, symbol);
  29527. });
  29528. };
  29529. /**
  29530. * Creates an array of the own and inherited enumerable symbols of `object`.
  29531. *
  29532. * @private
  29533. * @param {Object} object The object to query.
  29534. * @returns {Array} Returns the array of symbols.
  29535. */
  29536. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  29537. var result = [];
  29538. while (object) {
  29539. arrayPush(result, getSymbols(object));
  29540. object = getPrototype(object);
  29541. }
  29542. return result;
  29543. };
  29544. /**
  29545. * Gets the `toStringTag` of `value`.
  29546. *
  29547. * @private
  29548. * @param {*} value The value to query.
  29549. * @returns {string} Returns the `toStringTag`.
  29550. */
  29551. var getTag = baseGetTag;
  29552. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  29553. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  29554. (Map && getTag(new Map) != mapTag) ||
  29555. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  29556. (Set && getTag(new Set) != setTag) ||
  29557. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  29558. getTag = function(value) {
  29559. var result = baseGetTag(value),
  29560. Ctor = result == objectTag ? value.constructor : undefined,
  29561. ctorString = Ctor ? toSource(Ctor) : '';
  29562. if (ctorString) {
  29563. switch (ctorString) {
  29564. case dataViewCtorString: return dataViewTag;
  29565. case mapCtorString: return mapTag;
  29566. case promiseCtorString: return promiseTag;
  29567. case setCtorString: return setTag;
  29568. case weakMapCtorString: return weakMapTag;
  29569. }
  29570. }
  29571. return result;
  29572. };
  29573. }
  29574. /**
  29575. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  29576. *
  29577. * @private
  29578. * @param {number} start The start of the view.
  29579. * @param {number} end The end of the view.
  29580. * @param {Array} transforms The transformations to apply to the view.
  29581. * @returns {Object} Returns an object containing the `start` and `end`
  29582. * positions of the view.
  29583. */
  29584. function getView(start, end, transforms) {
  29585. var index = -1,
  29586. length = transforms.length;
  29587. while (++index < length) {
  29588. var data = transforms[index],
  29589. size = data.size;
  29590. switch (data.type) {
  29591. case 'drop': start += size; break;
  29592. case 'dropRight': end -= size; break;
  29593. case 'take': end = nativeMin(end, start + size); break;
  29594. case 'takeRight': start = nativeMax(start, end - size); break;
  29595. }
  29596. }
  29597. return { 'start': start, 'end': end };
  29598. }
  29599. /**
  29600. * Extracts wrapper details from the `source` body comment.
  29601. *
  29602. * @private
  29603. * @param {string} source The source to inspect.
  29604. * @returns {Array} Returns the wrapper details.
  29605. */
  29606. function getWrapDetails(source) {
  29607. var match = source.match(reWrapDetails);
  29608. return match ? match[1].split(reSplitDetails) : [];
  29609. }
  29610. /**
  29611. * Checks if `path` exists on `object`.
  29612. *
  29613. * @private
  29614. * @param {Object} object The object to query.
  29615. * @param {Array|string} path The path to check.
  29616. * @param {Function} hasFunc The function to check properties.
  29617. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  29618. */
  29619. function hasPath(object, path, hasFunc) {
  29620. path = castPath(path, object);
  29621. var index = -1,
  29622. length = path.length,
  29623. result = false;
  29624. while (++index < length) {
  29625. var key = toKey(path[index]);
  29626. if (!(result = object != null && hasFunc(object, key))) {
  29627. break;
  29628. }
  29629. object = object[key];
  29630. }
  29631. if (result || ++index != length) {
  29632. return result;
  29633. }
  29634. length = object == null ? 0 : object.length;
  29635. return !!length && isLength(length) && isIndex(key, length) &&
  29636. (isArray(object) || isArguments(object));
  29637. }
  29638. /**
  29639. * Initializes an array clone.
  29640. *
  29641. * @private
  29642. * @param {Array} array The array to clone.
  29643. * @returns {Array} Returns the initialized clone.
  29644. */
  29645. function initCloneArray(array) {
  29646. var length = array.length,
  29647. result = new array.constructor(length);
  29648. // Add properties assigned by `RegExp#exec`.
  29649. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  29650. result.index = array.index;
  29651. result.input = array.input;
  29652. }
  29653. return result;
  29654. }
  29655. /**
  29656. * Initializes an object clone.
  29657. *
  29658. * @private
  29659. * @param {Object} object The object to clone.
  29660. * @returns {Object} Returns the initialized clone.
  29661. */
  29662. function initCloneObject(object) {
  29663. return (typeof object.constructor == 'function' && !isPrototype(object))
  29664. ? baseCreate(getPrototype(object))
  29665. : {};
  29666. }
  29667. /**
  29668. * Initializes an object clone based on its `toStringTag`.
  29669. *
  29670. * **Note:** This function only supports cloning values with tags of
  29671. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  29672. *
  29673. * @private
  29674. * @param {Object} object The object to clone.
  29675. * @param {string} tag The `toStringTag` of the object to clone.
  29676. * @param {boolean} [isDeep] Specify a deep clone.
  29677. * @returns {Object} Returns the initialized clone.
  29678. */
  29679. function initCloneByTag(object, tag, isDeep) {
  29680. var Ctor = object.constructor;
  29681. switch (tag) {
  29682. case arrayBufferTag:
  29683. return cloneArrayBuffer(object);
  29684. case boolTag:
  29685. case dateTag:
  29686. return new Ctor(+object);
  29687. case dataViewTag:
  29688. return cloneDataView(object, isDeep);
  29689. case float32Tag: case float64Tag:
  29690. case int8Tag: case int16Tag: case int32Tag:
  29691. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  29692. return cloneTypedArray(object, isDeep);
  29693. case mapTag:
  29694. return new Ctor;
  29695. case numberTag:
  29696. case stringTag:
  29697. return new Ctor(object);
  29698. case regexpTag:
  29699. return cloneRegExp(object);
  29700. case setTag:
  29701. return new Ctor;
  29702. case symbolTag:
  29703. return cloneSymbol(object);
  29704. }
  29705. }
  29706. /**
  29707. * Inserts wrapper `details` in a comment at the top of the `source` body.
  29708. *
  29709. * @private
  29710. * @param {string} source The source to modify.
  29711. * @returns {Array} details The details to insert.
  29712. * @returns {string} Returns the modified source.
  29713. */
  29714. function insertWrapDetails(source, details) {
  29715. var length = details.length;
  29716. if (!length) {
  29717. return source;
  29718. }
  29719. var lastIndex = length - 1;
  29720. details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  29721. details = details.join(length > 2 ? ', ' : ' ');
  29722. return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
  29723. }
  29724. /**
  29725. * Checks if `value` is a flattenable `arguments` object or array.
  29726. *
  29727. * @private
  29728. * @param {*} value The value to check.
  29729. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  29730. */
  29731. function isFlattenable(value) {
  29732. return isArray(value) || isArguments(value) ||
  29733. !!(spreadableSymbol && value && value[spreadableSymbol]);
  29734. }
  29735. /**
  29736. * Checks if `value` is a valid array-like index.
  29737. *
  29738. * @private
  29739. * @param {*} value The value to check.
  29740. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  29741. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  29742. */
  29743. function isIndex(value, length) {
  29744. var type = typeof value;
  29745. length = length == null ? MAX_SAFE_INTEGER : length;
  29746. return !!length &&
  29747. (type == 'number' ||
  29748. (type != 'symbol' && reIsUint.test(value))) &&
  29749. (value > -1 && value % 1 == 0 && value < length);
  29750. }
  29751. /**
  29752. * Checks if the given arguments are from an iteratee call.
  29753. *
  29754. * @private
  29755. * @param {*} value The potential iteratee value argument.
  29756. * @param {*} index The potential iteratee index or key argument.
  29757. * @param {*} object The potential iteratee object argument.
  29758. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  29759. * else `false`.
  29760. */
  29761. function isIterateeCall(value, index, object) {
  29762. if (!isObject(object)) {
  29763. return false;
  29764. }
  29765. var type = typeof index;
  29766. if (type == 'number'
  29767. ? (isArrayLike(object) && isIndex(index, object.length))
  29768. : (type == 'string' && index in object)
  29769. ) {
  29770. return eq(object[index], value);
  29771. }
  29772. return false;
  29773. }
  29774. /**
  29775. * Checks if `value` is a property name and not a property path.
  29776. *
  29777. * @private
  29778. * @param {*} value The value to check.
  29779. * @param {Object} [object] The object to query keys on.
  29780. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  29781. */
  29782. function isKey(value, object) {
  29783. if (isArray(value)) {
  29784. return false;
  29785. }
  29786. var type = typeof value;
  29787. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  29788. value == null || isSymbol(value)) {
  29789. return true;
  29790. }
  29791. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  29792. (object != null && value in Object(object));
  29793. }
  29794. /**
  29795. * Checks if `value` is suitable for use as unique object key.
  29796. *
  29797. * @private
  29798. * @param {*} value The value to check.
  29799. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  29800. */
  29801. function isKeyable(value) {
  29802. var type = typeof value;
  29803. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  29804. ? (value !== '__proto__')
  29805. : (value === null);
  29806. }
  29807. /**
  29808. * Checks if `func` has a lazy counterpart.
  29809. *
  29810. * @private
  29811. * @param {Function} func The function to check.
  29812. * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
  29813. * else `false`.
  29814. */
  29815. function isLaziable(func) {
  29816. var funcName = getFuncName(func),
  29817. other = lodash[funcName];
  29818. if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
  29819. return false;
  29820. }
  29821. if (func === other) {
  29822. return true;
  29823. }
  29824. var data = getData(other);
  29825. return !!data && func === data[0];
  29826. }
  29827. /**
  29828. * Checks if `func` has its source masked.
  29829. *
  29830. * @private
  29831. * @param {Function} func The function to check.
  29832. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  29833. */
  29834. function isMasked(func) {
  29835. return !!maskSrcKey && (maskSrcKey in func);
  29836. }
  29837. /**
  29838. * Checks if `func` is capable of being masked.
  29839. *
  29840. * @private
  29841. * @param {*} value The value to check.
  29842. * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
  29843. */
  29844. var isMaskable = coreJsData ? isFunction : stubFalse;
  29845. /**
  29846. * Checks if `value` is likely a prototype object.
  29847. *
  29848. * @private
  29849. * @param {*} value The value to check.
  29850. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  29851. */
  29852. function isPrototype(value) {
  29853. var Ctor = value && value.constructor,
  29854. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  29855. return value === proto;
  29856. }
  29857. /**
  29858. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  29859. *
  29860. * @private
  29861. * @param {*} value The value to check.
  29862. * @returns {boolean} Returns `true` if `value` if suitable for strict
  29863. * equality comparisons, else `false`.
  29864. */
  29865. function isStrictComparable(value) {
  29866. return value === value && !isObject(value);
  29867. }
  29868. /**
  29869. * A specialized version of `matchesProperty` for source values suitable
  29870. * for strict equality comparisons, i.e. `===`.
  29871. *
  29872. * @private
  29873. * @param {string} key The key of the property to get.
  29874. * @param {*} srcValue The value to match.
  29875. * @returns {Function} Returns the new spec function.
  29876. */
  29877. function matchesStrictComparable(key, srcValue) {
  29878. return function(object) {
  29879. if (object == null) {
  29880. return false;
  29881. }
  29882. return object[key] === srcValue &&
  29883. (srcValue !== undefined || (key in Object(object)));
  29884. };
  29885. }
  29886. /**
  29887. * A specialized version of `_.memoize` which clears the memoized function's
  29888. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  29889. *
  29890. * @private
  29891. * @param {Function} func The function to have its output memoized.
  29892. * @returns {Function} Returns the new memoized function.
  29893. */
  29894. function memoizeCapped(func) {
  29895. var result = memoize(func, function(key) {
  29896. if (cache.size === MAX_MEMOIZE_SIZE) {
  29897. cache.clear();
  29898. }
  29899. return key;
  29900. });
  29901. var cache = result.cache;
  29902. return result;
  29903. }
  29904. /**
  29905. * Merges the function metadata of `source` into `data`.
  29906. *
  29907. * Merging metadata reduces the number of wrappers used to invoke a function.
  29908. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  29909. * may be applied regardless of execution order. Methods like `_.ary` and
  29910. * `_.rearg` modify function arguments, making the order in which they are
  29911. * executed important, preventing the merging of metadata. However, we make
  29912. * an exception for a safe combined case where curried functions have `_.ary`
  29913. * and or `_.rearg` applied.
  29914. *
  29915. * @private
  29916. * @param {Array} data The destination metadata.
  29917. * @param {Array} source The source metadata.
  29918. * @returns {Array} Returns `data`.
  29919. */
  29920. function mergeData(data, source) {
  29921. var bitmask = data[1],
  29922. srcBitmask = source[1],
  29923. newBitmask = bitmask | srcBitmask,
  29924. isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
  29925. var isCombo =
  29926. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
  29927. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
  29928. ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
  29929. // Exit early if metadata can't be merged.
  29930. if (!(isCommon || isCombo)) {
  29931. return data;
  29932. }
  29933. // Use source `thisArg` if available.
  29934. if (srcBitmask & WRAP_BIND_FLAG) {
  29935. data[2] = source[2];
  29936. // Set when currying a bound function.
  29937. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  29938. }
  29939. // Compose partial arguments.
  29940. var value = source[3];
  29941. if (value) {
  29942. var partials = data[3];
  29943. data[3] = partials ? composeArgs(partials, value, source[4]) : value;
  29944. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  29945. }
  29946. // Compose partial right arguments.
  29947. value = source[5];
  29948. if (value) {
  29949. partials = data[5];
  29950. data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
  29951. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  29952. }
  29953. // Use source `argPos` if available.
  29954. value = source[7];
  29955. if (value) {
  29956. data[7] = value;
  29957. }
  29958. // Use source `ary` if it's smaller.
  29959. if (srcBitmask & WRAP_ARY_FLAG) {
  29960. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  29961. }
  29962. // Use source `arity` if one is not provided.
  29963. if (data[9] == null) {
  29964. data[9] = source[9];
  29965. }
  29966. // Use source `func` and merge bitmasks.
  29967. data[0] = source[0];
  29968. data[1] = newBitmask;
  29969. return data;
  29970. }
  29971. /**
  29972. * This function is like
  29973. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  29974. * except that it includes inherited enumerable properties.
  29975. *
  29976. * @private
  29977. * @param {Object} object The object to query.
  29978. * @returns {Array} Returns the array of property names.
  29979. */
  29980. function nativeKeysIn(object) {
  29981. var result = [];
  29982. if (object != null) {
  29983. for (var key in Object(object)) {
  29984. result.push(key);
  29985. }
  29986. }
  29987. return result;
  29988. }
  29989. /**
  29990. * Converts `value` to a string using `Object.prototype.toString`.
  29991. *
  29992. * @private
  29993. * @param {*} value The value to convert.
  29994. * @returns {string} Returns the converted string.
  29995. */
  29996. function objectToString(value) {
  29997. return nativeObjectToString.call(value);
  29998. }
  29999. /**
  30000. * A specialized version of `baseRest` which transforms the rest array.
  30001. *
  30002. * @private
  30003. * @param {Function} func The function to apply a rest parameter to.
  30004. * @param {number} [start=func.length-1] The start position of the rest parameter.
  30005. * @param {Function} transform The rest array transform.
  30006. * @returns {Function} Returns the new function.
  30007. */
  30008. function overRest(func, start, transform) {
  30009. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  30010. return function() {
  30011. var args = arguments,
  30012. index = -1,
  30013. length = nativeMax(args.length - start, 0),
  30014. array = Array(length);
  30015. while (++index < length) {
  30016. array[index] = args[start + index];
  30017. }
  30018. index = -1;
  30019. var otherArgs = Array(start + 1);
  30020. while (++index < start) {
  30021. otherArgs[index] = args[index];
  30022. }
  30023. otherArgs[start] = transform(array);
  30024. return apply(func, this, otherArgs);
  30025. };
  30026. }
  30027. /**
  30028. * Gets the parent value at `path` of `object`.
  30029. *
  30030. * @private
  30031. * @param {Object} object The object to query.
  30032. * @param {Array} path The path to get the parent value of.
  30033. * @returns {*} Returns the parent value.
  30034. */
  30035. function parent(object, path) {
  30036. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  30037. }
  30038. /**
  30039. * Reorder `array` according to the specified indexes where the element at
  30040. * the first index is assigned as the first element, the element at
  30041. * the second index is assigned as the second element, and so on.
  30042. *
  30043. * @private
  30044. * @param {Array} array The array to reorder.
  30045. * @param {Array} indexes The arranged array indexes.
  30046. * @returns {Array} Returns `array`.
  30047. */
  30048. function reorder(array, indexes) {
  30049. var arrLength = array.length,
  30050. length = nativeMin(indexes.length, arrLength),
  30051. oldArray = copyArray(array);
  30052. while (length--) {
  30053. var index = indexes[length];
  30054. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  30055. }
  30056. return array;
  30057. }
  30058. /**
  30059. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  30060. *
  30061. * @private
  30062. * @param {Object} object The object to query.
  30063. * @param {string} key The key of the property to get.
  30064. * @returns {*} Returns the property value.
  30065. */
  30066. function safeGet(object, key) {
  30067. if (key === 'constructor' && typeof object[key] === 'function') {
  30068. return;
  30069. }
  30070. if (key == '__proto__') {
  30071. return;
  30072. }
  30073. return object[key];
  30074. }
  30075. /**
  30076. * Sets metadata for `func`.
  30077. *
  30078. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  30079. * period of time, it will trip its breaker and transition to an identity
  30080. * function to avoid garbage collection pauses in V8. See
  30081. * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
  30082. * for more details.
  30083. *
  30084. * @private
  30085. * @param {Function} func The function to associate metadata with.
  30086. * @param {*} data The metadata.
  30087. * @returns {Function} Returns `func`.
  30088. */
  30089. var setData = shortOut(baseSetData);
  30090. /**
  30091. * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
  30092. *
  30093. * @private
  30094. * @param {Function} func The function to delay.
  30095. * @param {number} wait The number of milliseconds to delay invocation.
  30096. * @returns {number|Object} Returns the timer id or timeout object.
  30097. */
  30098. var setTimeout = ctxSetTimeout || function(func, wait) {
  30099. return root.setTimeout(func, wait);
  30100. };
  30101. /**
  30102. * Sets the `toString` method of `func` to return `string`.
  30103. *
  30104. * @private
  30105. * @param {Function} func The function to modify.
  30106. * @param {Function} string The `toString` result.
  30107. * @returns {Function} Returns `func`.
  30108. */
  30109. var setToString = shortOut(baseSetToString);
  30110. /**
  30111. * Sets the `toString` method of `wrapper` to mimic the source of `reference`
  30112. * with wrapper details in a comment at the top of the source body.
  30113. *
  30114. * @private
  30115. * @param {Function} wrapper The function to modify.
  30116. * @param {Function} reference The reference function.
  30117. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  30118. * @returns {Function} Returns `wrapper`.
  30119. */
  30120. function setWrapToString(wrapper, reference, bitmask) {
  30121. var source = (reference + '');
  30122. return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
  30123. }
  30124. /**
  30125. * Creates a function that'll short out and invoke `identity` instead
  30126. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  30127. * milliseconds.
  30128. *
  30129. * @private
  30130. * @param {Function} func The function to restrict.
  30131. * @returns {Function} Returns the new shortable function.
  30132. */
  30133. function shortOut(func) {
  30134. var count = 0,
  30135. lastCalled = 0;
  30136. return function() {
  30137. var stamp = nativeNow(),
  30138. remaining = HOT_SPAN - (stamp - lastCalled);
  30139. lastCalled = stamp;
  30140. if (remaining > 0) {
  30141. if (++count >= HOT_COUNT) {
  30142. return arguments[0];
  30143. }
  30144. } else {
  30145. count = 0;
  30146. }
  30147. return func.apply(undefined, arguments);
  30148. };
  30149. }
  30150. /**
  30151. * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
  30152. *
  30153. * @private
  30154. * @param {Array} array The array to shuffle.
  30155. * @param {number} [size=array.length] The size of `array`.
  30156. * @returns {Array} Returns `array`.
  30157. */
  30158. function shuffleSelf(array, size) {
  30159. var index = -1,
  30160. length = array.length,
  30161. lastIndex = length - 1;
  30162. size = size === undefined ? length : size;
  30163. while (++index < size) {
  30164. var rand = baseRandom(index, lastIndex),
  30165. value = array[rand];
  30166. array[rand] = array[index];
  30167. array[index] = value;
  30168. }
  30169. array.length = size;
  30170. return array;
  30171. }
  30172. /**
  30173. * Converts `string` to a property path array.
  30174. *
  30175. * @private
  30176. * @param {string} string The string to convert.
  30177. * @returns {Array} Returns the property path array.
  30178. */
  30179. var stringToPath = memoizeCapped(function(string) {
  30180. var result = [];
  30181. if (string.charCodeAt(0) === 46 /* . */) {
  30182. result.push('');
  30183. }
  30184. string.replace(rePropName, function(match, number, quote, subString) {
  30185. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  30186. });
  30187. return result;
  30188. });
  30189. /**
  30190. * Converts `value` to a string key if it's not a string or symbol.
  30191. *
  30192. * @private
  30193. * @param {*} value The value to inspect.
  30194. * @returns {string|symbol} Returns the key.
  30195. */
  30196. function toKey(value) {
  30197. if (typeof value == 'string' || isSymbol(value)) {
  30198. return value;
  30199. }
  30200. var result = (value + '');
  30201. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  30202. }
  30203. /**
  30204. * Converts `func` to its source code.
  30205. *
  30206. * @private
  30207. * @param {Function} func The function to convert.
  30208. * @returns {string} Returns the source code.
  30209. */
  30210. function toSource(func) {
  30211. if (func != null) {
  30212. try {
  30213. return funcToString.call(func);
  30214. } catch (e) {}
  30215. try {
  30216. return (func + '');
  30217. } catch (e) {}
  30218. }
  30219. return '';
  30220. }
  30221. /**
  30222. * Updates wrapper `details` based on `bitmask` flags.
  30223. *
  30224. * @private
  30225. * @returns {Array} details The details to modify.
  30226. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  30227. * @returns {Array} Returns `details`.
  30228. */
  30229. function updateWrapDetails(details, bitmask) {
  30230. arrayEach(wrapFlags, function(pair) {
  30231. var value = '_.' + pair[0];
  30232. if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
  30233. details.push(value);
  30234. }
  30235. });
  30236. return details.sort();
  30237. }
  30238. /**
  30239. * Creates a clone of `wrapper`.
  30240. *
  30241. * @private
  30242. * @param {Object} wrapper The wrapper to clone.
  30243. * @returns {Object} Returns the cloned wrapper.
  30244. */
  30245. function wrapperClone(wrapper) {
  30246. if (wrapper instanceof LazyWrapper) {
  30247. return wrapper.clone();
  30248. }
  30249. var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  30250. result.__actions__ = copyArray(wrapper.__actions__);
  30251. result.__index__ = wrapper.__index__;
  30252. result.__values__ = wrapper.__values__;
  30253. return result;
  30254. }
  30255. /*------------------------------------------------------------------------*/
  30256. /**
  30257. * Creates an array of elements split into groups the length of `size`.
  30258. * If `array` can't be split evenly, the final chunk will be the remaining
  30259. * elements.
  30260. *
  30261. * @static
  30262. * @memberOf _
  30263. * @since 3.0.0
  30264. * @category Array
  30265. * @param {Array} array The array to process.
  30266. * @param {number} [size=1] The length of each chunk
  30267. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  30268. * @returns {Array} Returns the new array of chunks.
  30269. * @example
  30270. *
  30271. * _.chunk(['a', 'b', 'c', 'd'], 2);
  30272. * // => [['a', 'b'], ['c', 'd']]
  30273. *
  30274. * _.chunk(['a', 'b', 'c', 'd'], 3);
  30275. * // => [['a', 'b', 'c'], ['d']]
  30276. */
  30277. function chunk(array, size, guard) {
  30278. if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
  30279. size = 1;
  30280. } else {
  30281. size = nativeMax(toInteger(size), 0);
  30282. }
  30283. var length = array == null ? 0 : array.length;
  30284. if (!length || size < 1) {
  30285. return [];
  30286. }
  30287. var index = 0,
  30288. resIndex = 0,
  30289. result = Array(nativeCeil(length / size));
  30290. while (index < length) {
  30291. result[resIndex++] = baseSlice(array, index, (index += size));
  30292. }
  30293. return result;
  30294. }
  30295. /**
  30296. * Creates an array with all falsey values removed. The values `false`, `null`,
  30297. * `0`, `""`, `undefined`, and `NaN` are falsey.
  30298. *
  30299. * @static
  30300. * @memberOf _
  30301. * @since 0.1.0
  30302. * @category Array
  30303. * @param {Array} array The array to compact.
  30304. * @returns {Array} Returns the new array of filtered values.
  30305. * @example
  30306. *
  30307. * _.compact([0, 1, false, 2, '', 3]);
  30308. * // => [1, 2, 3]
  30309. */
  30310. function compact(array) {
  30311. var index = -1,
  30312. length = array == null ? 0 : array.length,
  30313. resIndex = 0,
  30314. result = [];
  30315. while (++index < length) {
  30316. var value = array[index];
  30317. if (value) {
  30318. result[resIndex++] = value;
  30319. }
  30320. }
  30321. return result;
  30322. }
  30323. /**
  30324. * Creates a new array concatenating `array` with any additional arrays
  30325. * and/or values.
  30326. *
  30327. * @static
  30328. * @memberOf _
  30329. * @since 4.0.0
  30330. * @category Array
  30331. * @param {Array} array The array to concatenate.
  30332. * @param {...*} [values] The values to concatenate.
  30333. * @returns {Array} Returns the new concatenated array.
  30334. * @example
  30335. *
  30336. * var array = [1];
  30337. * var other = _.concat(array, 2, [3], [[4]]);
  30338. *
  30339. * console.log(other);
  30340. * // => [1, 2, 3, [4]]
  30341. *
  30342. * console.log(array);
  30343. * // => [1]
  30344. */
  30345. function concat() {
  30346. var length = arguments.length;
  30347. if (!length) {
  30348. return [];
  30349. }
  30350. var args = Array(length - 1),
  30351. array = arguments[0],
  30352. index = length;
  30353. while (index--) {
  30354. args[index - 1] = arguments[index];
  30355. }
  30356. return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
  30357. }
  30358. /**
  30359. * Creates an array of `array` values not included in the other given arrays
  30360. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  30361. * for equality comparisons. The order and references of result values are
  30362. * determined by the first array.
  30363. *
  30364. * **Note:** Unlike `_.pullAll`, this method returns a new array.
  30365. *
  30366. * @static
  30367. * @memberOf _
  30368. * @since 0.1.0
  30369. * @category Array
  30370. * @param {Array} array The array to inspect.
  30371. * @param {...Array} [values] The values to exclude.
  30372. * @returns {Array} Returns the new array of filtered values.
  30373. * @see _.without, _.xor
  30374. * @example
  30375. *
  30376. * _.difference([2, 1], [2, 3]);
  30377. * // => [1]
  30378. */
  30379. var difference = baseRest(function(array, values) {
  30380. return isArrayLikeObject(array)
  30381. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
  30382. : [];
  30383. });
  30384. /**
  30385. * This method is like `_.difference` except that it accepts `iteratee` which
  30386. * is invoked for each element of `array` and `values` to generate the criterion
  30387. * by which they're compared. The order and references of result values are
  30388. * determined by the first array. The iteratee is invoked with one argument:
  30389. * (value).
  30390. *
  30391. * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
  30392. *
  30393. * @static
  30394. * @memberOf _
  30395. * @since 4.0.0
  30396. * @category Array
  30397. * @param {Array} array The array to inspect.
  30398. * @param {...Array} [values] The values to exclude.
  30399. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  30400. * @returns {Array} Returns the new array of filtered values.
  30401. * @example
  30402. *
  30403. * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  30404. * // => [1.2]
  30405. *
  30406. * // The `_.property` iteratee shorthand.
  30407. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
  30408. * // => [{ 'x': 2 }]
  30409. */
  30410. var differenceBy = baseRest(function(array, values) {
  30411. var iteratee = last(values);
  30412. if (isArrayLikeObject(iteratee)) {
  30413. iteratee = undefined;
  30414. }
  30415. return isArrayLikeObject(array)
  30416. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
  30417. : [];
  30418. });
  30419. /**
  30420. * This method is like `_.difference` except that it accepts `comparator`
  30421. * which is invoked to compare elements of `array` to `values`. The order and
  30422. * references of result values are determined by the first array. The comparator
  30423. * is invoked with two arguments: (arrVal, othVal).
  30424. *
  30425. * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
  30426. *
  30427. * @static
  30428. * @memberOf _
  30429. * @since 4.0.0
  30430. * @category Array
  30431. * @param {Array} array The array to inspect.
  30432. * @param {...Array} [values] The values to exclude.
  30433. * @param {Function} [comparator] The comparator invoked per element.
  30434. * @returns {Array} Returns the new array of filtered values.
  30435. * @example
  30436. *
  30437. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  30438. *
  30439. * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
  30440. * // => [{ 'x': 2, 'y': 1 }]
  30441. */
  30442. var differenceWith = baseRest(function(array, values) {
  30443. var comparator = last(values);
  30444. if (isArrayLikeObject(comparator)) {
  30445. comparator = undefined;
  30446. }
  30447. return isArrayLikeObject(array)
  30448. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
  30449. : [];
  30450. });
  30451. /**
  30452. * Creates a slice of `array` with `n` elements dropped from the beginning.
  30453. *
  30454. * @static
  30455. * @memberOf _
  30456. * @since 0.5.0
  30457. * @category Array
  30458. * @param {Array} array The array to query.
  30459. * @param {number} [n=1] The number of elements to drop.
  30460. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  30461. * @returns {Array} Returns the slice of `array`.
  30462. * @example
  30463. *
  30464. * _.drop([1, 2, 3]);
  30465. * // => [2, 3]
  30466. *
  30467. * _.drop([1, 2, 3], 2);
  30468. * // => [3]
  30469. *
  30470. * _.drop([1, 2, 3], 5);
  30471. * // => []
  30472. *
  30473. * _.drop([1, 2, 3], 0);
  30474. * // => [1, 2, 3]
  30475. */
  30476. function drop(array, n, guard) {
  30477. var length = array == null ? 0 : array.length;
  30478. if (!length) {
  30479. return [];
  30480. }
  30481. n = (guard || n === undefined) ? 1 : toInteger(n);
  30482. return baseSlice(array, n < 0 ? 0 : n, length);
  30483. }
  30484. /**
  30485. * Creates a slice of `array` with `n` elements dropped from the end.
  30486. *
  30487. * @static
  30488. * @memberOf _
  30489. * @since 3.0.0
  30490. * @category Array
  30491. * @param {Array} array The array to query.
  30492. * @param {number} [n=1] The number of elements to drop.
  30493. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  30494. * @returns {Array} Returns the slice of `array`.
  30495. * @example
  30496. *
  30497. * _.dropRight([1, 2, 3]);
  30498. * // => [1, 2]
  30499. *
  30500. * _.dropRight([1, 2, 3], 2);
  30501. * // => [1]
  30502. *
  30503. * _.dropRight([1, 2, 3], 5);
  30504. * // => []
  30505. *
  30506. * _.dropRight([1, 2, 3], 0);
  30507. * // => [1, 2, 3]
  30508. */
  30509. function dropRight(array, n, guard) {
  30510. var length = array == null ? 0 : array.length;
  30511. if (!length) {
  30512. return [];
  30513. }
  30514. n = (guard || n === undefined) ? 1 : toInteger(n);
  30515. n = length - n;
  30516. return baseSlice(array, 0, n < 0 ? 0 : n);
  30517. }
  30518. /**
  30519. * Creates a slice of `array` excluding elements dropped from the end.
  30520. * Elements are dropped until `predicate` returns falsey. The predicate is
  30521. * invoked with three arguments: (value, index, array).
  30522. *
  30523. * @static
  30524. * @memberOf _
  30525. * @since 3.0.0
  30526. * @category Array
  30527. * @param {Array} array The array to query.
  30528. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  30529. * @returns {Array} Returns the slice of `array`.
  30530. * @example
  30531. *
  30532. * var users = [
  30533. * { 'user': 'barney', 'active': true },
  30534. * { 'user': 'fred', 'active': false },
  30535. * { 'user': 'pebbles', 'active': false }
  30536. * ];
  30537. *
  30538. * _.dropRightWhile(users, function(o) { return !o.active; });
  30539. * // => objects for ['barney']
  30540. *
  30541. * // The `_.matches` iteratee shorthand.
  30542. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
  30543. * // => objects for ['barney', 'fred']
  30544. *
  30545. * // The `_.matchesProperty` iteratee shorthand.
  30546. * _.dropRightWhile(users, ['active', false]);
  30547. * // => objects for ['barney']
  30548. *
  30549. * // The `_.property` iteratee shorthand.
  30550. * _.dropRightWhile(users, 'active');
  30551. * // => objects for ['barney', 'fred', 'pebbles']
  30552. */
  30553. function dropRightWhile(array, predicate) {
  30554. return (array && array.length)
  30555. ? baseWhile(array, getIteratee(predicate, 3), true, true)
  30556. : [];
  30557. }
  30558. /**
  30559. * Creates a slice of `array` excluding elements dropped from the beginning.
  30560. * Elements are dropped until `predicate` returns falsey. The predicate is
  30561. * invoked with three arguments: (value, index, array).
  30562. *
  30563. * @static
  30564. * @memberOf _
  30565. * @since 3.0.0
  30566. * @category Array
  30567. * @param {Array} array The array to query.
  30568. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  30569. * @returns {Array} Returns the slice of `array`.
  30570. * @example
  30571. *
  30572. * var users = [
  30573. * { 'user': 'barney', 'active': false },
  30574. * { 'user': 'fred', 'active': false },
  30575. * { 'user': 'pebbles', 'active': true }
  30576. * ];
  30577. *
  30578. * _.dropWhile(users, function(o) { return !o.active; });
  30579. * // => objects for ['pebbles']
  30580. *
  30581. * // The `_.matches` iteratee shorthand.
  30582. * _.dropWhile(users, { 'user': 'barney', 'active': false });
  30583. * // => objects for ['fred', 'pebbles']
  30584. *
  30585. * // The `_.matchesProperty` iteratee shorthand.
  30586. * _.dropWhile(users, ['active', false]);
  30587. * // => objects for ['pebbles']
  30588. *
  30589. * // The `_.property` iteratee shorthand.
  30590. * _.dropWhile(users, 'active');
  30591. * // => objects for ['barney', 'fred', 'pebbles']
  30592. */
  30593. function dropWhile(array, predicate) {
  30594. return (array && array.length)
  30595. ? baseWhile(array, getIteratee(predicate, 3), true)
  30596. : [];
  30597. }
  30598. /**
  30599. * Fills elements of `array` with `value` from `start` up to, but not
  30600. * including, `end`.
  30601. *
  30602. * **Note:** This method mutates `array`.
  30603. *
  30604. * @static
  30605. * @memberOf _
  30606. * @since 3.2.0
  30607. * @category Array
  30608. * @param {Array} array The array to fill.
  30609. * @param {*} value The value to fill `array` with.
  30610. * @param {number} [start=0] The start position.
  30611. * @param {number} [end=array.length] The end position.
  30612. * @returns {Array} Returns `array`.
  30613. * @example
  30614. *
  30615. * var array = [1, 2, 3];
  30616. *
  30617. * _.fill(array, 'a');
  30618. * console.log(array);
  30619. * // => ['a', 'a', 'a']
  30620. *
  30621. * _.fill(Array(3), 2);
  30622. * // => [2, 2, 2]
  30623. *
  30624. * _.fill([4, 6, 8, 10], '*', 1, 3);
  30625. * // => [4, '*', '*', 10]
  30626. */
  30627. function fill(array, value, start, end) {
  30628. var length = array == null ? 0 : array.length;
  30629. if (!length) {
  30630. return [];
  30631. }
  30632. if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
  30633. start = 0;
  30634. end = length;
  30635. }
  30636. return baseFill(array, value, start, end);
  30637. }
  30638. /**
  30639. * This method is like `_.find` except that it returns the index of the first
  30640. * element `predicate` returns truthy for instead of the element itself.
  30641. *
  30642. * @static
  30643. * @memberOf _
  30644. * @since 1.1.0
  30645. * @category Array
  30646. * @param {Array} array The array to inspect.
  30647. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  30648. * @param {number} [fromIndex=0] The index to search from.
  30649. * @returns {number} Returns the index of the found element, else `-1`.
  30650. * @example
  30651. *
  30652. * var users = [
  30653. * { 'user': 'barney', 'active': false },
  30654. * { 'user': 'fred', 'active': false },
  30655. * { 'user': 'pebbles', 'active': true }
  30656. * ];
  30657. *
  30658. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  30659. * // => 0
  30660. *
  30661. * // The `_.matches` iteratee shorthand.
  30662. * _.findIndex(users, { 'user': 'fred', 'active': false });
  30663. * // => 1
  30664. *
  30665. * // The `_.matchesProperty` iteratee shorthand.
  30666. * _.findIndex(users, ['active', false]);
  30667. * // => 0
  30668. *
  30669. * // The `_.property` iteratee shorthand.
  30670. * _.findIndex(users, 'active');
  30671. * // => 2
  30672. */
  30673. function findIndex(array, predicate, fromIndex) {
  30674. var length = array == null ? 0 : array.length;
  30675. if (!length) {
  30676. return -1;
  30677. }
  30678. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  30679. if (index < 0) {
  30680. index = nativeMax(length + index, 0);
  30681. }
  30682. return baseFindIndex(array, getIteratee(predicate, 3), index);
  30683. }
  30684. /**
  30685. * This method is like `_.findIndex` except that it iterates over elements
  30686. * of `collection` from right to left.
  30687. *
  30688. * @static
  30689. * @memberOf _
  30690. * @since 2.0.0
  30691. * @category Array
  30692. * @param {Array} array The array to inspect.
  30693. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  30694. * @param {number} [fromIndex=array.length-1] The index to search from.
  30695. * @returns {number} Returns the index of the found element, else `-1`.
  30696. * @example
  30697. *
  30698. * var users = [
  30699. * { 'user': 'barney', 'active': true },
  30700. * { 'user': 'fred', 'active': false },
  30701. * { 'user': 'pebbles', 'active': false }
  30702. * ];
  30703. *
  30704. * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
  30705. * // => 2
  30706. *
  30707. * // The `_.matches` iteratee shorthand.
  30708. * _.findLastIndex(users, { 'user': 'barney', 'active': true });
  30709. * // => 0
  30710. *
  30711. * // The `_.matchesProperty` iteratee shorthand.
  30712. * _.findLastIndex(users, ['active', false]);
  30713. * // => 2
  30714. *
  30715. * // The `_.property` iteratee shorthand.
  30716. * _.findLastIndex(users, 'active');
  30717. * // => 0
  30718. */
  30719. function findLastIndex(array, predicate, fromIndex) {
  30720. var length = array == null ? 0 : array.length;
  30721. if (!length) {
  30722. return -1;
  30723. }
  30724. var index = length - 1;
  30725. if (fromIndex !== undefined) {
  30726. index = toInteger(fromIndex);
  30727. index = fromIndex < 0
  30728. ? nativeMax(length + index, 0)
  30729. : nativeMin(index, length - 1);
  30730. }
  30731. return baseFindIndex(array, getIteratee(predicate, 3), index, true);
  30732. }
  30733. /**
  30734. * Flattens `array` a single level deep.
  30735. *
  30736. * @static
  30737. * @memberOf _
  30738. * @since 0.1.0
  30739. * @category Array
  30740. * @param {Array} array The array to flatten.
  30741. * @returns {Array} Returns the new flattened array.
  30742. * @example
  30743. *
  30744. * _.flatten([1, [2, [3, [4]], 5]]);
  30745. * // => [1, 2, [3, [4]], 5]
  30746. */
  30747. function flatten(array) {
  30748. var length = array == null ? 0 : array.length;
  30749. return length ? baseFlatten(array, 1) : [];
  30750. }
  30751. /**
  30752. * Recursively flattens `array`.
  30753. *
  30754. * @static
  30755. * @memberOf _
  30756. * @since 3.0.0
  30757. * @category Array
  30758. * @param {Array} array The array to flatten.
  30759. * @returns {Array} Returns the new flattened array.
  30760. * @example
  30761. *
  30762. * _.flattenDeep([1, [2, [3, [4]], 5]]);
  30763. * // => [1, 2, 3, 4, 5]
  30764. */
  30765. function flattenDeep(array) {
  30766. var length = array == null ? 0 : array.length;
  30767. return length ? baseFlatten(array, INFINITY) : [];
  30768. }
  30769. /**
  30770. * Recursively flatten `array` up to `depth` times.
  30771. *
  30772. * @static
  30773. * @memberOf _
  30774. * @since 4.4.0
  30775. * @category Array
  30776. * @param {Array} array The array to flatten.
  30777. * @param {number} [depth=1] The maximum recursion depth.
  30778. * @returns {Array} Returns the new flattened array.
  30779. * @example
  30780. *
  30781. * var array = [1, [2, [3, [4]], 5]];
  30782. *
  30783. * _.flattenDepth(array, 1);
  30784. * // => [1, 2, [3, [4]], 5]
  30785. *
  30786. * _.flattenDepth(array, 2);
  30787. * // => [1, 2, 3, [4], 5]
  30788. */
  30789. function flattenDepth(array, depth) {
  30790. var length = array == null ? 0 : array.length;
  30791. if (!length) {
  30792. return [];
  30793. }
  30794. depth = depth === undefined ? 1 : toInteger(depth);
  30795. return baseFlatten(array, depth);
  30796. }
  30797. /**
  30798. * The inverse of `_.toPairs`; this method returns an object composed
  30799. * from key-value `pairs`.
  30800. *
  30801. * @static
  30802. * @memberOf _
  30803. * @since 4.0.0
  30804. * @category Array
  30805. * @param {Array} pairs The key-value pairs.
  30806. * @returns {Object} Returns the new object.
  30807. * @example
  30808. *
  30809. * _.fromPairs([['a', 1], ['b', 2]]);
  30810. * // => { 'a': 1, 'b': 2 }
  30811. */
  30812. function fromPairs(pairs) {
  30813. var index = -1,
  30814. length = pairs == null ? 0 : pairs.length,
  30815. result = {};
  30816. while (++index < length) {
  30817. var pair = pairs[index];
  30818. result[pair[0]] = pair[1];
  30819. }
  30820. return result;
  30821. }
  30822. /**
  30823. * Gets the first element of `array`.
  30824. *
  30825. * @static
  30826. * @memberOf _
  30827. * @since 0.1.0
  30828. * @alias first
  30829. * @category Array
  30830. * @param {Array} array The array to query.
  30831. * @returns {*} Returns the first element of `array`.
  30832. * @example
  30833. *
  30834. * _.head([1, 2, 3]);
  30835. * // => 1
  30836. *
  30837. * _.head([]);
  30838. * // => undefined
  30839. */
  30840. function head(array) {
  30841. return (array && array.length) ? array[0] : undefined;
  30842. }
  30843. /**
  30844. * Gets the index at which the first occurrence of `value` is found in `array`
  30845. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  30846. * for equality comparisons. If `fromIndex` is negative, it's used as the
  30847. * offset from the end of `array`.
  30848. *
  30849. * @static
  30850. * @memberOf _
  30851. * @since 0.1.0
  30852. * @category Array
  30853. * @param {Array} array The array to inspect.
  30854. * @param {*} value The value to search for.
  30855. * @param {number} [fromIndex=0] The index to search from.
  30856. * @returns {number} Returns the index of the matched value, else `-1`.
  30857. * @example
  30858. *
  30859. * _.indexOf([1, 2, 1, 2], 2);
  30860. * // => 1
  30861. *
  30862. * // Search from the `fromIndex`.
  30863. * _.indexOf([1, 2, 1, 2], 2, 2);
  30864. * // => 3
  30865. */
  30866. function indexOf(array, value, fromIndex) {
  30867. var length = array == null ? 0 : array.length;
  30868. if (!length) {
  30869. return -1;
  30870. }
  30871. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  30872. if (index < 0) {
  30873. index = nativeMax(length + index, 0);
  30874. }
  30875. return baseIndexOf(array, value, index);
  30876. }
  30877. /**
  30878. * Gets all but the last element of `array`.
  30879. *
  30880. * @static
  30881. * @memberOf _
  30882. * @since 0.1.0
  30883. * @category Array
  30884. * @param {Array} array The array to query.
  30885. * @returns {Array} Returns the slice of `array`.
  30886. * @example
  30887. *
  30888. * _.initial([1, 2, 3]);
  30889. * // => [1, 2]
  30890. */
  30891. function initial(array) {
  30892. var length = array == null ? 0 : array.length;
  30893. return length ? baseSlice(array, 0, -1) : [];
  30894. }
  30895. /**
  30896. * Creates an array of unique values that are included in all given arrays
  30897. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  30898. * for equality comparisons. The order and references of result values are
  30899. * determined by the first array.
  30900. *
  30901. * @static
  30902. * @memberOf _
  30903. * @since 0.1.0
  30904. * @category Array
  30905. * @param {...Array} [arrays] The arrays to inspect.
  30906. * @returns {Array} Returns the new array of intersecting values.
  30907. * @example
  30908. *
  30909. * _.intersection([2, 1], [2, 3]);
  30910. * // => [2]
  30911. */
  30912. var intersection = baseRest(function(arrays) {
  30913. var mapped = arrayMap(arrays, castArrayLikeObject);
  30914. return (mapped.length && mapped[0] === arrays[0])
  30915. ? baseIntersection(mapped)
  30916. : [];
  30917. });
  30918. /**
  30919. * This method is like `_.intersection` except that it accepts `iteratee`
  30920. * which is invoked for each element of each `arrays` to generate the criterion
  30921. * by which they're compared. The order and references of result values are
  30922. * determined by the first array. The iteratee is invoked with one argument:
  30923. * (value).
  30924. *
  30925. * @static
  30926. * @memberOf _
  30927. * @since 4.0.0
  30928. * @category Array
  30929. * @param {...Array} [arrays] The arrays to inspect.
  30930. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  30931. * @returns {Array} Returns the new array of intersecting values.
  30932. * @example
  30933. *
  30934. * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  30935. * // => [2.1]
  30936. *
  30937. * // The `_.property` iteratee shorthand.
  30938. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  30939. * // => [{ 'x': 1 }]
  30940. */
  30941. var intersectionBy = baseRest(function(arrays) {
  30942. var iteratee = last(arrays),
  30943. mapped = arrayMap(arrays, castArrayLikeObject);
  30944. if (iteratee === last(mapped)) {
  30945. iteratee = undefined;
  30946. } else {
  30947. mapped.pop();
  30948. }
  30949. return (mapped.length && mapped[0] === arrays[0])
  30950. ? baseIntersection(mapped, getIteratee(iteratee, 2))
  30951. : [];
  30952. });
  30953. /**
  30954. * This method is like `_.intersection` except that it accepts `comparator`
  30955. * which is invoked to compare elements of `arrays`. The order and references
  30956. * of result values are determined by the first array. The comparator is
  30957. * invoked with two arguments: (arrVal, othVal).
  30958. *
  30959. * @static
  30960. * @memberOf _
  30961. * @since 4.0.0
  30962. * @category Array
  30963. * @param {...Array} [arrays] The arrays to inspect.
  30964. * @param {Function} [comparator] The comparator invoked per element.
  30965. * @returns {Array} Returns the new array of intersecting values.
  30966. * @example
  30967. *
  30968. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  30969. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  30970. *
  30971. * _.intersectionWith(objects, others, _.isEqual);
  30972. * // => [{ 'x': 1, 'y': 2 }]
  30973. */
  30974. var intersectionWith = baseRest(function(arrays) {
  30975. var comparator = last(arrays),
  30976. mapped = arrayMap(arrays, castArrayLikeObject);
  30977. comparator = typeof comparator == 'function' ? comparator : undefined;
  30978. if (comparator) {
  30979. mapped.pop();
  30980. }
  30981. return (mapped.length && mapped[0] === arrays[0])
  30982. ? baseIntersection(mapped, undefined, comparator)
  30983. : [];
  30984. });
  30985. /**
  30986. * Converts all elements in `array` into a string separated by `separator`.
  30987. *
  30988. * @static
  30989. * @memberOf _
  30990. * @since 4.0.0
  30991. * @category Array
  30992. * @param {Array} array The array to convert.
  30993. * @param {string} [separator=','] The element separator.
  30994. * @returns {string} Returns the joined string.
  30995. * @example
  30996. *
  30997. * _.join(['a', 'b', 'c'], '~');
  30998. * // => 'a~b~c'
  30999. */
  31000. function join(array, separator) {
  31001. return array == null ? '' : nativeJoin.call(array, separator);
  31002. }
  31003. /**
  31004. * Gets the last element of `array`.
  31005. *
  31006. * @static
  31007. * @memberOf _
  31008. * @since 0.1.0
  31009. * @category Array
  31010. * @param {Array} array The array to query.
  31011. * @returns {*} Returns the last element of `array`.
  31012. * @example
  31013. *
  31014. * _.last([1, 2, 3]);
  31015. * // => 3
  31016. */
  31017. function last(array) {
  31018. var length = array == null ? 0 : array.length;
  31019. return length ? array[length - 1] : undefined;
  31020. }
  31021. /**
  31022. * This method is like `_.indexOf` except that it iterates over elements of
  31023. * `array` from right to left.
  31024. *
  31025. * @static
  31026. * @memberOf _
  31027. * @since 0.1.0
  31028. * @category Array
  31029. * @param {Array} array The array to inspect.
  31030. * @param {*} value The value to search for.
  31031. * @param {number} [fromIndex=array.length-1] The index to search from.
  31032. * @returns {number} Returns the index of the matched value, else `-1`.
  31033. * @example
  31034. *
  31035. * _.lastIndexOf([1, 2, 1, 2], 2);
  31036. * // => 3
  31037. *
  31038. * // Search from the `fromIndex`.
  31039. * _.lastIndexOf([1, 2, 1, 2], 2, 2);
  31040. * // => 1
  31041. */
  31042. function lastIndexOf(array, value, fromIndex) {
  31043. var length = array == null ? 0 : array.length;
  31044. if (!length) {
  31045. return -1;
  31046. }
  31047. var index = length;
  31048. if (fromIndex !== undefined) {
  31049. index = toInteger(fromIndex);
  31050. index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
  31051. }
  31052. return value === value
  31053. ? strictLastIndexOf(array, value, index)
  31054. : baseFindIndex(array, baseIsNaN, index, true);
  31055. }
  31056. /**
  31057. * Gets the element at index `n` of `array`. If `n` is negative, the nth
  31058. * element from the end is returned.
  31059. *
  31060. * @static
  31061. * @memberOf _
  31062. * @since 4.11.0
  31063. * @category Array
  31064. * @param {Array} array The array to query.
  31065. * @param {number} [n=0] The index of the element to return.
  31066. * @returns {*} Returns the nth element of `array`.
  31067. * @example
  31068. *
  31069. * var array = ['a', 'b', 'c', 'd'];
  31070. *
  31071. * _.nth(array, 1);
  31072. * // => 'b'
  31073. *
  31074. * _.nth(array, -2);
  31075. * // => 'c';
  31076. */
  31077. function nth(array, n) {
  31078. return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
  31079. }
  31080. /**
  31081. * Removes all given values from `array` using
  31082. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  31083. * for equality comparisons.
  31084. *
  31085. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  31086. * to remove elements from an array by predicate.
  31087. *
  31088. * @static
  31089. * @memberOf _
  31090. * @since 2.0.0
  31091. * @category Array
  31092. * @param {Array} array The array to modify.
  31093. * @param {...*} [values] The values to remove.
  31094. * @returns {Array} Returns `array`.
  31095. * @example
  31096. *
  31097. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  31098. *
  31099. * _.pull(array, 'a', 'c');
  31100. * console.log(array);
  31101. * // => ['b', 'b']
  31102. */
  31103. var pull = baseRest(pullAll);
  31104. /**
  31105. * This method is like `_.pull` except that it accepts an array of values to remove.
  31106. *
  31107. * **Note:** Unlike `_.difference`, this method mutates `array`.
  31108. *
  31109. * @static
  31110. * @memberOf _
  31111. * @since 4.0.0
  31112. * @category Array
  31113. * @param {Array} array The array to modify.
  31114. * @param {Array} values The values to remove.
  31115. * @returns {Array} Returns `array`.
  31116. * @example
  31117. *
  31118. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  31119. *
  31120. * _.pullAll(array, ['a', 'c']);
  31121. * console.log(array);
  31122. * // => ['b', 'b']
  31123. */
  31124. function pullAll(array, values) {
  31125. return (array && array.length && values && values.length)
  31126. ? basePullAll(array, values)
  31127. : array;
  31128. }
  31129. /**
  31130. * This method is like `_.pullAll` except that it accepts `iteratee` which is
  31131. * invoked for each element of `array` and `values` to generate the criterion
  31132. * by which they're compared. The iteratee is invoked with one argument: (value).
  31133. *
  31134. * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
  31135. *
  31136. * @static
  31137. * @memberOf _
  31138. * @since 4.0.0
  31139. * @category Array
  31140. * @param {Array} array The array to modify.
  31141. * @param {Array} values The values to remove.
  31142. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31143. * @returns {Array} Returns `array`.
  31144. * @example
  31145. *
  31146. * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
  31147. *
  31148. * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
  31149. * console.log(array);
  31150. * // => [{ 'x': 2 }]
  31151. */
  31152. function pullAllBy(array, values, iteratee) {
  31153. return (array && array.length && values && values.length)
  31154. ? basePullAll(array, values, getIteratee(iteratee, 2))
  31155. : array;
  31156. }
  31157. /**
  31158. * This method is like `_.pullAll` except that it accepts `comparator` which
  31159. * is invoked to compare elements of `array` to `values`. The comparator is
  31160. * invoked with two arguments: (arrVal, othVal).
  31161. *
  31162. * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
  31163. *
  31164. * @static
  31165. * @memberOf _
  31166. * @since 4.6.0
  31167. * @category Array
  31168. * @param {Array} array The array to modify.
  31169. * @param {Array} values The values to remove.
  31170. * @param {Function} [comparator] The comparator invoked per element.
  31171. * @returns {Array} Returns `array`.
  31172. * @example
  31173. *
  31174. * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
  31175. *
  31176. * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
  31177. * console.log(array);
  31178. * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
  31179. */
  31180. function pullAllWith(array, values, comparator) {
  31181. return (array && array.length && values && values.length)
  31182. ? basePullAll(array, values, undefined, comparator)
  31183. : array;
  31184. }
  31185. /**
  31186. * Removes elements from `array` corresponding to `indexes` and returns an
  31187. * array of removed elements.
  31188. *
  31189. * **Note:** Unlike `_.at`, this method mutates `array`.
  31190. *
  31191. * @static
  31192. * @memberOf _
  31193. * @since 3.0.0
  31194. * @category Array
  31195. * @param {Array} array The array to modify.
  31196. * @param {...(number|number[])} [indexes] The indexes of elements to remove.
  31197. * @returns {Array} Returns the new array of removed elements.
  31198. * @example
  31199. *
  31200. * var array = ['a', 'b', 'c', 'd'];
  31201. * var pulled = _.pullAt(array, [1, 3]);
  31202. *
  31203. * console.log(array);
  31204. * // => ['a', 'c']
  31205. *
  31206. * console.log(pulled);
  31207. * // => ['b', 'd']
  31208. */
  31209. var pullAt = flatRest(function(array, indexes) {
  31210. var length = array == null ? 0 : array.length,
  31211. result = baseAt(array, indexes);
  31212. basePullAt(array, arrayMap(indexes, function(index) {
  31213. return isIndex(index, length) ? +index : index;
  31214. }).sort(compareAscending));
  31215. return result;
  31216. });
  31217. /**
  31218. * Removes all elements from `array` that `predicate` returns truthy for
  31219. * and returns an array of the removed elements. The predicate is invoked
  31220. * with three arguments: (value, index, array).
  31221. *
  31222. * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
  31223. * to pull elements from an array by value.
  31224. *
  31225. * @static
  31226. * @memberOf _
  31227. * @since 2.0.0
  31228. * @category Array
  31229. * @param {Array} array The array to modify.
  31230. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  31231. * @returns {Array} Returns the new array of removed elements.
  31232. * @example
  31233. *
  31234. * var array = [1, 2, 3, 4];
  31235. * var evens = _.remove(array, function(n) {
  31236. * return n % 2 == 0;
  31237. * });
  31238. *
  31239. * console.log(array);
  31240. * // => [1, 3]
  31241. *
  31242. * console.log(evens);
  31243. * // => [2, 4]
  31244. */
  31245. function remove(array, predicate) {
  31246. var result = [];
  31247. if (!(array && array.length)) {
  31248. return result;
  31249. }
  31250. var index = -1,
  31251. indexes = [],
  31252. length = array.length;
  31253. predicate = getIteratee(predicate, 3);
  31254. while (++index < length) {
  31255. var value = array[index];
  31256. if (predicate(value, index, array)) {
  31257. result.push(value);
  31258. indexes.push(index);
  31259. }
  31260. }
  31261. basePullAt(array, indexes);
  31262. return result;
  31263. }
  31264. /**
  31265. * Reverses `array` so that the first element becomes the last, the second
  31266. * element becomes the second to last, and so on.
  31267. *
  31268. * **Note:** This method mutates `array` and is based on
  31269. * [`Array#reverse`](https://mdn.io/Array/reverse).
  31270. *
  31271. * @static
  31272. * @memberOf _
  31273. * @since 4.0.0
  31274. * @category Array
  31275. * @param {Array} array The array to modify.
  31276. * @returns {Array} Returns `array`.
  31277. * @example
  31278. *
  31279. * var array = [1, 2, 3];
  31280. *
  31281. * _.reverse(array);
  31282. * // => [3, 2, 1]
  31283. *
  31284. * console.log(array);
  31285. * // => [3, 2, 1]
  31286. */
  31287. function reverse(array) {
  31288. return array == null ? array : nativeReverse.call(array);
  31289. }
  31290. /**
  31291. * Creates a slice of `array` from `start` up to, but not including, `end`.
  31292. *
  31293. * **Note:** This method is used instead of
  31294. * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
  31295. * returned.
  31296. *
  31297. * @static
  31298. * @memberOf _
  31299. * @since 3.0.0
  31300. * @category Array
  31301. * @param {Array} array The array to slice.
  31302. * @param {number} [start=0] The start position.
  31303. * @param {number} [end=array.length] The end position.
  31304. * @returns {Array} Returns the slice of `array`.
  31305. */
  31306. function slice(array, start, end) {
  31307. var length = array == null ? 0 : array.length;
  31308. if (!length) {
  31309. return [];
  31310. }
  31311. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  31312. start = 0;
  31313. end = length;
  31314. }
  31315. else {
  31316. start = start == null ? 0 : toInteger(start);
  31317. end = end === undefined ? length : toInteger(end);
  31318. }
  31319. return baseSlice(array, start, end);
  31320. }
  31321. /**
  31322. * Uses a binary search to determine the lowest index at which `value`
  31323. * should be inserted into `array` in order to maintain its sort order.
  31324. *
  31325. * @static
  31326. * @memberOf _
  31327. * @since 0.1.0
  31328. * @category Array
  31329. * @param {Array} array The sorted array to inspect.
  31330. * @param {*} value The value to evaluate.
  31331. * @returns {number} Returns the index at which `value` should be inserted
  31332. * into `array`.
  31333. * @example
  31334. *
  31335. * _.sortedIndex([30, 50], 40);
  31336. * // => 1
  31337. */
  31338. function sortedIndex(array, value) {
  31339. return baseSortedIndex(array, value);
  31340. }
  31341. /**
  31342. * This method is like `_.sortedIndex` except that it accepts `iteratee`
  31343. * which is invoked for `value` and each element of `array` to compute their
  31344. * sort ranking. The iteratee is invoked with one argument: (value).
  31345. *
  31346. * @static
  31347. * @memberOf _
  31348. * @since 4.0.0
  31349. * @category Array
  31350. * @param {Array} array The sorted array to inspect.
  31351. * @param {*} value The value to evaluate.
  31352. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31353. * @returns {number} Returns the index at which `value` should be inserted
  31354. * into `array`.
  31355. * @example
  31356. *
  31357. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  31358. *
  31359. * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  31360. * // => 0
  31361. *
  31362. * // The `_.property` iteratee shorthand.
  31363. * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
  31364. * // => 0
  31365. */
  31366. function sortedIndexBy(array, value, iteratee) {
  31367. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
  31368. }
  31369. /**
  31370. * This method is like `_.indexOf` except that it performs a binary
  31371. * search on a sorted `array`.
  31372. *
  31373. * @static
  31374. * @memberOf _
  31375. * @since 4.0.0
  31376. * @category Array
  31377. * @param {Array} array The array to inspect.
  31378. * @param {*} value The value to search for.
  31379. * @returns {number} Returns the index of the matched value, else `-1`.
  31380. * @example
  31381. *
  31382. * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
  31383. * // => 1
  31384. */
  31385. function sortedIndexOf(array, value) {
  31386. var length = array == null ? 0 : array.length;
  31387. if (length) {
  31388. var index = baseSortedIndex(array, value);
  31389. if (index < length && eq(array[index], value)) {
  31390. return index;
  31391. }
  31392. }
  31393. return -1;
  31394. }
  31395. /**
  31396. * This method is like `_.sortedIndex` except that it returns the highest
  31397. * index at which `value` should be inserted into `array` in order to
  31398. * maintain its sort order.
  31399. *
  31400. * @static
  31401. * @memberOf _
  31402. * @since 3.0.0
  31403. * @category Array
  31404. * @param {Array} array The sorted array to inspect.
  31405. * @param {*} value The value to evaluate.
  31406. * @returns {number} Returns the index at which `value` should be inserted
  31407. * into `array`.
  31408. * @example
  31409. *
  31410. * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
  31411. * // => 4
  31412. */
  31413. function sortedLastIndex(array, value) {
  31414. return baseSortedIndex(array, value, true);
  31415. }
  31416. /**
  31417. * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
  31418. * which is invoked for `value` and each element of `array` to compute their
  31419. * sort ranking. The iteratee is invoked with one argument: (value).
  31420. *
  31421. * @static
  31422. * @memberOf _
  31423. * @since 4.0.0
  31424. * @category Array
  31425. * @param {Array} array The sorted array to inspect.
  31426. * @param {*} value The value to evaluate.
  31427. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31428. * @returns {number} Returns the index at which `value` should be inserted
  31429. * into `array`.
  31430. * @example
  31431. *
  31432. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  31433. *
  31434. * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  31435. * // => 1
  31436. *
  31437. * // The `_.property` iteratee shorthand.
  31438. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
  31439. * // => 1
  31440. */
  31441. function sortedLastIndexBy(array, value, iteratee) {
  31442. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
  31443. }
  31444. /**
  31445. * This method is like `_.lastIndexOf` except that it performs a binary
  31446. * search on a sorted `array`.
  31447. *
  31448. * @static
  31449. * @memberOf _
  31450. * @since 4.0.0
  31451. * @category Array
  31452. * @param {Array} array The array to inspect.
  31453. * @param {*} value The value to search for.
  31454. * @returns {number} Returns the index of the matched value, else `-1`.
  31455. * @example
  31456. *
  31457. * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
  31458. * // => 3
  31459. */
  31460. function sortedLastIndexOf(array, value) {
  31461. var length = array == null ? 0 : array.length;
  31462. if (length) {
  31463. var index = baseSortedIndex(array, value, true) - 1;
  31464. if (eq(array[index], value)) {
  31465. return index;
  31466. }
  31467. }
  31468. return -1;
  31469. }
  31470. /**
  31471. * This method is like `_.uniq` except that it's designed and optimized
  31472. * for sorted arrays.
  31473. *
  31474. * @static
  31475. * @memberOf _
  31476. * @since 4.0.0
  31477. * @category Array
  31478. * @param {Array} array The array to inspect.
  31479. * @returns {Array} Returns the new duplicate free array.
  31480. * @example
  31481. *
  31482. * _.sortedUniq([1, 1, 2]);
  31483. * // => [1, 2]
  31484. */
  31485. function sortedUniq(array) {
  31486. return (array && array.length)
  31487. ? baseSortedUniq(array)
  31488. : [];
  31489. }
  31490. /**
  31491. * This method is like `_.uniqBy` except that it's designed and optimized
  31492. * for sorted arrays.
  31493. *
  31494. * @static
  31495. * @memberOf _
  31496. * @since 4.0.0
  31497. * @category Array
  31498. * @param {Array} array The array to inspect.
  31499. * @param {Function} [iteratee] The iteratee invoked per element.
  31500. * @returns {Array} Returns the new duplicate free array.
  31501. * @example
  31502. *
  31503. * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
  31504. * // => [1.1, 2.3]
  31505. */
  31506. function sortedUniqBy(array, iteratee) {
  31507. return (array && array.length)
  31508. ? baseSortedUniq(array, getIteratee(iteratee, 2))
  31509. : [];
  31510. }
  31511. /**
  31512. * Gets all but the first element of `array`.
  31513. *
  31514. * @static
  31515. * @memberOf _
  31516. * @since 4.0.0
  31517. * @category Array
  31518. * @param {Array} array The array to query.
  31519. * @returns {Array} Returns the slice of `array`.
  31520. * @example
  31521. *
  31522. * _.tail([1, 2, 3]);
  31523. * // => [2, 3]
  31524. */
  31525. function tail(array) {
  31526. var length = array == null ? 0 : array.length;
  31527. return length ? baseSlice(array, 1, length) : [];
  31528. }
  31529. /**
  31530. * Creates a slice of `array` with `n` elements taken from the beginning.
  31531. *
  31532. * @static
  31533. * @memberOf _
  31534. * @since 0.1.0
  31535. * @category Array
  31536. * @param {Array} array The array to query.
  31537. * @param {number} [n=1] The number of elements to take.
  31538. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  31539. * @returns {Array} Returns the slice of `array`.
  31540. * @example
  31541. *
  31542. * _.take([1, 2, 3]);
  31543. * // => [1]
  31544. *
  31545. * _.take([1, 2, 3], 2);
  31546. * // => [1, 2]
  31547. *
  31548. * _.take([1, 2, 3], 5);
  31549. * // => [1, 2, 3]
  31550. *
  31551. * _.take([1, 2, 3], 0);
  31552. * // => []
  31553. */
  31554. function take(array, n, guard) {
  31555. if (!(array && array.length)) {
  31556. return [];
  31557. }
  31558. n = (guard || n === undefined) ? 1 : toInteger(n);
  31559. return baseSlice(array, 0, n < 0 ? 0 : n);
  31560. }
  31561. /**
  31562. * Creates a slice of `array` with `n` elements taken from the end.
  31563. *
  31564. * @static
  31565. * @memberOf _
  31566. * @since 3.0.0
  31567. * @category Array
  31568. * @param {Array} array The array to query.
  31569. * @param {number} [n=1] The number of elements to take.
  31570. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  31571. * @returns {Array} Returns the slice of `array`.
  31572. * @example
  31573. *
  31574. * _.takeRight([1, 2, 3]);
  31575. * // => [3]
  31576. *
  31577. * _.takeRight([1, 2, 3], 2);
  31578. * // => [2, 3]
  31579. *
  31580. * _.takeRight([1, 2, 3], 5);
  31581. * // => [1, 2, 3]
  31582. *
  31583. * _.takeRight([1, 2, 3], 0);
  31584. * // => []
  31585. */
  31586. function takeRight(array, n, guard) {
  31587. var length = array == null ? 0 : array.length;
  31588. if (!length) {
  31589. return [];
  31590. }
  31591. n = (guard || n === undefined) ? 1 : toInteger(n);
  31592. n = length - n;
  31593. return baseSlice(array, n < 0 ? 0 : n, length);
  31594. }
  31595. /**
  31596. * Creates a slice of `array` with elements taken from the end. Elements are
  31597. * taken until `predicate` returns falsey. The predicate is invoked with
  31598. * three arguments: (value, index, array).
  31599. *
  31600. * @static
  31601. * @memberOf _
  31602. * @since 3.0.0
  31603. * @category Array
  31604. * @param {Array} array The array to query.
  31605. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  31606. * @returns {Array} Returns the slice of `array`.
  31607. * @example
  31608. *
  31609. * var users = [
  31610. * { 'user': 'barney', 'active': true },
  31611. * { 'user': 'fred', 'active': false },
  31612. * { 'user': 'pebbles', 'active': false }
  31613. * ];
  31614. *
  31615. * _.takeRightWhile(users, function(o) { return !o.active; });
  31616. * // => objects for ['fred', 'pebbles']
  31617. *
  31618. * // The `_.matches` iteratee shorthand.
  31619. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
  31620. * // => objects for ['pebbles']
  31621. *
  31622. * // The `_.matchesProperty` iteratee shorthand.
  31623. * _.takeRightWhile(users, ['active', false]);
  31624. * // => objects for ['fred', 'pebbles']
  31625. *
  31626. * // The `_.property` iteratee shorthand.
  31627. * _.takeRightWhile(users, 'active');
  31628. * // => []
  31629. */
  31630. function takeRightWhile(array, predicate) {
  31631. return (array && array.length)
  31632. ? baseWhile(array, getIteratee(predicate, 3), false, true)
  31633. : [];
  31634. }
  31635. /**
  31636. * Creates a slice of `array` with elements taken from the beginning. Elements
  31637. * are taken until `predicate` returns falsey. The predicate is invoked with
  31638. * three arguments: (value, index, array).
  31639. *
  31640. * @static
  31641. * @memberOf _
  31642. * @since 3.0.0
  31643. * @category Array
  31644. * @param {Array} array The array to query.
  31645. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  31646. * @returns {Array} Returns the slice of `array`.
  31647. * @example
  31648. *
  31649. * var users = [
  31650. * { 'user': 'barney', 'active': false },
  31651. * { 'user': 'fred', 'active': false },
  31652. * { 'user': 'pebbles', 'active': true }
  31653. * ];
  31654. *
  31655. * _.takeWhile(users, function(o) { return !o.active; });
  31656. * // => objects for ['barney', 'fred']
  31657. *
  31658. * // The `_.matches` iteratee shorthand.
  31659. * _.takeWhile(users, { 'user': 'barney', 'active': false });
  31660. * // => objects for ['barney']
  31661. *
  31662. * // The `_.matchesProperty` iteratee shorthand.
  31663. * _.takeWhile(users, ['active', false]);
  31664. * // => objects for ['barney', 'fred']
  31665. *
  31666. * // The `_.property` iteratee shorthand.
  31667. * _.takeWhile(users, 'active');
  31668. * // => []
  31669. */
  31670. function takeWhile(array, predicate) {
  31671. return (array && array.length)
  31672. ? baseWhile(array, getIteratee(predicate, 3))
  31673. : [];
  31674. }
  31675. /**
  31676. * Creates an array of unique values, in order, from all given arrays using
  31677. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  31678. * for equality comparisons.
  31679. *
  31680. * @static
  31681. * @memberOf _
  31682. * @since 0.1.0
  31683. * @category Array
  31684. * @param {...Array} [arrays] The arrays to inspect.
  31685. * @returns {Array} Returns the new array of combined values.
  31686. * @example
  31687. *
  31688. * _.union([2], [1, 2]);
  31689. * // => [2, 1]
  31690. */
  31691. var union = baseRest(function(arrays) {
  31692. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  31693. });
  31694. /**
  31695. * This method is like `_.union` except that it accepts `iteratee` which is
  31696. * invoked for each element of each `arrays` to generate the criterion by
  31697. * which uniqueness is computed. Result values are chosen from the first
  31698. * array in which the value occurs. The iteratee is invoked with one argument:
  31699. * (value).
  31700. *
  31701. * @static
  31702. * @memberOf _
  31703. * @since 4.0.0
  31704. * @category Array
  31705. * @param {...Array} [arrays] The arrays to inspect.
  31706. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31707. * @returns {Array} Returns the new array of combined values.
  31708. * @example
  31709. *
  31710. * _.unionBy([2.1], [1.2, 2.3], Math.floor);
  31711. * // => [2.1, 1.2]
  31712. *
  31713. * // The `_.property` iteratee shorthand.
  31714. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  31715. * // => [{ 'x': 1 }, { 'x': 2 }]
  31716. */
  31717. var unionBy = baseRest(function(arrays) {
  31718. var iteratee = last(arrays);
  31719. if (isArrayLikeObject(iteratee)) {
  31720. iteratee = undefined;
  31721. }
  31722. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
  31723. });
  31724. /**
  31725. * This method is like `_.union` except that it accepts `comparator` which
  31726. * is invoked to compare elements of `arrays`. Result values are chosen from
  31727. * the first array in which the value occurs. The comparator is invoked
  31728. * with two arguments: (arrVal, othVal).
  31729. *
  31730. * @static
  31731. * @memberOf _
  31732. * @since 4.0.0
  31733. * @category Array
  31734. * @param {...Array} [arrays] The arrays to inspect.
  31735. * @param {Function} [comparator] The comparator invoked per element.
  31736. * @returns {Array} Returns the new array of combined values.
  31737. * @example
  31738. *
  31739. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  31740. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  31741. *
  31742. * _.unionWith(objects, others, _.isEqual);
  31743. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  31744. */
  31745. var unionWith = baseRest(function(arrays) {
  31746. var comparator = last(arrays);
  31747. comparator = typeof comparator == 'function' ? comparator : undefined;
  31748. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
  31749. });
  31750. /**
  31751. * Creates a duplicate-free version of an array, using
  31752. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  31753. * for equality comparisons, in which only the first occurrence of each element
  31754. * is kept. The order of result values is determined by the order they occur
  31755. * in the array.
  31756. *
  31757. * @static
  31758. * @memberOf _
  31759. * @since 0.1.0
  31760. * @category Array
  31761. * @param {Array} array The array to inspect.
  31762. * @returns {Array} Returns the new duplicate free array.
  31763. * @example
  31764. *
  31765. * _.uniq([2, 1, 2]);
  31766. * // => [2, 1]
  31767. */
  31768. function uniq(array) {
  31769. return (array && array.length) ? baseUniq(array) : [];
  31770. }
  31771. /**
  31772. * This method is like `_.uniq` except that it accepts `iteratee` which is
  31773. * invoked for each element in `array` to generate the criterion by which
  31774. * uniqueness is computed. The order of result values is determined by the
  31775. * order they occur in the array. The iteratee is invoked with one argument:
  31776. * (value).
  31777. *
  31778. * @static
  31779. * @memberOf _
  31780. * @since 4.0.0
  31781. * @category Array
  31782. * @param {Array} array The array to inspect.
  31783. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31784. * @returns {Array} Returns the new duplicate free array.
  31785. * @example
  31786. *
  31787. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  31788. * // => [2.1, 1.2]
  31789. *
  31790. * // The `_.property` iteratee shorthand.
  31791. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  31792. * // => [{ 'x': 1 }, { 'x': 2 }]
  31793. */
  31794. function uniqBy(array, iteratee) {
  31795. return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
  31796. }
  31797. /**
  31798. * This method is like `_.uniq` except that it accepts `comparator` which
  31799. * is invoked to compare elements of `array`. The order of result values is
  31800. * determined by the order they occur in the array.The comparator is invoked
  31801. * with two arguments: (arrVal, othVal).
  31802. *
  31803. * @static
  31804. * @memberOf _
  31805. * @since 4.0.0
  31806. * @category Array
  31807. * @param {Array} array The array to inspect.
  31808. * @param {Function} [comparator] The comparator invoked per element.
  31809. * @returns {Array} Returns the new duplicate free array.
  31810. * @example
  31811. *
  31812. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  31813. *
  31814. * _.uniqWith(objects, _.isEqual);
  31815. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
  31816. */
  31817. function uniqWith(array, comparator) {
  31818. comparator = typeof comparator == 'function' ? comparator : undefined;
  31819. return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
  31820. }
  31821. /**
  31822. * This method is like `_.zip` except that it accepts an array of grouped
  31823. * elements and creates an array regrouping the elements to their pre-zip
  31824. * configuration.
  31825. *
  31826. * @static
  31827. * @memberOf _
  31828. * @since 1.2.0
  31829. * @category Array
  31830. * @param {Array} array The array of grouped elements to process.
  31831. * @returns {Array} Returns the new array of regrouped elements.
  31832. * @example
  31833. *
  31834. * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
  31835. * // => [['a', 1, true], ['b', 2, false]]
  31836. *
  31837. * _.unzip(zipped);
  31838. * // => [['a', 'b'], [1, 2], [true, false]]
  31839. */
  31840. function unzip(array) {
  31841. if (!(array && array.length)) {
  31842. return [];
  31843. }
  31844. var length = 0;
  31845. array = arrayFilter(array, function(group) {
  31846. if (isArrayLikeObject(group)) {
  31847. length = nativeMax(group.length, length);
  31848. return true;
  31849. }
  31850. });
  31851. return baseTimes(length, function(index) {
  31852. return arrayMap(array, baseProperty(index));
  31853. });
  31854. }
  31855. /**
  31856. * This method is like `_.unzip` except that it accepts `iteratee` to specify
  31857. * how regrouped values should be combined. The iteratee is invoked with the
  31858. * elements of each group: (...group).
  31859. *
  31860. * @static
  31861. * @memberOf _
  31862. * @since 3.8.0
  31863. * @category Array
  31864. * @param {Array} array The array of grouped elements to process.
  31865. * @param {Function} [iteratee=_.identity] The function to combine
  31866. * regrouped values.
  31867. * @returns {Array} Returns the new array of regrouped elements.
  31868. * @example
  31869. *
  31870. * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
  31871. * // => [[1, 10, 100], [2, 20, 200]]
  31872. *
  31873. * _.unzipWith(zipped, _.add);
  31874. * // => [3, 30, 300]
  31875. */
  31876. function unzipWith(array, iteratee) {
  31877. if (!(array && array.length)) {
  31878. return [];
  31879. }
  31880. var result = unzip(array);
  31881. if (iteratee == null) {
  31882. return result;
  31883. }
  31884. return arrayMap(result, function(group) {
  31885. return apply(iteratee, undefined, group);
  31886. });
  31887. }
  31888. /**
  31889. * Creates an array excluding all given values using
  31890. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  31891. * for equality comparisons.
  31892. *
  31893. * **Note:** Unlike `_.pull`, this method returns a new array.
  31894. *
  31895. * @static
  31896. * @memberOf _
  31897. * @since 0.1.0
  31898. * @category Array
  31899. * @param {Array} array The array to inspect.
  31900. * @param {...*} [values] The values to exclude.
  31901. * @returns {Array} Returns the new array of filtered values.
  31902. * @see _.difference, _.xor
  31903. * @example
  31904. *
  31905. * _.without([2, 1, 2, 3], 1, 2);
  31906. * // => [3]
  31907. */
  31908. var without = baseRest(function(array, values) {
  31909. return isArrayLikeObject(array)
  31910. ? baseDifference(array, values)
  31911. : [];
  31912. });
  31913. /**
  31914. * Creates an array of unique values that is the
  31915. * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
  31916. * of the given arrays. The order of result values is determined by the order
  31917. * they occur in the arrays.
  31918. *
  31919. * @static
  31920. * @memberOf _
  31921. * @since 2.4.0
  31922. * @category Array
  31923. * @param {...Array} [arrays] The arrays to inspect.
  31924. * @returns {Array} Returns the new array of filtered values.
  31925. * @see _.difference, _.without
  31926. * @example
  31927. *
  31928. * _.xor([2, 1], [2, 3]);
  31929. * // => [1, 3]
  31930. */
  31931. var xor = baseRest(function(arrays) {
  31932. return baseXor(arrayFilter(arrays, isArrayLikeObject));
  31933. });
  31934. /**
  31935. * This method is like `_.xor` except that it accepts `iteratee` which is
  31936. * invoked for each element of each `arrays` to generate the criterion by
  31937. * which by which they're compared. The order of result values is determined
  31938. * by the order they occur in the arrays. The iteratee is invoked with one
  31939. * argument: (value).
  31940. *
  31941. * @static
  31942. * @memberOf _
  31943. * @since 4.0.0
  31944. * @category Array
  31945. * @param {...Array} [arrays] The arrays to inspect.
  31946. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31947. * @returns {Array} Returns the new array of filtered values.
  31948. * @example
  31949. *
  31950. * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  31951. * // => [1.2, 3.4]
  31952. *
  31953. * // The `_.property` iteratee shorthand.
  31954. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  31955. * // => [{ 'x': 2 }]
  31956. */
  31957. var xorBy = baseRest(function(arrays) {
  31958. var iteratee = last(arrays);
  31959. if (isArrayLikeObject(iteratee)) {
  31960. iteratee = undefined;
  31961. }
  31962. return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
  31963. });
  31964. /**
  31965. * This method is like `_.xor` except that it accepts `comparator` which is
  31966. * invoked to compare elements of `arrays`. The order of result values is
  31967. * determined by the order they occur in the arrays. The comparator is invoked
  31968. * with two arguments: (arrVal, othVal).
  31969. *
  31970. * @static
  31971. * @memberOf _
  31972. * @since 4.0.0
  31973. * @category Array
  31974. * @param {...Array} [arrays] The arrays to inspect.
  31975. * @param {Function} [comparator] The comparator invoked per element.
  31976. * @returns {Array} Returns the new array of filtered values.
  31977. * @example
  31978. *
  31979. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  31980. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  31981. *
  31982. * _.xorWith(objects, others, _.isEqual);
  31983. * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  31984. */
  31985. var xorWith = baseRest(function(arrays) {
  31986. var comparator = last(arrays);
  31987. comparator = typeof comparator == 'function' ? comparator : undefined;
  31988. return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
  31989. });
  31990. /**
  31991. * Creates an array of grouped elements, the first of which contains the
  31992. * first elements of the given arrays, the second of which contains the
  31993. * second elements of the given arrays, and so on.
  31994. *
  31995. * @static
  31996. * @memberOf _
  31997. * @since 0.1.0
  31998. * @category Array
  31999. * @param {...Array} [arrays] The arrays to process.
  32000. * @returns {Array} Returns the new array of grouped elements.
  32001. * @example
  32002. *
  32003. * _.zip(['a', 'b'], [1, 2], [true, false]);
  32004. * // => [['a', 1, true], ['b', 2, false]]
  32005. */
  32006. var zip = baseRest(unzip);
  32007. /**
  32008. * This method is like `_.fromPairs` except that it accepts two arrays,
  32009. * one of property identifiers and one of corresponding values.
  32010. *
  32011. * @static
  32012. * @memberOf _
  32013. * @since 0.4.0
  32014. * @category Array
  32015. * @param {Array} [props=[]] The property identifiers.
  32016. * @param {Array} [values=[]] The property values.
  32017. * @returns {Object} Returns the new object.
  32018. * @example
  32019. *
  32020. * _.zipObject(['a', 'b'], [1, 2]);
  32021. * // => { 'a': 1, 'b': 2 }
  32022. */
  32023. function zipObject(props, values) {
  32024. return baseZipObject(props || [], values || [], assignValue);
  32025. }
  32026. /**
  32027. * This method is like `_.zipObject` except that it supports property paths.
  32028. *
  32029. * @static
  32030. * @memberOf _
  32031. * @since 4.1.0
  32032. * @category Array
  32033. * @param {Array} [props=[]] The property identifiers.
  32034. * @param {Array} [values=[]] The property values.
  32035. * @returns {Object} Returns the new object.
  32036. * @example
  32037. *
  32038. * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
  32039. * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
  32040. */
  32041. function zipObjectDeep(props, values) {
  32042. return baseZipObject(props || [], values || [], baseSet);
  32043. }
  32044. /**
  32045. * This method is like `_.zip` except that it accepts `iteratee` to specify
  32046. * how grouped values should be combined. The iteratee is invoked with the
  32047. * elements of each group: (...group).
  32048. *
  32049. * @static
  32050. * @memberOf _
  32051. * @since 3.8.0
  32052. * @category Array
  32053. * @param {...Array} [arrays] The arrays to process.
  32054. * @param {Function} [iteratee=_.identity] The function to combine
  32055. * grouped values.
  32056. * @returns {Array} Returns the new array of grouped elements.
  32057. * @example
  32058. *
  32059. * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
  32060. * return a + b + c;
  32061. * });
  32062. * // => [111, 222]
  32063. */
  32064. var zipWith = baseRest(function(arrays) {
  32065. var length = arrays.length,
  32066. iteratee = length > 1 ? arrays[length - 1] : undefined;
  32067. iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
  32068. return unzipWith(arrays, iteratee);
  32069. });
  32070. /*------------------------------------------------------------------------*/
  32071. /**
  32072. * Creates a `lodash` wrapper instance that wraps `value` with explicit method
  32073. * chain sequences enabled. The result of such sequences must be unwrapped
  32074. * with `_#value`.
  32075. *
  32076. * @static
  32077. * @memberOf _
  32078. * @since 1.3.0
  32079. * @category Seq
  32080. * @param {*} value The value to wrap.
  32081. * @returns {Object} Returns the new `lodash` wrapper instance.
  32082. * @example
  32083. *
  32084. * var users = [
  32085. * { 'user': 'barney', 'age': 36 },
  32086. * { 'user': 'fred', 'age': 40 },
  32087. * { 'user': 'pebbles', 'age': 1 }
  32088. * ];
  32089. *
  32090. * var youngest = _
  32091. * .chain(users)
  32092. * .sortBy('age')
  32093. * .map(function(o) {
  32094. * return o.user + ' is ' + o.age;
  32095. * })
  32096. * .head()
  32097. * .value();
  32098. * // => 'pebbles is 1'
  32099. */
  32100. function chain(value) {
  32101. var result = lodash(value);
  32102. result.__chain__ = true;
  32103. return result;
  32104. }
  32105. /**
  32106. * This method invokes `interceptor` and returns `value`. The interceptor
  32107. * is invoked with one argument; (value). The purpose of this method is to
  32108. * "tap into" a method chain sequence in order to modify intermediate results.
  32109. *
  32110. * @static
  32111. * @memberOf _
  32112. * @since 0.1.0
  32113. * @category Seq
  32114. * @param {*} value The value to provide to `interceptor`.
  32115. * @param {Function} interceptor The function to invoke.
  32116. * @returns {*} Returns `value`.
  32117. * @example
  32118. *
  32119. * _([1, 2, 3])
  32120. * .tap(function(array) {
  32121. * // Mutate input array.
  32122. * array.pop();
  32123. * })
  32124. * .reverse()
  32125. * .value();
  32126. * // => [2, 1]
  32127. */
  32128. function tap(value, interceptor) {
  32129. interceptor(value);
  32130. return value;
  32131. }
  32132. /**
  32133. * This method is like `_.tap` except that it returns the result of `interceptor`.
  32134. * The purpose of this method is to "pass thru" values replacing intermediate
  32135. * results in a method chain sequence.
  32136. *
  32137. * @static
  32138. * @memberOf _
  32139. * @since 3.0.0
  32140. * @category Seq
  32141. * @param {*} value The value to provide to `interceptor`.
  32142. * @param {Function} interceptor The function to invoke.
  32143. * @returns {*} Returns the result of `interceptor`.
  32144. * @example
  32145. *
  32146. * _(' abc ')
  32147. * .chain()
  32148. * .trim()
  32149. * .thru(function(value) {
  32150. * return [value];
  32151. * })
  32152. * .value();
  32153. * // => ['abc']
  32154. */
  32155. function thru(value, interceptor) {
  32156. return interceptor(value);
  32157. }
  32158. /**
  32159. * This method is the wrapper version of `_.at`.
  32160. *
  32161. * @name at
  32162. * @memberOf _
  32163. * @since 1.0.0
  32164. * @category Seq
  32165. * @param {...(string|string[])} [paths] The property paths to pick.
  32166. * @returns {Object} Returns the new `lodash` wrapper instance.
  32167. * @example
  32168. *
  32169. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  32170. *
  32171. * _(object).at(['a[0].b.c', 'a[1]']).value();
  32172. * // => [3, 4]
  32173. */
  32174. var wrapperAt = flatRest(function(paths) {
  32175. var length = paths.length,
  32176. start = length ? paths[0] : 0,
  32177. value = this.__wrapped__,
  32178. interceptor = function(object) { return baseAt(object, paths); };
  32179. if (length > 1 || this.__actions__.length ||
  32180. !(value instanceof LazyWrapper) || !isIndex(start)) {
  32181. return this.thru(interceptor);
  32182. }
  32183. value = value.slice(start, +start + (length ? 1 : 0));
  32184. value.__actions__.push({
  32185. 'func': thru,
  32186. 'args': [interceptor],
  32187. 'thisArg': undefined
  32188. });
  32189. return new LodashWrapper(value, this.__chain__).thru(function(array) {
  32190. if (length && !array.length) {
  32191. array.push(undefined);
  32192. }
  32193. return array;
  32194. });
  32195. });
  32196. /**
  32197. * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
  32198. *
  32199. * @name chain
  32200. * @memberOf _
  32201. * @since 0.1.0
  32202. * @category Seq
  32203. * @returns {Object} Returns the new `lodash` wrapper instance.
  32204. * @example
  32205. *
  32206. * var users = [
  32207. * { 'user': 'barney', 'age': 36 },
  32208. * { 'user': 'fred', 'age': 40 }
  32209. * ];
  32210. *
  32211. * // A sequence without explicit chaining.
  32212. * _(users).head();
  32213. * // => { 'user': 'barney', 'age': 36 }
  32214. *
  32215. * // A sequence with explicit chaining.
  32216. * _(users)
  32217. * .chain()
  32218. * .head()
  32219. * .pick('user')
  32220. * .value();
  32221. * // => { 'user': 'barney' }
  32222. */
  32223. function wrapperChain() {
  32224. return chain(this);
  32225. }
  32226. /**
  32227. * Executes the chain sequence and returns the wrapped result.
  32228. *
  32229. * @name commit
  32230. * @memberOf _
  32231. * @since 3.2.0
  32232. * @category Seq
  32233. * @returns {Object} Returns the new `lodash` wrapper instance.
  32234. * @example
  32235. *
  32236. * var array = [1, 2];
  32237. * var wrapped = _(array).push(3);
  32238. *
  32239. * console.log(array);
  32240. * // => [1, 2]
  32241. *
  32242. * wrapped = wrapped.commit();
  32243. * console.log(array);
  32244. * // => [1, 2, 3]
  32245. *
  32246. * wrapped.last();
  32247. * // => 3
  32248. *
  32249. * console.log(array);
  32250. * // => [1, 2, 3]
  32251. */
  32252. function wrapperCommit() {
  32253. return new LodashWrapper(this.value(), this.__chain__);
  32254. }
  32255. /**
  32256. * Gets the next value on a wrapped object following the
  32257. * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
  32258. *
  32259. * @name next
  32260. * @memberOf _
  32261. * @since 4.0.0
  32262. * @category Seq
  32263. * @returns {Object} Returns the next iterator value.
  32264. * @example
  32265. *
  32266. * var wrapped = _([1, 2]);
  32267. *
  32268. * wrapped.next();
  32269. * // => { 'done': false, 'value': 1 }
  32270. *
  32271. * wrapped.next();
  32272. * // => { 'done': false, 'value': 2 }
  32273. *
  32274. * wrapped.next();
  32275. * // => { 'done': true, 'value': undefined }
  32276. */
  32277. function wrapperNext() {
  32278. if (this.__values__ === undefined) {
  32279. this.__values__ = toArray(this.value());
  32280. }
  32281. var done = this.__index__ >= this.__values__.length,
  32282. value = done ? undefined : this.__values__[this.__index__++];
  32283. return { 'done': done, 'value': value };
  32284. }
  32285. /**
  32286. * Enables the wrapper to be iterable.
  32287. *
  32288. * @name Symbol.iterator
  32289. * @memberOf _
  32290. * @since 4.0.0
  32291. * @category Seq
  32292. * @returns {Object} Returns the wrapper object.
  32293. * @example
  32294. *
  32295. * var wrapped = _([1, 2]);
  32296. *
  32297. * wrapped[Symbol.iterator]() === wrapped;
  32298. * // => true
  32299. *
  32300. * Array.from(wrapped);
  32301. * // => [1, 2]
  32302. */
  32303. function wrapperToIterator() {
  32304. return this;
  32305. }
  32306. /**
  32307. * Creates a clone of the chain sequence planting `value` as the wrapped value.
  32308. *
  32309. * @name plant
  32310. * @memberOf _
  32311. * @since 3.2.0
  32312. * @category Seq
  32313. * @param {*} value The value to plant.
  32314. * @returns {Object} Returns the new `lodash` wrapper instance.
  32315. * @example
  32316. *
  32317. * function square(n) {
  32318. * return n * n;
  32319. * }
  32320. *
  32321. * var wrapped = _([1, 2]).map(square);
  32322. * var other = wrapped.plant([3, 4]);
  32323. *
  32324. * other.value();
  32325. * // => [9, 16]
  32326. *
  32327. * wrapped.value();
  32328. * // => [1, 4]
  32329. */
  32330. function wrapperPlant(value) {
  32331. var result,
  32332. parent = this;
  32333. while (parent instanceof baseLodash) {
  32334. var clone = wrapperClone(parent);
  32335. clone.__index__ = 0;
  32336. clone.__values__ = undefined;
  32337. if (result) {
  32338. previous.__wrapped__ = clone;
  32339. } else {
  32340. result = clone;
  32341. }
  32342. var previous = clone;
  32343. parent = parent.__wrapped__;
  32344. }
  32345. previous.__wrapped__ = value;
  32346. return result;
  32347. }
  32348. /**
  32349. * This method is the wrapper version of `_.reverse`.
  32350. *
  32351. * **Note:** This method mutates the wrapped array.
  32352. *
  32353. * @name reverse
  32354. * @memberOf _
  32355. * @since 0.1.0
  32356. * @category Seq
  32357. * @returns {Object} Returns the new `lodash` wrapper instance.
  32358. * @example
  32359. *
  32360. * var array = [1, 2, 3];
  32361. *
  32362. * _(array).reverse().value()
  32363. * // => [3, 2, 1]
  32364. *
  32365. * console.log(array);
  32366. * // => [3, 2, 1]
  32367. */
  32368. function wrapperReverse() {
  32369. var value = this.__wrapped__;
  32370. if (value instanceof LazyWrapper) {
  32371. var wrapped = value;
  32372. if (this.__actions__.length) {
  32373. wrapped = new LazyWrapper(this);
  32374. }
  32375. wrapped = wrapped.reverse();
  32376. wrapped.__actions__.push({
  32377. 'func': thru,
  32378. 'args': [reverse],
  32379. 'thisArg': undefined
  32380. });
  32381. return new LodashWrapper(wrapped, this.__chain__);
  32382. }
  32383. return this.thru(reverse);
  32384. }
  32385. /**
  32386. * Executes the chain sequence to resolve the unwrapped value.
  32387. *
  32388. * @name value
  32389. * @memberOf _
  32390. * @since 0.1.0
  32391. * @alias toJSON, valueOf
  32392. * @category Seq
  32393. * @returns {*} Returns the resolved unwrapped value.
  32394. * @example
  32395. *
  32396. * _([1, 2, 3]).value();
  32397. * // => [1, 2, 3]
  32398. */
  32399. function wrapperValue() {
  32400. return baseWrapperValue(this.__wrapped__, this.__actions__);
  32401. }
  32402. /*------------------------------------------------------------------------*/
  32403. /**
  32404. * Creates an object composed of keys generated from the results of running
  32405. * each element of `collection` thru `iteratee`. The corresponding value of
  32406. * each key is the number of times the key was returned by `iteratee`. The
  32407. * iteratee is invoked with one argument: (value).
  32408. *
  32409. * @static
  32410. * @memberOf _
  32411. * @since 0.5.0
  32412. * @category Collection
  32413. * @param {Array|Object} collection The collection to iterate over.
  32414. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  32415. * @returns {Object} Returns the composed aggregate object.
  32416. * @example
  32417. *
  32418. * _.countBy([6.1, 4.2, 6.3], Math.floor);
  32419. * // => { '4': 1, '6': 2 }
  32420. *
  32421. * // The `_.property` iteratee shorthand.
  32422. * _.countBy(['one', 'two', 'three'], 'length');
  32423. * // => { '3': 2, '5': 1 }
  32424. */
  32425. var countBy = createAggregator(function(result, value, key) {
  32426. if (hasOwnProperty.call(result, key)) {
  32427. ++result[key];
  32428. } else {
  32429. baseAssignValue(result, key, 1);
  32430. }
  32431. });
  32432. /**
  32433. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  32434. * Iteration is stopped once `predicate` returns falsey. The predicate is
  32435. * invoked with three arguments: (value, index|key, collection).
  32436. *
  32437. * **Note:** This method returns `true` for
  32438. * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
  32439. * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
  32440. * elements of empty collections.
  32441. *
  32442. * @static
  32443. * @memberOf _
  32444. * @since 0.1.0
  32445. * @category Collection
  32446. * @param {Array|Object} collection The collection to iterate over.
  32447. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  32448. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  32449. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  32450. * else `false`.
  32451. * @example
  32452. *
  32453. * _.every([true, 1, null, 'yes'], Boolean);
  32454. * // => false
  32455. *
  32456. * var users = [
  32457. * { 'user': 'barney', 'age': 36, 'active': false },
  32458. * { 'user': 'fred', 'age': 40, 'active': false }
  32459. * ];
  32460. *
  32461. * // The `_.matches` iteratee shorthand.
  32462. * _.every(users, { 'user': 'barney', 'active': false });
  32463. * // => false
  32464. *
  32465. * // The `_.matchesProperty` iteratee shorthand.
  32466. * _.every(users, ['active', false]);
  32467. * // => true
  32468. *
  32469. * // The `_.property` iteratee shorthand.
  32470. * _.every(users, 'active');
  32471. * // => false
  32472. */
  32473. function every(collection, predicate, guard) {
  32474. var func = isArray(collection) ? arrayEvery : baseEvery;
  32475. if (guard && isIterateeCall(collection, predicate, guard)) {
  32476. predicate = undefined;
  32477. }
  32478. return func(collection, getIteratee(predicate, 3));
  32479. }
  32480. /**
  32481. * Iterates over elements of `collection`, returning an array of all elements
  32482. * `predicate` returns truthy for. The predicate is invoked with three
  32483. * arguments: (value, index|key, collection).
  32484. *
  32485. * **Note:** Unlike `_.remove`, this method returns a new array.
  32486. *
  32487. * @static
  32488. * @memberOf _
  32489. * @since 0.1.0
  32490. * @category Collection
  32491. * @param {Array|Object} collection The collection to iterate over.
  32492. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  32493. * @returns {Array} Returns the new filtered array.
  32494. * @see _.reject
  32495. * @example
  32496. *
  32497. * var users = [
  32498. * { 'user': 'barney', 'age': 36, 'active': true },
  32499. * { 'user': 'fred', 'age': 40, 'active': false }
  32500. * ];
  32501. *
  32502. * _.filter(users, function(o) { return !o.active; });
  32503. * // => objects for ['fred']
  32504. *
  32505. * // The `_.matches` iteratee shorthand.
  32506. * _.filter(users, { 'age': 36, 'active': true });
  32507. * // => objects for ['barney']
  32508. *
  32509. * // The `_.matchesProperty` iteratee shorthand.
  32510. * _.filter(users, ['active', false]);
  32511. * // => objects for ['fred']
  32512. *
  32513. * // The `_.property` iteratee shorthand.
  32514. * _.filter(users, 'active');
  32515. * // => objects for ['barney']
  32516. */
  32517. function filter(collection, predicate) {
  32518. var func = isArray(collection) ? arrayFilter : baseFilter;
  32519. return func(collection, getIteratee(predicate, 3));
  32520. }
  32521. /**
  32522. * Iterates over elements of `collection`, returning the first element
  32523. * `predicate` returns truthy for. The predicate is invoked with three
  32524. * arguments: (value, index|key, collection).
  32525. *
  32526. * @static
  32527. * @memberOf _
  32528. * @since 0.1.0
  32529. * @category Collection
  32530. * @param {Array|Object} collection The collection to inspect.
  32531. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  32532. * @param {number} [fromIndex=0] The index to search from.
  32533. * @returns {*} Returns the matched element, else `undefined`.
  32534. * @example
  32535. *
  32536. * var users = [
  32537. * { 'user': 'barney', 'age': 36, 'active': true },
  32538. * { 'user': 'fred', 'age': 40, 'active': false },
  32539. * { 'user': 'pebbles', 'age': 1, 'active': true }
  32540. * ];
  32541. *
  32542. * _.find(users, function(o) { return o.age < 40; });
  32543. * // => object for 'barney'
  32544. *
  32545. * // The `_.matches` iteratee shorthand.
  32546. * _.find(users, { 'age': 1, 'active': true });
  32547. * // => object for 'pebbles'
  32548. *
  32549. * // The `_.matchesProperty` iteratee shorthand.
  32550. * _.find(users, ['active', false]);
  32551. * // => object for 'fred'
  32552. *
  32553. * // The `_.property` iteratee shorthand.
  32554. * _.find(users, 'active');
  32555. * // => object for 'barney'
  32556. */
  32557. var find = createFind(findIndex);
  32558. /**
  32559. * This method is like `_.find` except that it iterates over elements of
  32560. * `collection` from right to left.
  32561. *
  32562. * @static
  32563. * @memberOf _
  32564. * @since 2.0.0
  32565. * @category Collection
  32566. * @param {Array|Object} collection The collection to inspect.
  32567. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  32568. * @param {number} [fromIndex=collection.length-1] The index to search from.
  32569. * @returns {*} Returns the matched element, else `undefined`.
  32570. * @example
  32571. *
  32572. * _.findLast([1, 2, 3, 4], function(n) {
  32573. * return n % 2 == 1;
  32574. * });
  32575. * // => 3
  32576. */
  32577. var findLast = createFind(findLastIndex);
  32578. /**
  32579. * Creates a flattened array of values by running each element in `collection`
  32580. * thru `iteratee` and flattening the mapped results. The iteratee is invoked
  32581. * with three arguments: (value, index|key, collection).
  32582. *
  32583. * @static
  32584. * @memberOf _
  32585. * @since 4.0.0
  32586. * @category Collection
  32587. * @param {Array|Object} collection The collection to iterate over.
  32588. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32589. * @returns {Array} Returns the new flattened array.
  32590. * @example
  32591. *
  32592. * function duplicate(n) {
  32593. * return [n, n];
  32594. * }
  32595. *
  32596. * _.flatMap([1, 2], duplicate);
  32597. * // => [1, 1, 2, 2]
  32598. */
  32599. function flatMap(collection, iteratee) {
  32600. return baseFlatten(map(collection, iteratee), 1);
  32601. }
  32602. /**
  32603. * This method is like `_.flatMap` except that it recursively flattens the
  32604. * mapped results.
  32605. *
  32606. * @static
  32607. * @memberOf _
  32608. * @since 4.7.0
  32609. * @category Collection
  32610. * @param {Array|Object} collection The collection to iterate over.
  32611. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32612. * @returns {Array} Returns the new flattened array.
  32613. * @example
  32614. *
  32615. * function duplicate(n) {
  32616. * return [[[n, n]]];
  32617. * }
  32618. *
  32619. * _.flatMapDeep([1, 2], duplicate);
  32620. * // => [1, 1, 2, 2]
  32621. */
  32622. function flatMapDeep(collection, iteratee) {
  32623. return baseFlatten(map(collection, iteratee), INFINITY);
  32624. }
  32625. /**
  32626. * This method is like `_.flatMap` except that it recursively flattens the
  32627. * mapped results up to `depth` times.
  32628. *
  32629. * @static
  32630. * @memberOf _
  32631. * @since 4.7.0
  32632. * @category Collection
  32633. * @param {Array|Object} collection The collection to iterate over.
  32634. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32635. * @param {number} [depth=1] The maximum recursion depth.
  32636. * @returns {Array} Returns the new flattened array.
  32637. * @example
  32638. *
  32639. * function duplicate(n) {
  32640. * return [[[n, n]]];
  32641. * }
  32642. *
  32643. * _.flatMapDepth([1, 2], duplicate, 2);
  32644. * // => [[1, 1], [2, 2]]
  32645. */
  32646. function flatMapDepth(collection, iteratee, depth) {
  32647. depth = depth === undefined ? 1 : toInteger(depth);
  32648. return baseFlatten(map(collection, iteratee), depth);
  32649. }
  32650. /**
  32651. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  32652. * The iteratee is invoked with three arguments: (value, index|key, collection).
  32653. * Iteratee functions may exit iteration early by explicitly returning `false`.
  32654. *
  32655. * **Note:** As with other "Collections" methods, objects with a "length"
  32656. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  32657. * or `_.forOwn` for object iteration.
  32658. *
  32659. * @static
  32660. * @memberOf _
  32661. * @since 0.1.0
  32662. * @alias each
  32663. * @category Collection
  32664. * @param {Array|Object} collection The collection to iterate over.
  32665. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32666. * @returns {Array|Object} Returns `collection`.
  32667. * @see _.forEachRight
  32668. * @example
  32669. *
  32670. * _.forEach([1, 2], function(value) {
  32671. * console.log(value);
  32672. * });
  32673. * // => Logs `1` then `2`.
  32674. *
  32675. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  32676. * console.log(key);
  32677. * });
  32678. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  32679. */
  32680. function forEach(collection, iteratee) {
  32681. var func = isArray(collection) ? arrayEach : baseEach;
  32682. return func(collection, getIteratee(iteratee, 3));
  32683. }
  32684. /**
  32685. * This method is like `_.forEach` except that it iterates over elements of
  32686. * `collection` from right to left.
  32687. *
  32688. * @static
  32689. * @memberOf _
  32690. * @since 2.0.0
  32691. * @alias eachRight
  32692. * @category Collection
  32693. * @param {Array|Object} collection The collection to iterate over.
  32694. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32695. * @returns {Array|Object} Returns `collection`.
  32696. * @see _.forEach
  32697. * @example
  32698. *
  32699. * _.forEachRight([1, 2], function(value) {
  32700. * console.log(value);
  32701. * });
  32702. * // => Logs `2` then `1`.
  32703. */
  32704. function forEachRight(collection, iteratee) {
  32705. var func = isArray(collection) ? arrayEachRight : baseEachRight;
  32706. return func(collection, getIteratee(iteratee, 3));
  32707. }
  32708. /**
  32709. * Creates an object composed of keys generated from the results of running
  32710. * each element of `collection` thru `iteratee`. The order of grouped values
  32711. * is determined by the order they occur in `collection`. The corresponding
  32712. * value of each key is an array of elements responsible for generating the
  32713. * key. The iteratee is invoked with one argument: (value).
  32714. *
  32715. * @static
  32716. * @memberOf _
  32717. * @since 0.1.0
  32718. * @category Collection
  32719. * @param {Array|Object} collection The collection to iterate over.
  32720. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  32721. * @returns {Object} Returns the composed aggregate object.
  32722. * @example
  32723. *
  32724. * _.groupBy([6.1, 4.2, 6.3], Math.floor);
  32725. * // => { '4': [4.2], '6': [6.1, 6.3] }
  32726. *
  32727. * // The `_.property` iteratee shorthand.
  32728. * _.groupBy(['one', 'two', 'three'], 'length');
  32729. * // => { '3': ['one', 'two'], '5': ['three'] }
  32730. */
  32731. var groupBy = createAggregator(function(result, value, key) {
  32732. if (hasOwnProperty.call(result, key)) {
  32733. result[key].push(value);
  32734. } else {
  32735. baseAssignValue(result, key, [value]);
  32736. }
  32737. });
  32738. /**
  32739. * Checks if `value` is in `collection`. If `collection` is a string, it's
  32740. * checked for a substring of `value`, otherwise
  32741. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  32742. * is used for equality comparisons. If `fromIndex` is negative, it's used as
  32743. * the offset from the end of `collection`.
  32744. *
  32745. * @static
  32746. * @memberOf _
  32747. * @since 0.1.0
  32748. * @category Collection
  32749. * @param {Array|Object|string} collection The collection to inspect.
  32750. * @param {*} value The value to search for.
  32751. * @param {number} [fromIndex=0] The index to search from.
  32752. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  32753. * @returns {boolean} Returns `true` if `value` is found, else `false`.
  32754. * @example
  32755. *
  32756. * _.includes([1, 2, 3], 1);
  32757. * // => true
  32758. *
  32759. * _.includes([1, 2, 3], 1, 2);
  32760. * // => false
  32761. *
  32762. * _.includes({ 'a': 1, 'b': 2 }, 1);
  32763. * // => true
  32764. *
  32765. * _.includes('abcd', 'bc');
  32766. * // => true
  32767. */
  32768. function includes(collection, value, fromIndex, guard) {
  32769. collection = isArrayLike(collection) ? collection : values(collection);
  32770. fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
  32771. var length = collection.length;
  32772. if (fromIndex < 0) {
  32773. fromIndex = nativeMax(length + fromIndex, 0);
  32774. }
  32775. return isString(collection)
  32776. ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
  32777. : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
  32778. }
  32779. /**
  32780. * Invokes the method at `path` of each element in `collection`, returning
  32781. * an array of the results of each invoked method. Any additional arguments
  32782. * are provided to each invoked method. If `path` is a function, it's invoked
  32783. * for, and `this` bound to, each element in `collection`.
  32784. *
  32785. * @static
  32786. * @memberOf _
  32787. * @since 4.0.0
  32788. * @category Collection
  32789. * @param {Array|Object} collection The collection to iterate over.
  32790. * @param {Array|Function|string} path The path of the method to invoke or
  32791. * the function invoked per iteration.
  32792. * @param {...*} [args] The arguments to invoke each method with.
  32793. * @returns {Array} Returns the array of results.
  32794. * @example
  32795. *
  32796. * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
  32797. * // => [[1, 5, 7], [1, 2, 3]]
  32798. *
  32799. * _.invokeMap([123, 456], String.prototype.split, '');
  32800. * // => [['1', '2', '3'], ['4', '5', '6']]
  32801. */
  32802. var invokeMap = baseRest(function(collection, path, args) {
  32803. var index = -1,
  32804. isFunc = typeof path == 'function',
  32805. result = isArrayLike(collection) ? Array(collection.length) : [];
  32806. baseEach(collection, function(value) {
  32807. result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
  32808. });
  32809. return result;
  32810. });
  32811. /**
  32812. * Creates an object composed of keys generated from the results of running
  32813. * each element of `collection` thru `iteratee`. The corresponding value of
  32814. * each key is the last element responsible for generating the key. The
  32815. * iteratee is invoked with one argument: (value).
  32816. *
  32817. * @static
  32818. * @memberOf _
  32819. * @since 4.0.0
  32820. * @category Collection
  32821. * @param {Array|Object} collection The collection to iterate over.
  32822. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  32823. * @returns {Object} Returns the composed aggregate object.
  32824. * @example
  32825. *
  32826. * var array = [
  32827. * { 'dir': 'left', 'code': 97 },
  32828. * { 'dir': 'right', 'code': 100 }
  32829. * ];
  32830. *
  32831. * _.keyBy(array, function(o) {
  32832. * return String.fromCharCode(o.code);
  32833. * });
  32834. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  32835. *
  32836. * _.keyBy(array, 'dir');
  32837. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  32838. */
  32839. var keyBy = createAggregator(function(result, value, key) {
  32840. baseAssignValue(result, key, value);
  32841. });
  32842. /**
  32843. * Creates an array of values by running each element in `collection` thru
  32844. * `iteratee`. The iteratee is invoked with three arguments:
  32845. * (value, index|key, collection).
  32846. *
  32847. * Many lodash methods are guarded to work as iteratees for methods like
  32848. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  32849. *
  32850. * The guarded methods are:
  32851. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  32852. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  32853. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  32854. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  32855. *
  32856. * @static
  32857. * @memberOf _
  32858. * @since 0.1.0
  32859. * @category Collection
  32860. * @param {Array|Object} collection The collection to iterate over.
  32861. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32862. * @returns {Array} Returns the new mapped array.
  32863. * @example
  32864. *
  32865. * function square(n) {
  32866. * return n * n;
  32867. * }
  32868. *
  32869. * _.map([4, 8], square);
  32870. * // => [16, 64]
  32871. *
  32872. * _.map({ 'a': 4, 'b': 8 }, square);
  32873. * // => [16, 64] (iteration order is not guaranteed)
  32874. *
  32875. * var users = [
  32876. * { 'user': 'barney' },
  32877. * { 'user': 'fred' }
  32878. * ];
  32879. *
  32880. * // The `_.property` iteratee shorthand.
  32881. * _.map(users, 'user');
  32882. * // => ['barney', 'fred']
  32883. */
  32884. function map(collection, iteratee) {
  32885. var func = isArray(collection) ? arrayMap : baseMap;
  32886. return func(collection, getIteratee(iteratee, 3));
  32887. }
  32888. /**
  32889. * This method is like `_.sortBy` except that it allows specifying the sort
  32890. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  32891. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  32892. * descending or "asc" for ascending sort order of corresponding values.
  32893. *
  32894. * @static
  32895. * @memberOf _
  32896. * @since 4.0.0
  32897. * @category Collection
  32898. * @param {Array|Object} collection The collection to iterate over.
  32899. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  32900. * The iteratees to sort by.
  32901. * @param {string[]} [orders] The sort orders of `iteratees`.
  32902. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  32903. * @returns {Array} Returns the new sorted array.
  32904. * @example
  32905. *
  32906. * var users = [
  32907. * { 'user': 'fred', 'age': 48 },
  32908. * { 'user': 'barney', 'age': 34 },
  32909. * { 'user': 'fred', 'age': 40 },
  32910. * { 'user': 'barney', 'age': 36 }
  32911. * ];
  32912. *
  32913. * // Sort by `user` in ascending order and by `age` in descending order.
  32914. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  32915. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  32916. */
  32917. function orderBy(collection, iteratees, orders, guard) {
  32918. if (collection == null) {
  32919. return [];
  32920. }
  32921. if (!isArray(iteratees)) {
  32922. iteratees = iteratees == null ? [] : [iteratees];
  32923. }
  32924. orders = guard ? undefined : orders;
  32925. if (!isArray(orders)) {
  32926. orders = orders == null ? [] : [orders];
  32927. }
  32928. return baseOrderBy(collection, iteratees, orders);
  32929. }
  32930. /**
  32931. * Creates an array of elements split into two groups, the first of which
  32932. * contains elements `predicate` returns truthy for, the second of which
  32933. * contains elements `predicate` returns falsey for. The predicate is
  32934. * invoked with one argument: (value).
  32935. *
  32936. * @static
  32937. * @memberOf _
  32938. * @since 3.0.0
  32939. * @category Collection
  32940. * @param {Array|Object} collection The collection to iterate over.
  32941. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  32942. * @returns {Array} Returns the array of grouped elements.
  32943. * @example
  32944. *
  32945. * var users = [
  32946. * { 'user': 'barney', 'age': 36, 'active': false },
  32947. * { 'user': 'fred', 'age': 40, 'active': true },
  32948. * { 'user': 'pebbles', 'age': 1, 'active': false }
  32949. * ];
  32950. *
  32951. * _.partition(users, function(o) { return o.active; });
  32952. * // => objects for [['fred'], ['barney', 'pebbles']]
  32953. *
  32954. * // The `_.matches` iteratee shorthand.
  32955. * _.partition(users, { 'age': 1, 'active': false });
  32956. * // => objects for [['pebbles'], ['barney', 'fred']]
  32957. *
  32958. * // The `_.matchesProperty` iteratee shorthand.
  32959. * _.partition(users, ['active', false]);
  32960. * // => objects for [['barney', 'pebbles'], ['fred']]
  32961. *
  32962. * // The `_.property` iteratee shorthand.
  32963. * _.partition(users, 'active');
  32964. * // => objects for [['fred'], ['barney', 'pebbles']]
  32965. */
  32966. var partition = createAggregator(function(result, value, key) {
  32967. result[key ? 0 : 1].push(value);
  32968. }, function() { return [[], []]; });
  32969. /**
  32970. * Reduces `collection` to a value which is the accumulated result of running
  32971. * each element in `collection` thru `iteratee`, where each successive
  32972. * invocation is supplied the return value of the previous. If `accumulator`
  32973. * is not given, the first element of `collection` is used as the initial
  32974. * value. The iteratee is invoked with four arguments:
  32975. * (accumulator, value, index|key, collection).
  32976. *
  32977. * Many lodash methods are guarded to work as iteratees for methods like
  32978. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  32979. *
  32980. * The guarded methods are:
  32981. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  32982. * and `sortBy`
  32983. *
  32984. * @static
  32985. * @memberOf _
  32986. * @since 0.1.0
  32987. * @category Collection
  32988. * @param {Array|Object} collection The collection to iterate over.
  32989. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32990. * @param {*} [accumulator] The initial value.
  32991. * @returns {*} Returns the accumulated value.
  32992. * @see _.reduceRight
  32993. * @example
  32994. *
  32995. * _.reduce([1, 2], function(sum, n) {
  32996. * return sum + n;
  32997. * }, 0);
  32998. * // => 3
  32999. *
  33000. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  33001. * (result[value] || (result[value] = [])).push(key);
  33002. * return result;
  33003. * }, {});
  33004. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  33005. */
  33006. function reduce(collection, iteratee, accumulator) {
  33007. var func = isArray(collection) ? arrayReduce : baseReduce,
  33008. initAccum = arguments.length < 3;
  33009. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  33010. }
  33011. /**
  33012. * This method is like `_.reduce` except that it iterates over elements of
  33013. * `collection` from right to left.
  33014. *
  33015. * @static
  33016. * @memberOf _
  33017. * @since 0.1.0
  33018. * @category Collection
  33019. * @param {Array|Object} collection The collection to iterate over.
  33020. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  33021. * @param {*} [accumulator] The initial value.
  33022. * @returns {*} Returns the accumulated value.
  33023. * @see _.reduce
  33024. * @example
  33025. *
  33026. * var array = [[0, 1], [2, 3], [4, 5]];
  33027. *
  33028. * _.reduceRight(array, function(flattened, other) {
  33029. * return flattened.concat(other);
  33030. * }, []);
  33031. * // => [4, 5, 2, 3, 0, 1]
  33032. */
  33033. function reduceRight(collection, iteratee, accumulator) {
  33034. var func = isArray(collection) ? arrayReduceRight : baseReduce,
  33035. initAccum = arguments.length < 3;
  33036. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
  33037. }
  33038. /**
  33039. * The opposite of `_.filter`; this method returns the elements of `collection`
  33040. * that `predicate` does **not** return truthy for.
  33041. *
  33042. * @static
  33043. * @memberOf _
  33044. * @since 0.1.0
  33045. * @category Collection
  33046. * @param {Array|Object} collection The collection to iterate over.
  33047. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  33048. * @returns {Array} Returns the new filtered array.
  33049. * @see _.filter
  33050. * @example
  33051. *
  33052. * var users = [
  33053. * { 'user': 'barney', 'age': 36, 'active': false },
  33054. * { 'user': 'fred', 'age': 40, 'active': true }
  33055. * ];
  33056. *
  33057. * _.reject(users, function(o) { return !o.active; });
  33058. * // => objects for ['fred']
  33059. *
  33060. * // The `_.matches` iteratee shorthand.
  33061. * _.reject(users, { 'age': 40, 'active': true });
  33062. * // => objects for ['barney']
  33063. *
  33064. * // The `_.matchesProperty` iteratee shorthand.
  33065. * _.reject(users, ['active', false]);
  33066. * // => objects for ['fred']
  33067. *
  33068. * // The `_.property` iteratee shorthand.
  33069. * _.reject(users, 'active');
  33070. * // => objects for ['barney']
  33071. */
  33072. function reject(collection, predicate) {
  33073. var func = isArray(collection) ? arrayFilter : baseFilter;
  33074. return func(collection, negate(getIteratee(predicate, 3)));
  33075. }
  33076. /**
  33077. * Gets a random element from `collection`.
  33078. *
  33079. * @static
  33080. * @memberOf _
  33081. * @since 2.0.0
  33082. * @category Collection
  33083. * @param {Array|Object} collection The collection to sample.
  33084. * @returns {*} Returns the random element.
  33085. * @example
  33086. *
  33087. * _.sample([1, 2, 3, 4]);
  33088. * // => 2
  33089. */
  33090. function sample(collection) {
  33091. var func = isArray(collection) ? arraySample : baseSample;
  33092. return func(collection);
  33093. }
  33094. /**
  33095. * Gets `n` random elements at unique keys from `collection` up to the
  33096. * size of `collection`.
  33097. *
  33098. * @static
  33099. * @memberOf _
  33100. * @since 4.0.0
  33101. * @category Collection
  33102. * @param {Array|Object} collection The collection to sample.
  33103. * @param {number} [n=1] The number of elements to sample.
  33104. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  33105. * @returns {Array} Returns the random elements.
  33106. * @example
  33107. *
  33108. * _.sampleSize([1, 2, 3], 2);
  33109. * // => [3, 1]
  33110. *
  33111. * _.sampleSize([1, 2, 3], 4);
  33112. * // => [2, 3, 1]
  33113. */
  33114. function sampleSize(collection, n, guard) {
  33115. if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
  33116. n = 1;
  33117. } else {
  33118. n = toInteger(n);
  33119. }
  33120. var func = isArray(collection) ? arraySampleSize : baseSampleSize;
  33121. return func(collection, n);
  33122. }
  33123. /**
  33124. * Creates an array of shuffled values, using a version of the
  33125. * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
  33126. *
  33127. * @static
  33128. * @memberOf _
  33129. * @since 0.1.0
  33130. * @category Collection
  33131. * @param {Array|Object} collection The collection to shuffle.
  33132. * @returns {Array} Returns the new shuffled array.
  33133. * @example
  33134. *
  33135. * _.shuffle([1, 2, 3, 4]);
  33136. * // => [4, 1, 3, 2]
  33137. */
  33138. function shuffle(collection) {
  33139. var func = isArray(collection) ? arrayShuffle : baseShuffle;
  33140. return func(collection);
  33141. }
  33142. /**
  33143. * Gets the size of `collection` by returning its length for array-like
  33144. * values or the number of own enumerable string keyed properties for objects.
  33145. *
  33146. * @static
  33147. * @memberOf _
  33148. * @since 0.1.0
  33149. * @category Collection
  33150. * @param {Array|Object|string} collection The collection to inspect.
  33151. * @returns {number} Returns the collection size.
  33152. * @example
  33153. *
  33154. * _.size([1, 2, 3]);
  33155. * // => 3
  33156. *
  33157. * _.size({ 'a': 1, 'b': 2 });
  33158. * // => 2
  33159. *
  33160. * _.size('pebbles');
  33161. * // => 7
  33162. */
  33163. function size(collection) {
  33164. if (collection == null) {
  33165. return 0;
  33166. }
  33167. if (isArrayLike(collection)) {
  33168. return isString(collection) ? stringSize(collection) : collection.length;
  33169. }
  33170. var tag = getTag(collection);
  33171. if (tag == mapTag || tag == setTag) {
  33172. return collection.size;
  33173. }
  33174. return baseKeys(collection).length;
  33175. }
  33176. /**
  33177. * Checks if `predicate` returns truthy for **any** element of `collection`.
  33178. * Iteration is stopped once `predicate` returns truthy. The predicate is
  33179. * invoked with three arguments: (value, index|key, collection).
  33180. *
  33181. * @static
  33182. * @memberOf _
  33183. * @since 0.1.0
  33184. * @category Collection
  33185. * @param {Array|Object} collection The collection to iterate over.
  33186. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  33187. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  33188. * @returns {boolean} Returns `true` if any element passes the predicate check,
  33189. * else `false`.
  33190. * @example
  33191. *
  33192. * _.some([null, 0, 'yes', false], Boolean);
  33193. * // => true
  33194. *
  33195. * var users = [
  33196. * { 'user': 'barney', 'active': true },
  33197. * { 'user': 'fred', 'active': false }
  33198. * ];
  33199. *
  33200. * // The `_.matches` iteratee shorthand.
  33201. * _.some(users, { 'user': 'barney', 'active': false });
  33202. * // => false
  33203. *
  33204. * // The `_.matchesProperty` iteratee shorthand.
  33205. * _.some(users, ['active', false]);
  33206. * // => true
  33207. *
  33208. * // The `_.property` iteratee shorthand.
  33209. * _.some(users, 'active');
  33210. * // => true
  33211. */
  33212. function some(collection, predicate, guard) {
  33213. var func = isArray(collection) ? arraySome : baseSome;
  33214. if (guard && isIterateeCall(collection, predicate, guard)) {
  33215. predicate = undefined;
  33216. }
  33217. return func(collection, getIteratee(predicate, 3));
  33218. }
  33219. /**
  33220. * Creates an array of elements, sorted in ascending order by the results of
  33221. * running each element in a collection thru each iteratee. This method
  33222. * performs a stable sort, that is, it preserves the original sort order of
  33223. * equal elements. The iteratees are invoked with one argument: (value).
  33224. *
  33225. * @static
  33226. * @memberOf _
  33227. * @since 0.1.0
  33228. * @category Collection
  33229. * @param {Array|Object} collection The collection to iterate over.
  33230. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  33231. * The iteratees to sort by.
  33232. * @returns {Array} Returns the new sorted array.
  33233. * @example
  33234. *
  33235. * var users = [
  33236. * { 'user': 'fred', 'age': 48 },
  33237. * { 'user': 'barney', 'age': 36 },
  33238. * { 'user': 'fred', 'age': 40 },
  33239. * { 'user': 'barney', 'age': 34 }
  33240. * ];
  33241. *
  33242. * _.sortBy(users, [function(o) { return o.user; }]);
  33243. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  33244. *
  33245. * _.sortBy(users, ['user', 'age']);
  33246. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  33247. */
  33248. var sortBy = baseRest(function(collection, iteratees) {
  33249. if (collection == null) {
  33250. return [];
  33251. }
  33252. var length = iteratees.length;
  33253. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  33254. iteratees = [];
  33255. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  33256. iteratees = [iteratees[0]];
  33257. }
  33258. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  33259. });
  33260. /*------------------------------------------------------------------------*/
  33261. /**
  33262. * Gets the timestamp of the number of milliseconds that have elapsed since
  33263. * the Unix epoch (1 January 1970 00:00:00 UTC).
  33264. *
  33265. * @static
  33266. * @memberOf _
  33267. * @since 2.4.0
  33268. * @category Date
  33269. * @returns {number} Returns the timestamp.
  33270. * @example
  33271. *
  33272. * _.defer(function(stamp) {
  33273. * console.log(_.now() - stamp);
  33274. * }, _.now());
  33275. * // => Logs the number of milliseconds it took for the deferred invocation.
  33276. */
  33277. var now = ctxNow || function() {
  33278. return root.Date.now();
  33279. };
  33280. /*------------------------------------------------------------------------*/
  33281. /**
  33282. * The opposite of `_.before`; this method creates a function that invokes
  33283. * `func` once it's called `n` or more times.
  33284. *
  33285. * @static
  33286. * @memberOf _
  33287. * @since 0.1.0
  33288. * @category Function
  33289. * @param {number} n The number of calls before `func` is invoked.
  33290. * @param {Function} func The function to restrict.
  33291. * @returns {Function} Returns the new restricted function.
  33292. * @example
  33293. *
  33294. * var saves = ['profile', 'settings'];
  33295. *
  33296. * var done = _.after(saves.length, function() {
  33297. * console.log('done saving!');
  33298. * });
  33299. *
  33300. * _.forEach(saves, function(type) {
  33301. * asyncSave({ 'type': type, 'complete': done });
  33302. * });
  33303. * // => Logs 'done saving!' after the two async saves have completed.
  33304. */
  33305. function after(n, func) {
  33306. if (typeof func != 'function') {
  33307. throw new TypeError(FUNC_ERROR_TEXT);
  33308. }
  33309. n = toInteger(n);
  33310. return function() {
  33311. if (--n < 1) {
  33312. return func.apply(this, arguments);
  33313. }
  33314. };
  33315. }
  33316. /**
  33317. * Creates a function that invokes `func`, with up to `n` arguments,
  33318. * ignoring any additional arguments.
  33319. *
  33320. * @static
  33321. * @memberOf _
  33322. * @since 3.0.0
  33323. * @category Function
  33324. * @param {Function} func The function to cap arguments for.
  33325. * @param {number} [n=func.length] The arity cap.
  33326. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  33327. * @returns {Function} Returns the new capped function.
  33328. * @example
  33329. *
  33330. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  33331. * // => [6, 8, 10]
  33332. */
  33333. function ary(func, n, guard) {
  33334. n = guard ? undefined : n;
  33335. n = (func && n == null) ? func.length : n;
  33336. return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
  33337. }
  33338. /**
  33339. * Creates a function that invokes `func`, with the `this` binding and arguments
  33340. * of the created function, while it's called less than `n` times. Subsequent
  33341. * calls to the created function return the result of the last `func` invocation.
  33342. *
  33343. * @static
  33344. * @memberOf _
  33345. * @since 3.0.0
  33346. * @category Function
  33347. * @param {number} n The number of calls at which `func` is no longer invoked.
  33348. * @param {Function} func The function to restrict.
  33349. * @returns {Function} Returns the new restricted function.
  33350. * @example
  33351. *
  33352. * jQuery(element).on('click', _.before(5, addContactToList));
  33353. * // => Allows adding up to 4 contacts to the list.
  33354. */
  33355. function before(n, func) {
  33356. var result;
  33357. if (typeof func != 'function') {
  33358. throw new TypeError(FUNC_ERROR_TEXT);
  33359. }
  33360. n = toInteger(n);
  33361. return function() {
  33362. if (--n > 0) {
  33363. result = func.apply(this, arguments);
  33364. }
  33365. if (n <= 1) {
  33366. func = undefined;
  33367. }
  33368. return result;
  33369. };
  33370. }
  33371. /**
  33372. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  33373. * and `partials` prepended to the arguments it receives.
  33374. *
  33375. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  33376. * may be used as a placeholder for partially applied arguments.
  33377. *
  33378. * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
  33379. * property of bound functions.
  33380. *
  33381. * @static
  33382. * @memberOf _
  33383. * @since 0.1.0
  33384. * @category Function
  33385. * @param {Function} func The function to bind.
  33386. * @param {*} thisArg The `this` binding of `func`.
  33387. * @param {...*} [partials] The arguments to be partially applied.
  33388. * @returns {Function} Returns the new bound function.
  33389. * @example
  33390. *
  33391. * function greet(greeting, punctuation) {
  33392. * return greeting + ' ' + this.user + punctuation;
  33393. * }
  33394. *
  33395. * var object = { 'user': 'fred' };
  33396. *
  33397. * var bound = _.bind(greet, object, 'hi');
  33398. * bound('!');
  33399. * // => 'hi fred!'
  33400. *
  33401. * // Bound with placeholders.
  33402. * var bound = _.bind(greet, object, _, '!');
  33403. * bound('hi');
  33404. * // => 'hi fred!'
  33405. */
  33406. var bind = baseRest(function(func, thisArg, partials) {
  33407. var bitmask = WRAP_BIND_FLAG;
  33408. if (partials.length) {
  33409. var holders = replaceHolders(partials, getHolder(bind));
  33410. bitmask |= WRAP_PARTIAL_FLAG;
  33411. }
  33412. return createWrap(func, bitmask, thisArg, partials, holders);
  33413. });
  33414. /**
  33415. * Creates a function that invokes the method at `object[key]` with `partials`
  33416. * prepended to the arguments it receives.
  33417. *
  33418. * This method differs from `_.bind` by allowing bound functions to reference
  33419. * methods that may be redefined or don't yet exist. See
  33420. * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
  33421. * for more details.
  33422. *
  33423. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  33424. * builds, may be used as a placeholder for partially applied arguments.
  33425. *
  33426. * @static
  33427. * @memberOf _
  33428. * @since 0.10.0
  33429. * @category Function
  33430. * @param {Object} object The object to invoke the method on.
  33431. * @param {string} key The key of the method.
  33432. * @param {...*} [partials] The arguments to be partially applied.
  33433. * @returns {Function} Returns the new bound function.
  33434. * @example
  33435. *
  33436. * var object = {
  33437. * 'user': 'fred',
  33438. * 'greet': function(greeting, punctuation) {
  33439. * return greeting + ' ' + this.user + punctuation;
  33440. * }
  33441. * };
  33442. *
  33443. * var bound = _.bindKey(object, 'greet', 'hi');
  33444. * bound('!');
  33445. * // => 'hi fred!'
  33446. *
  33447. * object.greet = function(greeting, punctuation) {
  33448. * return greeting + 'ya ' + this.user + punctuation;
  33449. * };
  33450. *
  33451. * bound('!');
  33452. * // => 'hiya fred!'
  33453. *
  33454. * // Bound with placeholders.
  33455. * var bound = _.bindKey(object, 'greet', _, '!');
  33456. * bound('hi');
  33457. * // => 'hiya fred!'
  33458. */
  33459. var bindKey = baseRest(function(object, key, partials) {
  33460. var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
  33461. if (partials.length) {
  33462. var holders = replaceHolders(partials, getHolder(bindKey));
  33463. bitmask |= WRAP_PARTIAL_FLAG;
  33464. }
  33465. return createWrap(key, bitmask, object, partials, holders);
  33466. });
  33467. /**
  33468. * Creates a function that accepts arguments of `func` and either invokes
  33469. * `func` returning its result, if at least `arity` number of arguments have
  33470. * been provided, or returns a function that accepts the remaining `func`
  33471. * arguments, and so on. The arity of `func` may be specified if `func.length`
  33472. * is not sufficient.
  33473. *
  33474. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  33475. * may be used as a placeholder for provided arguments.
  33476. *
  33477. * **Note:** This method doesn't set the "length" property of curried functions.
  33478. *
  33479. * @static
  33480. * @memberOf _
  33481. * @since 2.0.0
  33482. * @category Function
  33483. * @param {Function} func The function to curry.
  33484. * @param {number} [arity=func.length] The arity of `func`.
  33485. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  33486. * @returns {Function} Returns the new curried function.
  33487. * @example
  33488. *
  33489. * var abc = function(a, b, c) {
  33490. * return [a, b, c];
  33491. * };
  33492. *
  33493. * var curried = _.curry(abc);
  33494. *
  33495. * curried(1)(2)(3);
  33496. * // => [1, 2, 3]
  33497. *
  33498. * curried(1, 2)(3);
  33499. * // => [1, 2, 3]
  33500. *
  33501. * curried(1, 2, 3);
  33502. * // => [1, 2, 3]
  33503. *
  33504. * // Curried with placeholders.
  33505. * curried(1)(_, 3)(2);
  33506. * // => [1, 2, 3]
  33507. */
  33508. function curry(func, arity, guard) {
  33509. arity = guard ? undefined : arity;
  33510. var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  33511. result.placeholder = curry.placeholder;
  33512. return result;
  33513. }
  33514. /**
  33515. * This method is like `_.curry` except that arguments are applied to `func`
  33516. * in the manner of `_.partialRight` instead of `_.partial`.
  33517. *
  33518. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  33519. * builds, may be used as a placeholder for provided arguments.
  33520. *
  33521. * **Note:** This method doesn't set the "length" property of curried functions.
  33522. *
  33523. * @static
  33524. * @memberOf _
  33525. * @since 3.0.0
  33526. * @category Function
  33527. * @param {Function} func The function to curry.
  33528. * @param {number} [arity=func.length] The arity of `func`.
  33529. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  33530. * @returns {Function} Returns the new curried function.
  33531. * @example
  33532. *
  33533. * var abc = function(a, b, c) {
  33534. * return [a, b, c];
  33535. * };
  33536. *
  33537. * var curried = _.curryRight(abc);
  33538. *
  33539. * curried(3)(2)(1);
  33540. * // => [1, 2, 3]
  33541. *
  33542. * curried(2, 3)(1);
  33543. * // => [1, 2, 3]
  33544. *
  33545. * curried(1, 2, 3);
  33546. * // => [1, 2, 3]
  33547. *
  33548. * // Curried with placeholders.
  33549. * curried(3)(1, _)(2);
  33550. * // => [1, 2, 3]
  33551. */
  33552. function curryRight(func, arity, guard) {
  33553. arity = guard ? undefined : arity;
  33554. var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  33555. result.placeholder = curryRight.placeholder;
  33556. return result;
  33557. }
  33558. /**
  33559. * Creates a debounced function that delays invoking `func` until after `wait`
  33560. * milliseconds have elapsed since the last time the debounced function was
  33561. * invoked. The debounced function comes with a `cancel` method to cancel
  33562. * delayed `func` invocations and a `flush` method to immediately invoke them.
  33563. * Provide `options` to indicate whether `func` should be invoked on the
  33564. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  33565. * with the last arguments provided to the debounced function. Subsequent
  33566. * calls to the debounced function return the result of the last `func`
  33567. * invocation.
  33568. *
  33569. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  33570. * invoked on the trailing edge of the timeout only if the debounced function
  33571. * is invoked more than once during the `wait` timeout.
  33572. *
  33573. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  33574. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  33575. *
  33576. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  33577. * for details over the differences between `_.debounce` and `_.throttle`.
  33578. *
  33579. * @static
  33580. * @memberOf _
  33581. * @since 0.1.0
  33582. * @category Function
  33583. * @param {Function} func The function to debounce.
  33584. * @param {number} [wait=0] The number of milliseconds to delay.
  33585. * @param {Object} [options={}] The options object.
  33586. * @param {boolean} [options.leading=false]
  33587. * Specify invoking on the leading edge of the timeout.
  33588. * @param {number} [options.maxWait]
  33589. * The maximum time `func` is allowed to be delayed before it's invoked.
  33590. * @param {boolean} [options.trailing=true]
  33591. * Specify invoking on the trailing edge of the timeout.
  33592. * @returns {Function} Returns the new debounced function.
  33593. * @example
  33594. *
  33595. * // Avoid costly calculations while the window size is in flux.
  33596. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  33597. *
  33598. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  33599. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  33600. * 'leading': true,
  33601. * 'trailing': false
  33602. * }));
  33603. *
  33604. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  33605. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  33606. * var source = new EventSource('/stream');
  33607. * jQuery(source).on('message', debounced);
  33608. *
  33609. * // Cancel the trailing debounced invocation.
  33610. * jQuery(window).on('popstate', debounced.cancel);
  33611. */
  33612. function debounce(func, wait, options) {
  33613. var lastArgs,
  33614. lastThis,
  33615. maxWait,
  33616. result,
  33617. timerId,
  33618. lastCallTime,
  33619. lastInvokeTime = 0,
  33620. leading = false,
  33621. maxing = false,
  33622. trailing = true;
  33623. if (typeof func != 'function') {
  33624. throw new TypeError(FUNC_ERROR_TEXT);
  33625. }
  33626. wait = toNumber(wait) || 0;
  33627. if (isObject(options)) {
  33628. leading = !!options.leading;
  33629. maxing = 'maxWait' in options;
  33630. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  33631. trailing = 'trailing' in options ? !!options.trailing : trailing;
  33632. }
  33633. function invokeFunc(time) {
  33634. var args = lastArgs,
  33635. thisArg = lastThis;
  33636. lastArgs = lastThis = undefined;
  33637. lastInvokeTime = time;
  33638. result = func.apply(thisArg, args);
  33639. return result;
  33640. }
  33641. function leadingEdge(time) {
  33642. // Reset any `maxWait` timer.
  33643. lastInvokeTime = time;
  33644. // Start the timer for the trailing edge.
  33645. timerId = setTimeout(timerExpired, wait);
  33646. // Invoke the leading edge.
  33647. return leading ? invokeFunc(time) : result;
  33648. }
  33649. function remainingWait(time) {
  33650. var timeSinceLastCall = time - lastCallTime,
  33651. timeSinceLastInvoke = time - lastInvokeTime,
  33652. timeWaiting = wait - timeSinceLastCall;
  33653. return maxing
  33654. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  33655. : timeWaiting;
  33656. }
  33657. function shouldInvoke(time) {
  33658. var timeSinceLastCall = time - lastCallTime,
  33659. timeSinceLastInvoke = time - lastInvokeTime;
  33660. // Either this is the first call, activity has stopped and we're at the
  33661. // trailing edge, the system time has gone backwards and we're treating
  33662. // it as the trailing edge, or we've hit the `maxWait` limit.
  33663. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  33664. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  33665. }
  33666. function timerExpired() {
  33667. var time = now();
  33668. if (shouldInvoke(time)) {
  33669. return trailingEdge(time);
  33670. }
  33671. // Restart the timer.
  33672. timerId = setTimeout(timerExpired, remainingWait(time));
  33673. }
  33674. function trailingEdge(time) {
  33675. timerId = undefined;
  33676. // Only invoke if we have `lastArgs` which means `func` has been
  33677. // debounced at least once.
  33678. if (trailing && lastArgs) {
  33679. return invokeFunc(time);
  33680. }
  33681. lastArgs = lastThis = undefined;
  33682. return result;
  33683. }
  33684. function cancel() {
  33685. if (timerId !== undefined) {
  33686. clearTimeout(timerId);
  33687. }
  33688. lastInvokeTime = 0;
  33689. lastArgs = lastCallTime = lastThis = timerId = undefined;
  33690. }
  33691. function flush() {
  33692. return timerId === undefined ? result : trailingEdge(now());
  33693. }
  33694. function debounced() {
  33695. var time = now(),
  33696. isInvoking = shouldInvoke(time);
  33697. lastArgs = arguments;
  33698. lastThis = this;
  33699. lastCallTime = time;
  33700. if (isInvoking) {
  33701. if (timerId === undefined) {
  33702. return leadingEdge(lastCallTime);
  33703. }
  33704. if (maxing) {
  33705. // Handle invocations in a tight loop.
  33706. clearTimeout(timerId);
  33707. timerId = setTimeout(timerExpired, wait);
  33708. return invokeFunc(lastCallTime);
  33709. }
  33710. }
  33711. if (timerId === undefined) {
  33712. timerId = setTimeout(timerExpired, wait);
  33713. }
  33714. return result;
  33715. }
  33716. debounced.cancel = cancel;
  33717. debounced.flush = flush;
  33718. return debounced;
  33719. }
  33720. /**
  33721. * Defers invoking the `func` until the current call stack has cleared. Any
  33722. * additional arguments are provided to `func` when it's invoked.
  33723. *
  33724. * @static
  33725. * @memberOf _
  33726. * @since 0.1.0
  33727. * @category Function
  33728. * @param {Function} func The function to defer.
  33729. * @param {...*} [args] The arguments to invoke `func` with.
  33730. * @returns {number} Returns the timer id.
  33731. * @example
  33732. *
  33733. * _.defer(function(text) {
  33734. * console.log(text);
  33735. * }, 'deferred');
  33736. * // => Logs 'deferred' after one millisecond.
  33737. */
  33738. var defer = baseRest(function(func, args) {
  33739. return baseDelay(func, 1, args);
  33740. });
  33741. /**
  33742. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  33743. * provided to `func` when it's invoked.
  33744. *
  33745. * @static
  33746. * @memberOf _
  33747. * @since 0.1.0
  33748. * @category Function
  33749. * @param {Function} func The function to delay.
  33750. * @param {number} wait The number of milliseconds to delay invocation.
  33751. * @param {...*} [args] The arguments to invoke `func` with.
  33752. * @returns {number} Returns the timer id.
  33753. * @example
  33754. *
  33755. * _.delay(function(text) {
  33756. * console.log(text);
  33757. * }, 1000, 'later');
  33758. * // => Logs 'later' after one second.
  33759. */
  33760. var delay = baseRest(function(func, wait, args) {
  33761. return baseDelay(func, toNumber(wait) || 0, args);
  33762. });
  33763. /**
  33764. * Creates a function that invokes `func` with arguments reversed.
  33765. *
  33766. * @static
  33767. * @memberOf _
  33768. * @since 4.0.0
  33769. * @category Function
  33770. * @param {Function} func The function to flip arguments for.
  33771. * @returns {Function} Returns the new flipped function.
  33772. * @example
  33773. *
  33774. * var flipped = _.flip(function() {
  33775. * return _.toArray(arguments);
  33776. * });
  33777. *
  33778. * flipped('a', 'b', 'c', 'd');
  33779. * // => ['d', 'c', 'b', 'a']
  33780. */
  33781. function flip(func) {
  33782. return createWrap(func, WRAP_FLIP_FLAG);
  33783. }
  33784. /**
  33785. * Creates a function that memoizes the result of `func`. If `resolver` is
  33786. * provided, it determines the cache key for storing the result based on the
  33787. * arguments provided to the memoized function. By default, the first argument
  33788. * provided to the memoized function is used as the map cache key. The `func`
  33789. * is invoked with the `this` binding of the memoized function.
  33790. *
  33791. * **Note:** The cache is exposed as the `cache` property on the memoized
  33792. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  33793. * constructor with one whose instances implement the
  33794. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  33795. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  33796. *
  33797. * @static
  33798. * @memberOf _
  33799. * @since 0.1.0
  33800. * @category Function
  33801. * @param {Function} func The function to have its output memoized.
  33802. * @param {Function} [resolver] The function to resolve the cache key.
  33803. * @returns {Function} Returns the new memoized function.
  33804. * @example
  33805. *
  33806. * var object = { 'a': 1, 'b': 2 };
  33807. * var other = { 'c': 3, 'd': 4 };
  33808. *
  33809. * var values = _.memoize(_.values);
  33810. * values(object);
  33811. * // => [1, 2]
  33812. *
  33813. * values(other);
  33814. * // => [3, 4]
  33815. *
  33816. * object.a = 2;
  33817. * values(object);
  33818. * // => [1, 2]
  33819. *
  33820. * // Modify the result cache.
  33821. * values.cache.set(object, ['a', 'b']);
  33822. * values(object);
  33823. * // => ['a', 'b']
  33824. *
  33825. * // Replace `_.memoize.Cache`.
  33826. * _.memoize.Cache = WeakMap;
  33827. */
  33828. function memoize(func, resolver) {
  33829. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  33830. throw new TypeError(FUNC_ERROR_TEXT);
  33831. }
  33832. var memoized = function() {
  33833. var args = arguments,
  33834. key = resolver ? resolver.apply(this, args) : args[0],
  33835. cache = memoized.cache;
  33836. if (cache.has(key)) {
  33837. return cache.get(key);
  33838. }
  33839. var result = func.apply(this, args);
  33840. memoized.cache = cache.set(key, result) || cache;
  33841. return result;
  33842. };
  33843. memoized.cache = new (memoize.Cache || MapCache);
  33844. return memoized;
  33845. }
  33846. // Expose `MapCache`.
  33847. memoize.Cache = MapCache;
  33848. /**
  33849. * Creates a function that negates the result of the predicate `func`. The
  33850. * `func` predicate is invoked with the `this` binding and arguments of the
  33851. * created function.
  33852. *
  33853. * @static
  33854. * @memberOf _
  33855. * @since 3.0.0
  33856. * @category Function
  33857. * @param {Function} predicate The predicate to negate.
  33858. * @returns {Function} Returns the new negated function.
  33859. * @example
  33860. *
  33861. * function isEven(n) {
  33862. * return n % 2 == 0;
  33863. * }
  33864. *
  33865. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  33866. * // => [1, 3, 5]
  33867. */
  33868. function negate(predicate) {
  33869. if (typeof predicate != 'function') {
  33870. throw new TypeError(FUNC_ERROR_TEXT);
  33871. }
  33872. return function() {
  33873. var args = arguments;
  33874. switch (args.length) {
  33875. case 0: return !predicate.call(this);
  33876. case 1: return !predicate.call(this, args[0]);
  33877. case 2: return !predicate.call(this, args[0], args[1]);
  33878. case 3: return !predicate.call(this, args[0], args[1], args[2]);
  33879. }
  33880. return !predicate.apply(this, args);
  33881. };
  33882. }
  33883. /**
  33884. * Creates a function that is restricted to invoking `func` once. Repeat calls
  33885. * to the function return the value of the first invocation. The `func` is
  33886. * invoked with the `this` binding and arguments of the created function.
  33887. *
  33888. * @static
  33889. * @memberOf _
  33890. * @since 0.1.0
  33891. * @category Function
  33892. * @param {Function} func The function to restrict.
  33893. * @returns {Function} Returns the new restricted function.
  33894. * @example
  33895. *
  33896. * var initialize = _.once(createApplication);
  33897. * initialize();
  33898. * initialize();
  33899. * // => `createApplication` is invoked once
  33900. */
  33901. function once(func) {
  33902. return before(2, func);
  33903. }
  33904. /**
  33905. * Creates a function that invokes `func` with its arguments transformed.
  33906. *
  33907. * @static
  33908. * @since 4.0.0
  33909. * @memberOf _
  33910. * @category Function
  33911. * @param {Function} func The function to wrap.
  33912. * @param {...(Function|Function[])} [transforms=[_.identity]]
  33913. * The argument transforms.
  33914. * @returns {Function} Returns the new function.
  33915. * @example
  33916. *
  33917. * function doubled(n) {
  33918. * return n * 2;
  33919. * }
  33920. *
  33921. * function square(n) {
  33922. * return n * n;
  33923. * }
  33924. *
  33925. * var func = _.overArgs(function(x, y) {
  33926. * return [x, y];
  33927. * }, [square, doubled]);
  33928. *
  33929. * func(9, 3);
  33930. * // => [81, 6]
  33931. *
  33932. * func(10, 5);
  33933. * // => [100, 10]
  33934. */
  33935. var overArgs = castRest(function(func, transforms) {
  33936. transforms = (transforms.length == 1 && isArray(transforms[0]))
  33937. ? arrayMap(transforms[0], baseUnary(getIteratee()))
  33938. : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
  33939. var funcsLength = transforms.length;
  33940. return baseRest(function(args) {
  33941. var index = -1,
  33942. length = nativeMin(args.length, funcsLength);
  33943. while (++index < length) {
  33944. args[index] = transforms[index].call(this, args[index]);
  33945. }
  33946. return apply(func, this, args);
  33947. });
  33948. });
  33949. /**
  33950. * Creates a function that invokes `func` with `partials` prepended to the
  33951. * arguments it receives. This method is like `_.bind` except it does **not**
  33952. * alter the `this` binding.
  33953. *
  33954. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  33955. * builds, may be used as a placeholder for partially applied arguments.
  33956. *
  33957. * **Note:** This method doesn't set the "length" property of partially
  33958. * applied functions.
  33959. *
  33960. * @static
  33961. * @memberOf _
  33962. * @since 0.2.0
  33963. * @category Function
  33964. * @param {Function} func The function to partially apply arguments to.
  33965. * @param {...*} [partials] The arguments to be partially applied.
  33966. * @returns {Function} Returns the new partially applied function.
  33967. * @example
  33968. *
  33969. * function greet(greeting, name) {
  33970. * return greeting + ' ' + name;
  33971. * }
  33972. *
  33973. * var sayHelloTo = _.partial(greet, 'hello');
  33974. * sayHelloTo('fred');
  33975. * // => 'hello fred'
  33976. *
  33977. * // Partially applied with placeholders.
  33978. * var greetFred = _.partial(greet, _, 'fred');
  33979. * greetFred('hi');
  33980. * // => 'hi fred'
  33981. */
  33982. var partial = baseRest(function(func, partials) {
  33983. var holders = replaceHolders(partials, getHolder(partial));
  33984. return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
  33985. });
  33986. /**
  33987. * This method is like `_.partial` except that partially applied arguments
  33988. * are appended to the arguments it receives.
  33989. *
  33990. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  33991. * builds, may be used as a placeholder for partially applied arguments.
  33992. *
  33993. * **Note:** This method doesn't set the "length" property of partially
  33994. * applied functions.
  33995. *
  33996. * @static
  33997. * @memberOf _
  33998. * @since 1.0.0
  33999. * @category Function
  34000. * @param {Function} func The function to partially apply arguments to.
  34001. * @param {...*} [partials] The arguments to be partially applied.
  34002. * @returns {Function} Returns the new partially applied function.
  34003. * @example
  34004. *
  34005. * function greet(greeting, name) {
  34006. * return greeting + ' ' + name;
  34007. * }
  34008. *
  34009. * var greetFred = _.partialRight(greet, 'fred');
  34010. * greetFred('hi');
  34011. * // => 'hi fred'
  34012. *
  34013. * // Partially applied with placeholders.
  34014. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  34015. * sayHelloTo('fred');
  34016. * // => 'hello fred'
  34017. */
  34018. var partialRight = baseRest(function(func, partials) {
  34019. var holders = replaceHolders(partials, getHolder(partialRight));
  34020. return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
  34021. });
  34022. /**
  34023. * Creates a function that invokes `func` with arguments arranged according
  34024. * to the specified `indexes` where the argument value at the first index is
  34025. * provided as the first argument, the argument value at the second index is
  34026. * provided as the second argument, and so on.
  34027. *
  34028. * @static
  34029. * @memberOf _
  34030. * @since 3.0.0
  34031. * @category Function
  34032. * @param {Function} func The function to rearrange arguments for.
  34033. * @param {...(number|number[])} indexes The arranged argument indexes.
  34034. * @returns {Function} Returns the new function.
  34035. * @example
  34036. *
  34037. * var rearged = _.rearg(function(a, b, c) {
  34038. * return [a, b, c];
  34039. * }, [2, 0, 1]);
  34040. *
  34041. * rearged('b', 'c', 'a')
  34042. * // => ['a', 'b', 'c']
  34043. */
  34044. var rearg = flatRest(function(func, indexes) {
  34045. return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
  34046. });
  34047. /**
  34048. * Creates a function that invokes `func` with the `this` binding of the
  34049. * created function and arguments from `start` and beyond provided as
  34050. * an array.
  34051. *
  34052. * **Note:** This method is based on the
  34053. * [rest parameter](https://mdn.io/rest_parameters).
  34054. *
  34055. * @static
  34056. * @memberOf _
  34057. * @since 4.0.0
  34058. * @category Function
  34059. * @param {Function} func The function to apply a rest parameter to.
  34060. * @param {number} [start=func.length-1] The start position of the rest parameter.
  34061. * @returns {Function} Returns the new function.
  34062. * @example
  34063. *
  34064. * var say = _.rest(function(what, names) {
  34065. * return what + ' ' + _.initial(names).join(', ') +
  34066. * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
  34067. * });
  34068. *
  34069. * say('hello', 'fred', 'barney', 'pebbles');
  34070. * // => 'hello fred, barney, & pebbles'
  34071. */
  34072. function rest(func, start) {
  34073. if (typeof func != 'function') {
  34074. throw new TypeError(FUNC_ERROR_TEXT);
  34075. }
  34076. start = start === undefined ? start : toInteger(start);
  34077. return baseRest(func, start);
  34078. }
  34079. /**
  34080. * Creates a function that invokes `func` with the `this` binding of the
  34081. * create function and an array of arguments much like
  34082. * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
  34083. *
  34084. * **Note:** This method is based on the
  34085. * [spread operator](https://mdn.io/spread_operator).
  34086. *
  34087. * @static
  34088. * @memberOf _
  34089. * @since 3.2.0
  34090. * @category Function
  34091. * @param {Function} func The function to spread arguments over.
  34092. * @param {number} [start=0] The start position of the spread.
  34093. * @returns {Function} Returns the new function.
  34094. * @example
  34095. *
  34096. * var say = _.spread(function(who, what) {
  34097. * return who + ' says ' + what;
  34098. * });
  34099. *
  34100. * say(['fred', 'hello']);
  34101. * // => 'fred says hello'
  34102. *
  34103. * var numbers = Promise.all([
  34104. * Promise.resolve(40),
  34105. * Promise.resolve(36)
  34106. * ]);
  34107. *
  34108. * numbers.then(_.spread(function(x, y) {
  34109. * return x + y;
  34110. * }));
  34111. * // => a Promise of 76
  34112. */
  34113. function spread(func, start) {
  34114. if (typeof func != 'function') {
  34115. throw new TypeError(FUNC_ERROR_TEXT);
  34116. }
  34117. start = start == null ? 0 : nativeMax(toInteger(start), 0);
  34118. return baseRest(function(args) {
  34119. var array = args[start],
  34120. otherArgs = castSlice(args, 0, start);
  34121. if (array) {
  34122. arrayPush(otherArgs, array);
  34123. }
  34124. return apply(func, this, otherArgs);
  34125. });
  34126. }
  34127. /**
  34128. * Creates a throttled function that only invokes `func` at most once per
  34129. * every `wait` milliseconds. The throttled function comes with a `cancel`
  34130. * method to cancel delayed `func` invocations and a `flush` method to
  34131. * immediately invoke them. Provide `options` to indicate whether `func`
  34132. * should be invoked on the leading and/or trailing edge of the `wait`
  34133. * timeout. The `func` is invoked with the last arguments provided to the
  34134. * throttled function. Subsequent calls to the throttled function return the
  34135. * result of the last `func` invocation.
  34136. *
  34137. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  34138. * invoked on the trailing edge of the timeout only if the throttled function
  34139. * is invoked more than once during the `wait` timeout.
  34140. *
  34141. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  34142. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  34143. *
  34144. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  34145. * for details over the differences between `_.throttle` and `_.debounce`.
  34146. *
  34147. * @static
  34148. * @memberOf _
  34149. * @since 0.1.0
  34150. * @category Function
  34151. * @param {Function} func The function to throttle.
  34152. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  34153. * @param {Object} [options={}] The options object.
  34154. * @param {boolean} [options.leading=true]
  34155. * Specify invoking on the leading edge of the timeout.
  34156. * @param {boolean} [options.trailing=true]
  34157. * Specify invoking on the trailing edge of the timeout.
  34158. * @returns {Function} Returns the new throttled function.
  34159. * @example
  34160. *
  34161. * // Avoid excessively updating the position while scrolling.
  34162. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  34163. *
  34164. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  34165. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  34166. * jQuery(element).on('click', throttled);
  34167. *
  34168. * // Cancel the trailing throttled invocation.
  34169. * jQuery(window).on('popstate', throttled.cancel);
  34170. */
  34171. function throttle(func, wait, options) {
  34172. var leading = true,
  34173. trailing = true;
  34174. if (typeof func != 'function') {
  34175. throw new TypeError(FUNC_ERROR_TEXT);
  34176. }
  34177. if (isObject(options)) {
  34178. leading = 'leading' in options ? !!options.leading : leading;
  34179. trailing = 'trailing' in options ? !!options.trailing : trailing;
  34180. }
  34181. return debounce(func, wait, {
  34182. 'leading': leading,
  34183. 'maxWait': wait,
  34184. 'trailing': trailing
  34185. });
  34186. }
  34187. /**
  34188. * Creates a function that accepts up to one argument, ignoring any
  34189. * additional arguments.
  34190. *
  34191. * @static
  34192. * @memberOf _
  34193. * @since 4.0.0
  34194. * @category Function
  34195. * @param {Function} func The function to cap arguments for.
  34196. * @returns {Function} Returns the new capped function.
  34197. * @example
  34198. *
  34199. * _.map(['6', '8', '10'], _.unary(parseInt));
  34200. * // => [6, 8, 10]
  34201. */
  34202. function unary(func) {
  34203. return ary(func, 1);
  34204. }
  34205. /**
  34206. * Creates a function that provides `value` to `wrapper` as its first
  34207. * argument. Any additional arguments provided to the function are appended
  34208. * to those provided to the `wrapper`. The wrapper is invoked with the `this`
  34209. * binding of the created function.
  34210. *
  34211. * @static
  34212. * @memberOf _
  34213. * @since 0.1.0
  34214. * @category Function
  34215. * @param {*} value The value to wrap.
  34216. * @param {Function} [wrapper=identity] The wrapper function.
  34217. * @returns {Function} Returns the new function.
  34218. * @example
  34219. *
  34220. * var p = _.wrap(_.escape, function(func, text) {
  34221. * return '<p>' + func(text) + '</p>';
  34222. * });
  34223. *
  34224. * p('fred, barney, & pebbles');
  34225. * // => '<p>fred, barney, &amp; pebbles</p>'
  34226. */
  34227. function wrap(value, wrapper) {
  34228. return partial(castFunction(wrapper), value);
  34229. }
  34230. /*------------------------------------------------------------------------*/
  34231. /**
  34232. * Casts `value` as an array if it's not one.
  34233. *
  34234. * @static
  34235. * @memberOf _
  34236. * @since 4.4.0
  34237. * @category Lang
  34238. * @param {*} value The value to inspect.
  34239. * @returns {Array} Returns the cast array.
  34240. * @example
  34241. *
  34242. * _.castArray(1);
  34243. * // => [1]
  34244. *
  34245. * _.castArray({ 'a': 1 });
  34246. * // => [{ 'a': 1 }]
  34247. *
  34248. * _.castArray('abc');
  34249. * // => ['abc']
  34250. *
  34251. * _.castArray(null);
  34252. * // => [null]
  34253. *
  34254. * _.castArray(undefined);
  34255. * // => [undefined]
  34256. *
  34257. * _.castArray();
  34258. * // => []
  34259. *
  34260. * var array = [1, 2, 3];
  34261. * console.log(_.castArray(array) === array);
  34262. * // => true
  34263. */
  34264. function castArray() {
  34265. if (!arguments.length) {
  34266. return [];
  34267. }
  34268. var value = arguments[0];
  34269. return isArray(value) ? value : [value];
  34270. }
  34271. /**
  34272. * Creates a shallow clone of `value`.
  34273. *
  34274. * **Note:** This method is loosely based on the
  34275. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  34276. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  34277. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  34278. * arrays. The own enumerable properties of `arguments` objects are cloned
  34279. * as plain objects. An empty object is returned for uncloneable values such
  34280. * as error objects, functions, DOM nodes, and WeakMaps.
  34281. *
  34282. * @static
  34283. * @memberOf _
  34284. * @since 0.1.0
  34285. * @category Lang
  34286. * @param {*} value The value to clone.
  34287. * @returns {*} Returns the cloned value.
  34288. * @see _.cloneDeep
  34289. * @example
  34290. *
  34291. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  34292. *
  34293. * var shallow = _.clone(objects);
  34294. * console.log(shallow[0] === objects[0]);
  34295. * // => true
  34296. */
  34297. function clone(value) {
  34298. return baseClone(value, CLONE_SYMBOLS_FLAG);
  34299. }
  34300. /**
  34301. * This method is like `_.clone` except that it accepts `customizer` which
  34302. * is invoked to produce the cloned value. If `customizer` returns `undefined`,
  34303. * cloning is handled by the method instead. The `customizer` is invoked with
  34304. * up to four arguments; (value [, index|key, object, stack]).
  34305. *
  34306. * @static
  34307. * @memberOf _
  34308. * @since 4.0.0
  34309. * @category Lang
  34310. * @param {*} value The value to clone.
  34311. * @param {Function} [customizer] The function to customize cloning.
  34312. * @returns {*} Returns the cloned value.
  34313. * @see _.cloneDeepWith
  34314. * @example
  34315. *
  34316. * function customizer(value) {
  34317. * if (_.isElement(value)) {
  34318. * return value.cloneNode(false);
  34319. * }
  34320. * }
  34321. *
  34322. * var el = _.cloneWith(document.body, customizer);
  34323. *
  34324. * console.log(el === document.body);
  34325. * // => false
  34326. * console.log(el.nodeName);
  34327. * // => 'BODY'
  34328. * console.log(el.childNodes.length);
  34329. * // => 0
  34330. */
  34331. function cloneWith(value, customizer) {
  34332. customizer = typeof customizer == 'function' ? customizer : undefined;
  34333. return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
  34334. }
  34335. /**
  34336. * This method is like `_.clone` except that it recursively clones `value`.
  34337. *
  34338. * @static
  34339. * @memberOf _
  34340. * @since 1.0.0
  34341. * @category Lang
  34342. * @param {*} value The value to recursively clone.
  34343. * @returns {*} Returns the deep cloned value.
  34344. * @see _.clone
  34345. * @example
  34346. *
  34347. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  34348. *
  34349. * var deep = _.cloneDeep(objects);
  34350. * console.log(deep[0] === objects[0]);
  34351. * // => false
  34352. */
  34353. function cloneDeep(value) {
  34354. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  34355. }
  34356. /**
  34357. * This method is like `_.cloneWith` except that it recursively clones `value`.
  34358. *
  34359. * @static
  34360. * @memberOf _
  34361. * @since 4.0.0
  34362. * @category Lang
  34363. * @param {*} value The value to recursively clone.
  34364. * @param {Function} [customizer] The function to customize cloning.
  34365. * @returns {*} Returns the deep cloned value.
  34366. * @see _.cloneWith
  34367. * @example
  34368. *
  34369. * function customizer(value) {
  34370. * if (_.isElement(value)) {
  34371. * return value.cloneNode(true);
  34372. * }
  34373. * }
  34374. *
  34375. * var el = _.cloneDeepWith(document.body, customizer);
  34376. *
  34377. * console.log(el === document.body);
  34378. * // => false
  34379. * console.log(el.nodeName);
  34380. * // => 'BODY'
  34381. * console.log(el.childNodes.length);
  34382. * // => 20
  34383. */
  34384. function cloneDeepWith(value, customizer) {
  34385. customizer = typeof customizer == 'function' ? customizer : undefined;
  34386. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
  34387. }
  34388. /**
  34389. * Checks if `object` conforms to `source` by invoking the predicate
  34390. * properties of `source` with the corresponding property values of `object`.
  34391. *
  34392. * **Note:** This method is equivalent to `_.conforms` when `source` is
  34393. * partially applied.
  34394. *
  34395. * @static
  34396. * @memberOf _
  34397. * @since 4.14.0
  34398. * @category Lang
  34399. * @param {Object} object The object to inspect.
  34400. * @param {Object} source The object of property predicates to conform to.
  34401. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  34402. * @example
  34403. *
  34404. * var object = { 'a': 1, 'b': 2 };
  34405. *
  34406. * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
  34407. * // => true
  34408. *
  34409. * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
  34410. * // => false
  34411. */
  34412. function conformsTo(object, source) {
  34413. return source == null || baseConformsTo(object, source, keys(source));
  34414. }
  34415. /**
  34416. * Performs a
  34417. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  34418. * comparison between two values to determine if they are equivalent.
  34419. *
  34420. * @static
  34421. * @memberOf _
  34422. * @since 4.0.0
  34423. * @category Lang
  34424. * @param {*} value The value to compare.
  34425. * @param {*} other The other value to compare.
  34426. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  34427. * @example
  34428. *
  34429. * var object = { 'a': 1 };
  34430. * var other = { 'a': 1 };
  34431. *
  34432. * _.eq(object, object);
  34433. * // => true
  34434. *
  34435. * _.eq(object, other);
  34436. * // => false
  34437. *
  34438. * _.eq('a', 'a');
  34439. * // => true
  34440. *
  34441. * _.eq('a', Object('a'));
  34442. * // => false
  34443. *
  34444. * _.eq(NaN, NaN);
  34445. * // => true
  34446. */
  34447. function eq(value, other) {
  34448. return value === other || (value !== value && other !== other);
  34449. }
  34450. /**
  34451. * Checks if `value` is greater than `other`.
  34452. *
  34453. * @static
  34454. * @memberOf _
  34455. * @since 3.9.0
  34456. * @category Lang
  34457. * @param {*} value The value to compare.
  34458. * @param {*} other The other value to compare.
  34459. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  34460. * else `false`.
  34461. * @see _.lt
  34462. * @example
  34463. *
  34464. * _.gt(3, 1);
  34465. * // => true
  34466. *
  34467. * _.gt(3, 3);
  34468. * // => false
  34469. *
  34470. * _.gt(1, 3);
  34471. * // => false
  34472. */
  34473. var gt = createRelationalOperation(baseGt);
  34474. /**
  34475. * Checks if `value` is greater than or equal to `other`.
  34476. *
  34477. * @static
  34478. * @memberOf _
  34479. * @since 3.9.0
  34480. * @category Lang
  34481. * @param {*} value The value to compare.
  34482. * @param {*} other The other value to compare.
  34483. * @returns {boolean} Returns `true` if `value` is greater than or equal to
  34484. * `other`, else `false`.
  34485. * @see _.lte
  34486. * @example
  34487. *
  34488. * _.gte(3, 1);
  34489. * // => true
  34490. *
  34491. * _.gte(3, 3);
  34492. * // => true
  34493. *
  34494. * _.gte(1, 3);
  34495. * // => false
  34496. */
  34497. var gte = createRelationalOperation(function(value, other) {
  34498. return value >= other;
  34499. });
  34500. /**
  34501. * Checks if `value` is likely an `arguments` object.
  34502. *
  34503. * @static
  34504. * @memberOf _
  34505. * @since 0.1.0
  34506. * @category Lang
  34507. * @param {*} value The value to check.
  34508. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  34509. * else `false`.
  34510. * @example
  34511. *
  34512. * _.isArguments(function() { return arguments; }());
  34513. * // => true
  34514. *
  34515. * _.isArguments([1, 2, 3]);
  34516. * // => false
  34517. */
  34518. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  34519. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  34520. !propertyIsEnumerable.call(value, 'callee');
  34521. };
  34522. /**
  34523. * Checks if `value` is classified as an `Array` object.
  34524. *
  34525. * @static
  34526. * @memberOf _
  34527. * @since 0.1.0
  34528. * @category Lang
  34529. * @param {*} value The value to check.
  34530. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  34531. * @example
  34532. *
  34533. * _.isArray([1, 2, 3]);
  34534. * // => true
  34535. *
  34536. * _.isArray(document.body.children);
  34537. * // => false
  34538. *
  34539. * _.isArray('abc');
  34540. * // => false
  34541. *
  34542. * _.isArray(_.noop);
  34543. * // => false
  34544. */
  34545. var isArray = Array.isArray;
  34546. /**
  34547. * Checks if `value` is classified as an `ArrayBuffer` object.
  34548. *
  34549. * @static
  34550. * @memberOf _
  34551. * @since 4.3.0
  34552. * @category Lang
  34553. * @param {*} value The value to check.
  34554. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  34555. * @example
  34556. *
  34557. * _.isArrayBuffer(new ArrayBuffer(2));
  34558. * // => true
  34559. *
  34560. * _.isArrayBuffer(new Array(2));
  34561. * // => false
  34562. */
  34563. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
  34564. /**
  34565. * Checks if `value` is array-like. A value is considered array-like if it's
  34566. * not a function and has a `value.length` that's an integer greater than or
  34567. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  34568. *
  34569. * @static
  34570. * @memberOf _
  34571. * @since 4.0.0
  34572. * @category Lang
  34573. * @param {*} value The value to check.
  34574. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  34575. * @example
  34576. *
  34577. * _.isArrayLike([1, 2, 3]);
  34578. * // => true
  34579. *
  34580. * _.isArrayLike(document.body.children);
  34581. * // => true
  34582. *
  34583. * _.isArrayLike('abc');
  34584. * // => true
  34585. *
  34586. * _.isArrayLike(_.noop);
  34587. * // => false
  34588. */
  34589. function isArrayLike(value) {
  34590. return value != null && isLength(value.length) && !isFunction(value);
  34591. }
  34592. /**
  34593. * This method is like `_.isArrayLike` except that it also checks if `value`
  34594. * is an object.
  34595. *
  34596. * @static
  34597. * @memberOf _
  34598. * @since 4.0.0
  34599. * @category Lang
  34600. * @param {*} value The value to check.
  34601. * @returns {boolean} Returns `true` if `value` is an array-like object,
  34602. * else `false`.
  34603. * @example
  34604. *
  34605. * _.isArrayLikeObject([1, 2, 3]);
  34606. * // => true
  34607. *
  34608. * _.isArrayLikeObject(document.body.children);
  34609. * // => true
  34610. *
  34611. * _.isArrayLikeObject('abc');
  34612. * // => false
  34613. *
  34614. * _.isArrayLikeObject(_.noop);
  34615. * // => false
  34616. */
  34617. function isArrayLikeObject(value) {
  34618. return isObjectLike(value) && isArrayLike(value);
  34619. }
  34620. /**
  34621. * Checks if `value` is classified as a boolean primitive or object.
  34622. *
  34623. * @static
  34624. * @memberOf _
  34625. * @since 0.1.0
  34626. * @category Lang
  34627. * @param {*} value The value to check.
  34628. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
  34629. * @example
  34630. *
  34631. * _.isBoolean(false);
  34632. * // => true
  34633. *
  34634. * _.isBoolean(null);
  34635. * // => false
  34636. */
  34637. function isBoolean(value) {
  34638. return value === true || value === false ||
  34639. (isObjectLike(value) && baseGetTag(value) == boolTag);
  34640. }
  34641. /**
  34642. * Checks if `value` is a buffer.
  34643. *
  34644. * @static
  34645. * @memberOf _
  34646. * @since 4.3.0
  34647. * @category Lang
  34648. * @param {*} value The value to check.
  34649. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  34650. * @example
  34651. *
  34652. * _.isBuffer(new Buffer(2));
  34653. * // => true
  34654. *
  34655. * _.isBuffer(new Uint8Array(2));
  34656. * // => false
  34657. */
  34658. var isBuffer = nativeIsBuffer || stubFalse;
  34659. /**
  34660. * Checks if `value` is classified as a `Date` object.
  34661. *
  34662. * @static
  34663. * @memberOf _
  34664. * @since 0.1.0
  34665. * @category Lang
  34666. * @param {*} value The value to check.
  34667. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  34668. * @example
  34669. *
  34670. * _.isDate(new Date);
  34671. * // => true
  34672. *
  34673. * _.isDate('Mon April 23 2012');
  34674. * // => false
  34675. */
  34676. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  34677. /**
  34678. * Checks if `value` is likely a DOM element.
  34679. *
  34680. * @static
  34681. * @memberOf _
  34682. * @since 0.1.0
  34683. * @category Lang
  34684. * @param {*} value The value to check.
  34685. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  34686. * @example
  34687. *
  34688. * _.isElement(document.body);
  34689. * // => true
  34690. *
  34691. * _.isElement('<body>');
  34692. * // => false
  34693. */
  34694. function isElement(value) {
  34695. return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
  34696. }
  34697. /**
  34698. * Checks if `value` is an empty object, collection, map, or set.
  34699. *
  34700. * Objects are considered empty if they have no own enumerable string keyed
  34701. * properties.
  34702. *
  34703. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  34704. * jQuery-like collections are considered empty if they have a `length` of `0`.
  34705. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  34706. *
  34707. * @static
  34708. * @memberOf _
  34709. * @since 0.1.0
  34710. * @category Lang
  34711. * @param {*} value The value to check.
  34712. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  34713. * @example
  34714. *
  34715. * _.isEmpty(null);
  34716. * // => true
  34717. *
  34718. * _.isEmpty(true);
  34719. * // => true
  34720. *
  34721. * _.isEmpty(1);
  34722. * // => true
  34723. *
  34724. * _.isEmpty([1, 2, 3]);
  34725. * // => false
  34726. *
  34727. * _.isEmpty({ 'a': 1 });
  34728. * // => false
  34729. */
  34730. function isEmpty(value) {
  34731. if (value == null) {
  34732. return true;
  34733. }
  34734. if (isArrayLike(value) &&
  34735. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  34736. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  34737. return !value.length;
  34738. }
  34739. var tag = getTag(value);
  34740. if (tag == mapTag || tag == setTag) {
  34741. return !value.size;
  34742. }
  34743. if (isPrototype(value)) {
  34744. return !baseKeys(value).length;
  34745. }
  34746. for (var key in value) {
  34747. if (hasOwnProperty.call(value, key)) {
  34748. return false;
  34749. }
  34750. }
  34751. return true;
  34752. }
  34753. /**
  34754. * Performs a deep comparison between two values to determine if they are
  34755. * equivalent.
  34756. *
  34757. * **Note:** This method supports comparing arrays, array buffers, booleans,
  34758. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  34759. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  34760. * by their own, not inherited, enumerable properties. Functions and DOM
  34761. * nodes are compared by strict equality, i.e. `===`.
  34762. *
  34763. * @static
  34764. * @memberOf _
  34765. * @since 0.1.0
  34766. * @category Lang
  34767. * @param {*} value The value to compare.
  34768. * @param {*} other The other value to compare.
  34769. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  34770. * @example
  34771. *
  34772. * var object = { 'a': 1 };
  34773. * var other = { 'a': 1 };
  34774. *
  34775. * _.isEqual(object, other);
  34776. * // => true
  34777. *
  34778. * object === other;
  34779. * // => false
  34780. */
  34781. function isEqual(value, other) {
  34782. return baseIsEqual(value, other);
  34783. }
  34784. /**
  34785. * This method is like `_.isEqual` except that it accepts `customizer` which
  34786. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  34787. * are handled by the method instead. The `customizer` is invoked with up to
  34788. * six arguments: (objValue, othValue [, index|key, object, other, stack]).
  34789. *
  34790. * @static
  34791. * @memberOf _
  34792. * @since 4.0.0
  34793. * @category Lang
  34794. * @param {*} value The value to compare.
  34795. * @param {*} other The other value to compare.
  34796. * @param {Function} [customizer] The function to customize comparisons.
  34797. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  34798. * @example
  34799. *
  34800. * function isGreeting(value) {
  34801. * return /^h(?:i|ello)$/.test(value);
  34802. * }
  34803. *
  34804. * function customizer(objValue, othValue) {
  34805. * if (isGreeting(objValue) && isGreeting(othValue)) {
  34806. * return true;
  34807. * }
  34808. * }
  34809. *
  34810. * var array = ['hello', 'goodbye'];
  34811. * var other = ['hi', 'goodbye'];
  34812. *
  34813. * _.isEqualWith(array, other, customizer);
  34814. * // => true
  34815. */
  34816. function isEqualWith(value, other, customizer) {
  34817. customizer = typeof customizer == 'function' ? customizer : undefined;
  34818. var result = customizer ? customizer(value, other) : undefined;
  34819. return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
  34820. }
  34821. /**
  34822. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  34823. * `SyntaxError`, `TypeError`, or `URIError` object.
  34824. *
  34825. * @static
  34826. * @memberOf _
  34827. * @since 3.0.0
  34828. * @category Lang
  34829. * @param {*} value The value to check.
  34830. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  34831. * @example
  34832. *
  34833. * _.isError(new Error);
  34834. * // => true
  34835. *
  34836. * _.isError(Error);
  34837. * // => false
  34838. */
  34839. function isError(value) {
  34840. if (!isObjectLike(value)) {
  34841. return false;
  34842. }
  34843. var tag = baseGetTag(value);
  34844. return tag == errorTag || tag == domExcTag ||
  34845. (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
  34846. }
  34847. /**
  34848. * Checks if `value` is a finite primitive number.
  34849. *
  34850. * **Note:** This method is based on
  34851. * [`Number.isFinite`](https://mdn.io/Number/isFinite).
  34852. *
  34853. * @static
  34854. * @memberOf _
  34855. * @since 0.1.0
  34856. * @category Lang
  34857. * @param {*} value The value to check.
  34858. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  34859. * @example
  34860. *
  34861. * _.isFinite(3);
  34862. * // => true
  34863. *
  34864. * _.isFinite(Number.MIN_VALUE);
  34865. * // => true
  34866. *
  34867. * _.isFinite(Infinity);
  34868. * // => false
  34869. *
  34870. * _.isFinite('3');
  34871. * // => false
  34872. */
  34873. function isFinite(value) {
  34874. return typeof value == 'number' && nativeIsFinite(value);
  34875. }
  34876. /**
  34877. * Checks if `value` is classified as a `Function` object.
  34878. *
  34879. * @static
  34880. * @memberOf _
  34881. * @since 0.1.0
  34882. * @category Lang
  34883. * @param {*} value The value to check.
  34884. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  34885. * @example
  34886. *
  34887. * _.isFunction(_);
  34888. * // => true
  34889. *
  34890. * _.isFunction(/abc/);
  34891. * // => false
  34892. */
  34893. function isFunction(value) {
  34894. if (!isObject(value)) {
  34895. return false;
  34896. }
  34897. // The use of `Object#toString` avoids issues with the `typeof` operator
  34898. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  34899. var tag = baseGetTag(value);
  34900. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  34901. }
  34902. /**
  34903. * Checks if `value` is an integer.
  34904. *
  34905. * **Note:** This method is based on
  34906. * [`Number.isInteger`](https://mdn.io/Number/isInteger).
  34907. *
  34908. * @static
  34909. * @memberOf _
  34910. * @since 4.0.0
  34911. * @category Lang
  34912. * @param {*} value The value to check.
  34913. * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
  34914. * @example
  34915. *
  34916. * _.isInteger(3);
  34917. * // => true
  34918. *
  34919. * _.isInteger(Number.MIN_VALUE);
  34920. * // => false
  34921. *
  34922. * _.isInteger(Infinity);
  34923. * // => false
  34924. *
  34925. * _.isInteger('3');
  34926. * // => false
  34927. */
  34928. function isInteger(value) {
  34929. return typeof value == 'number' && value == toInteger(value);
  34930. }
  34931. /**
  34932. * Checks if `value` is a valid array-like length.
  34933. *
  34934. * **Note:** This method is loosely based on
  34935. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  34936. *
  34937. * @static
  34938. * @memberOf _
  34939. * @since 4.0.0
  34940. * @category Lang
  34941. * @param {*} value The value to check.
  34942. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  34943. * @example
  34944. *
  34945. * _.isLength(3);
  34946. * // => true
  34947. *
  34948. * _.isLength(Number.MIN_VALUE);
  34949. * // => false
  34950. *
  34951. * _.isLength(Infinity);
  34952. * // => false
  34953. *
  34954. * _.isLength('3');
  34955. * // => false
  34956. */
  34957. function isLength(value) {
  34958. return typeof value == 'number' &&
  34959. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  34960. }
  34961. /**
  34962. * Checks if `value` is the
  34963. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  34964. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  34965. *
  34966. * @static
  34967. * @memberOf _
  34968. * @since 0.1.0
  34969. * @category Lang
  34970. * @param {*} value The value to check.
  34971. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  34972. * @example
  34973. *
  34974. * _.isObject({});
  34975. * // => true
  34976. *
  34977. * _.isObject([1, 2, 3]);
  34978. * // => true
  34979. *
  34980. * _.isObject(_.noop);
  34981. * // => true
  34982. *
  34983. * _.isObject(null);
  34984. * // => false
  34985. */
  34986. function isObject(value) {
  34987. var type = typeof value;
  34988. return value != null && (type == 'object' || type == 'function');
  34989. }
  34990. /**
  34991. * Checks if `value` is object-like. A value is object-like if it's not `null`
  34992. * and has a `typeof` result of "object".
  34993. *
  34994. * @static
  34995. * @memberOf _
  34996. * @since 4.0.0
  34997. * @category Lang
  34998. * @param {*} value The value to check.
  34999. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  35000. * @example
  35001. *
  35002. * _.isObjectLike({});
  35003. * // => true
  35004. *
  35005. * _.isObjectLike([1, 2, 3]);
  35006. * // => true
  35007. *
  35008. * _.isObjectLike(_.noop);
  35009. * // => false
  35010. *
  35011. * _.isObjectLike(null);
  35012. * // => false
  35013. */
  35014. function isObjectLike(value) {
  35015. return value != null && typeof value == 'object';
  35016. }
  35017. /**
  35018. * Checks if `value` is classified as a `Map` object.
  35019. *
  35020. * @static
  35021. * @memberOf _
  35022. * @since 4.3.0
  35023. * @category Lang
  35024. * @param {*} value The value to check.
  35025. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  35026. * @example
  35027. *
  35028. * _.isMap(new Map);
  35029. * // => true
  35030. *
  35031. * _.isMap(new WeakMap);
  35032. * // => false
  35033. */
  35034. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  35035. /**
  35036. * Performs a partial deep comparison between `object` and `source` to
  35037. * determine if `object` contains equivalent property values.
  35038. *
  35039. * **Note:** This method is equivalent to `_.matches` when `source` is
  35040. * partially applied.
  35041. *
  35042. * Partial comparisons will match empty array and empty object `source`
  35043. * values against any array or object value, respectively. See `_.isEqual`
  35044. * for a list of supported value comparisons.
  35045. *
  35046. * @static
  35047. * @memberOf _
  35048. * @since 3.0.0
  35049. * @category Lang
  35050. * @param {Object} object The object to inspect.
  35051. * @param {Object} source The object of property values to match.
  35052. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  35053. * @example
  35054. *
  35055. * var object = { 'a': 1, 'b': 2 };
  35056. *
  35057. * _.isMatch(object, { 'b': 2 });
  35058. * // => true
  35059. *
  35060. * _.isMatch(object, { 'b': 1 });
  35061. * // => false
  35062. */
  35063. function isMatch(object, source) {
  35064. return object === source || baseIsMatch(object, source, getMatchData(source));
  35065. }
  35066. /**
  35067. * This method is like `_.isMatch` except that it accepts `customizer` which
  35068. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  35069. * are handled by the method instead. The `customizer` is invoked with five
  35070. * arguments: (objValue, srcValue, index|key, object, source).
  35071. *
  35072. * @static
  35073. * @memberOf _
  35074. * @since 4.0.0
  35075. * @category Lang
  35076. * @param {Object} object The object to inspect.
  35077. * @param {Object} source The object of property values to match.
  35078. * @param {Function} [customizer] The function to customize comparisons.
  35079. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  35080. * @example
  35081. *
  35082. * function isGreeting(value) {
  35083. * return /^h(?:i|ello)$/.test(value);
  35084. * }
  35085. *
  35086. * function customizer(objValue, srcValue) {
  35087. * if (isGreeting(objValue) && isGreeting(srcValue)) {
  35088. * return true;
  35089. * }
  35090. * }
  35091. *
  35092. * var object = { 'greeting': 'hello' };
  35093. * var source = { 'greeting': 'hi' };
  35094. *
  35095. * _.isMatchWith(object, source, customizer);
  35096. * // => true
  35097. */
  35098. function isMatchWith(object, source, customizer) {
  35099. customizer = typeof customizer == 'function' ? customizer : undefined;
  35100. return baseIsMatch(object, source, getMatchData(source), customizer);
  35101. }
  35102. /**
  35103. * Checks if `value` is `NaN`.
  35104. *
  35105. * **Note:** This method is based on
  35106. * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
  35107. * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
  35108. * `undefined` and other non-number values.
  35109. *
  35110. * @static
  35111. * @memberOf _
  35112. * @since 0.1.0
  35113. * @category Lang
  35114. * @param {*} value The value to check.
  35115. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  35116. * @example
  35117. *
  35118. * _.isNaN(NaN);
  35119. * // => true
  35120. *
  35121. * _.isNaN(new Number(NaN));
  35122. * // => true
  35123. *
  35124. * isNaN(undefined);
  35125. * // => true
  35126. *
  35127. * _.isNaN(undefined);
  35128. * // => false
  35129. */
  35130. function isNaN(value) {
  35131. // An `NaN` primitive is the only value that is not equal to itself.
  35132. // Perform the `toStringTag` check first to avoid errors with some
  35133. // ActiveX objects in IE.
  35134. return isNumber(value) && value != +value;
  35135. }
  35136. /**
  35137. * Checks if `value` is a pristine native function.
  35138. *
  35139. * **Note:** This method can't reliably detect native functions in the presence
  35140. * of the core-js package because core-js circumvents this kind of detection.
  35141. * Despite multiple requests, the core-js maintainer has made it clear: any
  35142. * attempt to fix the detection will be obstructed. As a result, we're left
  35143. * with little choice but to throw an error. Unfortunately, this also affects
  35144. * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
  35145. * which rely on core-js.
  35146. *
  35147. * @static
  35148. * @memberOf _
  35149. * @since 3.0.0
  35150. * @category Lang
  35151. * @param {*} value The value to check.
  35152. * @returns {boolean} Returns `true` if `value` is a native function,
  35153. * else `false`.
  35154. * @example
  35155. *
  35156. * _.isNative(Array.prototype.push);
  35157. * // => true
  35158. *
  35159. * _.isNative(_);
  35160. * // => false
  35161. */
  35162. function isNative(value) {
  35163. if (isMaskable(value)) {
  35164. throw new Error(CORE_ERROR_TEXT);
  35165. }
  35166. return baseIsNative(value);
  35167. }
  35168. /**
  35169. * Checks if `value` is `null`.
  35170. *
  35171. * @static
  35172. * @memberOf _
  35173. * @since 0.1.0
  35174. * @category Lang
  35175. * @param {*} value The value to check.
  35176. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  35177. * @example
  35178. *
  35179. * _.isNull(null);
  35180. * // => true
  35181. *
  35182. * _.isNull(void 0);
  35183. * // => false
  35184. */
  35185. function isNull(value) {
  35186. return value === null;
  35187. }
  35188. /**
  35189. * Checks if `value` is `null` or `undefined`.
  35190. *
  35191. * @static
  35192. * @memberOf _
  35193. * @since 4.0.0
  35194. * @category Lang
  35195. * @param {*} value The value to check.
  35196. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  35197. * @example
  35198. *
  35199. * _.isNil(null);
  35200. * // => true
  35201. *
  35202. * _.isNil(void 0);
  35203. * // => true
  35204. *
  35205. * _.isNil(NaN);
  35206. * // => false
  35207. */
  35208. function isNil(value) {
  35209. return value == null;
  35210. }
  35211. /**
  35212. * Checks if `value` is classified as a `Number` primitive or object.
  35213. *
  35214. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
  35215. * classified as numbers, use the `_.isFinite` method.
  35216. *
  35217. * @static
  35218. * @memberOf _
  35219. * @since 0.1.0
  35220. * @category Lang
  35221. * @param {*} value The value to check.
  35222. * @returns {boolean} Returns `true` if `value` is a number, else `false`.
  35223. * @example
  35224. *
  35225. * _.isNumber(3);
  35226. * // => true
  35227. *
  35228. * _.isNumber(Number.MIN_VALUE);
  35229. * // => true
  35230. *
  35231. * _.isNumber(Infinity);
  35232. * // => true
  35233. *
  35234. * _.isNumber('3');
  35235. * // => false
  35236. */
  35237. function isNumber(value) {
  35238. return typeof value == 'number' ||
  35239. (isObjectLike(value) && baseGetTag(value) == numberTag);
  35240. }
  35241. /**
  35242. * Checks if `value` is a plain object, that is, an object created by the
  35243. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  35244. *
  35245. * @static
  35246. * @memberOf _
  35247. * @since 0.8.0
  35248. * @category Lang
  35249. * @param {*} value The value to check.
  35250. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  35251. * @example
  35252. *
  35253. * function Foo() {
  35254. * this.a = 1;
  35255. * }
  35256. *
  35257. * _.isPlainObject(new Foo);
  35258. * // => false
  35259. *
  35260. * _.isPlainObject([1, 2, 3]);
  35261. * // => false
  35262. *
  35263. * _.isPlainObject({ 'x': 0, 'y': 0 });
  35264. * // => true
  35265. *
  35266. * _.isPlainObject(Object.create(null));
  35267. * // => true
  35268. */
  35269. function isPlainObject(value) {
  35270. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  35271. return false;
  35272. }
  35273. var proto = getPrototype(value);
  35274. if (proto === null) {
  35275. return true;
  35276. }
  35277. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  35278. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  35279. funcToString.call(Ctor) == objectCtorString;
  35280. }
  35281. /**
  35282. * Checks if `value` is classified as a `RegExp` object.
  35283. *
  35284. * @static
  35285. * @memberOf _
  35286. * @since 0.1.0
  35287. * @category Lang
  35288. * @param {*} value The value to check.
  35289. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  35290. * @example
  35291. *
  35292. * _.isRegExp(/abc/);
  35293. * // => true
  35294. *
  35295. * _.isRegExp('/abc/');
  35296. * // => false
  35297. */
  35298. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  35299. /**
  35300. * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
  35301. * double precision number which isn't the result of a rounded unsafe integer.
  35302. *
  35303. * **Note:** This method is based on
  35304. * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
  35305. *
  35306. * @static
  35307. * @memberOf _
  35308. * @since 4.0.0
  35309. * @category Lang
  35310. * @param {*} value The value to check.
  35311. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
  35312. * @example
  35313. *
  35314. * _.isSafeInteger(3);
  35315. * // => true
  35316. *
  35317. * _.isSafeInteger(Number.MIN_VALUE);
  35318. * // => false
  35319. *
  35320. * _.isSafeInteger(Infinity);
  35321. * // => false
  35322. *
  35323. * _.isSafeInteger('3');
  35324. * // => false
  35325. */
  35326. function isSafeInteger(value) {
  35327. return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
  35328. }
  35329. /**
  35330. * Checks if `value` is classified as a `Set` object.
  35331. *
  35332. * @static
  35333. * @memberOf _
  35334. * @since 4.3.0
  35335. * @category Lang
  35336. * @param {*} value The value to check.
  35337. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  35338. * @example
  35339. *
  35340. * _.isSet(new Set);
  35341. * // => true
  35342. *
  35343. * _.isSet(new WeakSet);
  35344. * // => false
  35345. */
  35346. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  35347. /**
  35348. * Checks if `value` is classified as a `String` primitive or object.
  35349. *
  35350. * @static
  35351. * @since 0.1.0
  35352. * @memberOf _
  35353. * @category Lang
  35354. * @param {*} value The value to check.
  35355. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  35356. * @example
  35357. *
  35358. * _.isString('abc');
  35359. * // => true
  35360. *
  35361. * _.isString(1);
  35362. * // => false
  35363. */
  35364. function isString(value) {
  35365. return typeof value == 'string' ||
  35366. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  35367. }
  35368. /**
  35369. * Checks if `value` is classified as a `Symbol` primitive or object.
  35370. *
  35371. * @static
  35372. * @memberOf _
  35373. * @since 4.0.0
  35374. * @category Lang
  35375. * @param {*} value The value to check.
  35376. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  35377. * @example
  35378. *
  35379. * _.isSymbol(Symbol.iterator);
  35380. * // => true
  35381. *
  35382. * _.isSymbol('abc');
  35383. * // => false
  35384. */
  35385. function isSymbol(value) {
  35386. return typeof value == 'symbol' ||
  35387. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  35388. }
  35389. /**
  35390. * Checks if `value` is classified as a typed array.
  35391. *
  35392. * @static
  35393. * @memberOf _
  35394. * @since 3.0.0
  35395. * @category Lang
  35396. * @param {*} value The value to check.
  35397. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  35398. * @example
  35399. *
  35400. * _.isTypedArray(new Uint8Array);
  35401. * // => true
  35402. *
  35403. * _.isTypedArray([]);
  35404. * // => false
  35405. */
  35406. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  35407. /**
  35408. * Checks if `value` is `undefined`.
  35409. *
  35410. * @static
  35411. * @since 0.1.0
  35412. * @memberOf _
  35413. * @category Lang
  35414. * @param {*} value The value to check.
  35415. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  35416. * @example
  35417. *
  35418. * _.isUndefined(void 0);
  35419. * // => true
  35420. *
  35421. * _.isUndefined(null);
  35422. * // => false
  35423. */
  35424. function isUndefined(value) {
  35425. return value === undefined;
  35426. }
  35427. /**
  35428. * Checks if `value` is classified as a `WeakMap` object.
  35429. *
  35430. * @static
  35431. * @memberOf _
  35432. * @since 4.3.0
  35433. * @category Lang
  35434. * @param {*} value The value to check.
  35435. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
  35436. * @example
  35437. *
  35438. * _.isWeakMap(new WeakMap);
  35439. * // => true
  35440. *
  35441. * _.isWeakMap(new Map);
  35442. * // => false
  35443. */
  35444. function isWeakMap(value) {
  35445. return isObjectLike(value) && getTag(value) == weakMapTag;
  35446. }
  35447. /**
  35448. * Checks if `value` is classified as a `WeakSet` object.
  35449. *
  35450. * @static
  35451. * @memberOf _
  35452. * @since 4.3.0
  35453. * @category Lang
  35454. * @param {*} value The value to check.
  35455. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
  35456. * @example
  35457. *
  35458. * _.isWeakSet(new WeakSet);
  35459. * // => true
  35460. *
  35461. * _.isWeakSet(new Set);
  35462. * // => false
  35463. */
  35464. function isWeakSet(value) {
  35465. return isObjectLike(value) && baseGetTag(value) == weakSetTag;
  35466. }
  35467. /**
  35468. * Checks if `value` is less than `other`.
  35469. *
  35470. * @static
  35471. * @memberOf _
  35472. * @since 3.9.0
  35473. * @category Lang
  35474. * @param {*} value The value to compare.
  35475. * @param {*} other The other value to compare.
  35476. * @returns {boolean} Returns `true` if `value` is less than `other`,
  35477. * else `false`.
  35478. * @see _.gt
  35479. * @example
  35480. *
  35481. * _.lt(1, 3);
  35482. * // => true
  35483. *
  35484. * _.lt(3, 3);
  35485. * // => false
  35486. *
  35487. * _.lt(3, 1);
  35488. * // => false
  35489. */
  35490. var lt = createRelationalOperation(baseLt);
  35491. /**
  35492. * Checks if `value` is less than or equal to `other`.
  35493. *
  35494. * @static
  35495. * @memberOf _
  35496. * @since 3.9.0
  35497. * @category Lang
  35498. * @param {*} value The value to compare.
  35499. * @param {*} other The other value to compare.
  35500. * @returns {boolean} Returns `true` if `value` is less than or equal to
  35501. * `other`, else `false`.
  35502. * @see _.gte
  35503. * @example
  35504. *
  35505. * _.lte(1, 3);
  35506. * // => true
  35507. *
  35508. * _.lte(3, 3);
  35509. * // => true
  35510. *
  35511. * _.lte(3, 1);
  35512. * // => false
  35513. */
  35514. var lte = createRelationalOperation(function(value, other) {
  35515. return value <= other;
  35516. });
  35517. /**
  35518. * Converts `value` to an array.
  35519. *
  35520. * @static
  35521. * @since 0.1.0
  35522. * @memberOf _
  35523. * @category Lang
  35524. * @param {*} value The value to convert.
  35525. * @returns {Array} Returns the converted array.
  35526. * @example
  35527. *
  35528. * _.toArray({ 'a': 1, 'b': 2 });
  35529. * // => [1, 2]
  35530. *
  35531. * _.toArray('abc');
  35532. * // => ['a', 'b', 'c']
  35533. *
  35534. * _.toArray(1);
  35535. * // => []
  35536. *
  35537. * _.toArray(null);
  35538. * // => []
  35539. */
  35540. function toArray(value) {
  35541. if (!value) {
  35542. return [];
  35543. }
  35544. if (isArrayLike(value)) {
  35545. return isString(value) ? stringToArray(value) : copyArray(value);
  35546. }
  35547. if (symIterator && value[symIterator]) {
  35548. return iteratorToArray(value[symIterator]());
  35549. }
  35550. var tag = getTag(value),
  35551. func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
  35552. return func(value);
  35553. }
  35554. /**
  35555. * Converts `value` to a finite number.
  35556. *
  35557. * @static
  35558. * @memberOf _
  35559. * @since 4.12.0
  35560. * @category Lang
  35561. * @param {*} value The value to convert.
  35562. * @returns {number} Returns the converted number.
  35563. * @example
  35564. *
  35565. * _.toFinite(3.2);
  35566. * // => 3.2
  35567. *
  35568. * _.toFinite(Number.MIN_VALUE);
  35569. * // => 5e-324
  35570. *
  35571. * _.toFinite(Infinity);
  35572. * // => 1.7976931348623157e+308
  35573. *
  35574. * _.toFinite('3.2');
  35575. * // => 3.2
  35576. */
  35577. function toFinite(value) {
  35578. if (!value) {
  35579. return value === 0 ? value : 0;
  35580. }
  35581. value = toNumber(value);
  35582. if (value === INFINITY || value === -INFINITY) {
  35583. var sign = (value < 0 ? -1 : 1);
  35584. return sign * MAX_INTEGER;
  35585. }
  35586. return value === value ? value : 0;
  35587. }
  35588. /**
  35589. * Converts `value` to an integer.
  35590. *
  35591. * **Note:** This method is loosely based on
  35592. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  35593. *
  35594. * @static
  35595. * @memberOf _
  35596. * @since 4.0.0
  35597. * @category Lang
  35598. * @param {*} value The value to convert.
  35599. * @returns {number} Returns the converted integer.
  35600. * @example
  35601. *
  35602. * _.toInteger(3.2);
  35603. * // => 3
  35604. *
  35605. * _.toInteger(Number.MIN_VALUE);
  35606. * // => 0
  35607. *
  35608. * _.toInteger(Infinity);
  35609. * // => 1.7976931348623157e+308
  35610. *
  35611. * _.toInteger('3.2');
  35612. * // => 3
  35613. */
  35614. function toInteger(value) {
  35615. var result = toFinite(value),
  35616. remainder = result % 1;
  35617. return result === result ? (remainder ? result - remainder : result) : 0;
  35618. }
  35619. /**
  35620. * Converts `value` to an integer suitable for use as the length of an
  35621. * array-like object.
  35622. *
  35623. * **Note:** This method is based on
  35624. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  35625. *
  35626. * @static
  35627. * @memberOf _
  35628. * @since 4.0.0
  35629. * @category Lang
  35630. * @param {*} value The value to convert.
  35631. * @returns {number} Returns the converted integer.
  35632. * @example
  35633. *
  35634. * _.toLength(3.2);
  35635. * // => 3
  35636. *
  35637. * _.toLength(Number.MIN_VALUE);
  35638. * // => 0
  35639. *
  35640. * _.toLength(Infinity);
  35641. * // => 4294967295
  35642. *
  35643. * _.toLength('3.2');
  35644. * // => 3
  35645. */
  35646. function toLength(value) {
  35647. return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
  35648. }
  35649. /**
  35650. * Converts `value` to a number.
  35651. *
  35652. * @static
  35653. * @memberOf _
  35654. * @since 4.0.0
  35655. * @category Lang
  35656. * @param {*} value The value to process.
  35657. * @returns {number} Returns the number.
  35658. * @example
  35659. *
  35660. * _.toNumber(3.2);
  35661. * // => 3.2
  35662. *
  35663. * _.toNumber(Number.MIN_VALUE);
  35664. * // => 5e-324
  35665. *
  35666. * _.toNumber(Infinity);
  35667. * // => Infinity
  35668. *
  35669. * _.toNumber('3.2');
  35670. * // => 3.2
  35671. */
  35672. function toNumber(value) {
  35673. if (typeof value == 'number') {
  35674. return value;
  35675. }
  35676. if (isSymbol(value)) {
  35677. return NAN;
  35678. }
  35679. if (isObject(value)) {
  35680. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  35681. value = isObject(other) ? (other + '') : other;
  35682. }
  35683. if (typeof value != 'string') {
  35684. return value === 0 ? value : +value;
  35685. }
  35686. value = value.replace(reTrim, '');
  35687. var isBinary = reIsBinary.test(value);
  35688. return (isBinary || reIsOctal.test(value))
  35689. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  35690. : (reIsBadHex.test(value) ? NAN : +value);
  35691. }
  35692. /**
  35693. * Converts `value` to a plain object flattening inherited enumerable string
  35694. * keyed properties of `value` to own properties of the plain object.
  35695. *
  35696. * @static
  35697. * @memberOf _
  35698. * @since 3.0.0
  35699. * @category Lang
  35700. * @param {*} value The value to convert.
  35701. * @returns {Object} Returns the converted plain object.
  35702. * @example
  35703. *
  35704. * function Foo() {
  35705. * this.b = 2;
  35706. * }
  35707. *
  35708. * Foo.prototype.c = 3;
  35709. *
  35710. * _.assign({ 'a': 1 }, new Foo);
  35711. * // => { 'a': 1, 'b': 2 }
  35712. *
  35713. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  35714. * // => { 'a': 1, 'b': 2, 'c': 3 }
  35715. */
  35716. function toPlainObject(value) {
  35717. return copyObject(value, keysIn(value));
  35718. }
  35719. /**
  35720. * Converts `value` to a safe integer. A safe integer can be compared and
  35721. * represented correctly.
  35722. *
  35723. * @static
  35724. * @memberOf _
  35725. * @since 4.0.0
  35726. * @category Lang
  35727. * @param {*} value The value to convert.
  35728. * @returns {number} Returns the converted integer.
  35729. * @example
  35730. *
  35731. * _.toSafeInteger(3.2);
  35732. * // => 3
  35733. *
  35734. * _.toSafeInteger(Number.MIN_VALUE);
  35735. * // => 0
  35736. *
  35737. * _.toSafeInteger(Infinity);
  35738. * // => 9007199254740991
  35739. *
  35740. * _.toSafeInteger('3.2');
  35741. * // => 3
  35742. */
  35743. function toSafeInteger(value) {
  35744. return value
  35745. ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
  35746. : (value === 0 ? value : 0);
  35747. }
  35748. /**
  35749. * Converts `value` to a string. An empty string is returned for `null`
  35750. * and `undefined` values. The sign of `-0` is preserved.
  35751. *
  35752. * @static
  35753. * @memberOf _
  35754. * @since 4.0.0
  35755. * @category Lang
  35756. * @param {*} value The value to convert.
  35757. * @returns {string} Returns the converted string.
  35758. * @example
  35759. *
  35760. * _.toString(null);
  35761. * // => ''
  35762. *
  35763. * _.toString(-0);
  35764. * // => '-0'
  35765. *
  35766. * _.toString([1, 2, 3]);
  35767. * // => '1,2,3'
  35768. */
  35769. function toString(value) {
  35770. return value == null ? '' : baseToString(value);
  35771. }
  35772. /*------------------------------------------------------------------------*/
  35773. /**
  35774. * Assigns own enumerable string keyed properties of source objects to the
  35775. * destination object. Source objects are applied from left to right.
  35776. * Subsequent sources overwrite property assignments of previous sources.
  35777. *
  35778. * **Note:** This method mutates `object` and is loosely based on
  35779. * [`Object.assign`](https://mdn.io/Object/assign).
  35780. *
  35781. * @static
  35782. * @memberOf _
  35783. * @since 0.10.0
  35784. * @category Object
  35785. * @param {Object} object The destination object.
  35786. * @param {...Object} [sources] The source objects.
  35787. * @returns {Object} Returns `object`.
  35788. * @see _.assignIn
  35789. * @example
  35790. *
  35791. * function Foo() {
  35792. * this.a = 1;
  35793. * }
  35794. *
  35795. * function Bar() {
  35796. * this.c = 3;
  35797. * }
  35798. *
  35799. * Foo.prototype.b = 2;
  35800. * Bar.prototype.d = 4;
  35801. *
  35802. * _.assign({ 'a': 0 }, new Foo, new Bar);
  35803. * // => { 'a': 1, 'c': 3 }
  35804. */
  35805. var assign = createAssigner(function(object, source) {
  35806. if (isPrototype(source) || isArrayLike(source)) {
  35807. copyObject(source, keys(source), object);
  35808. return;
  35809. }
  35810. for (var key in source) {
  35811. if (hasOwnProperty.call(source, key)) {
  35812. assignValue(object, key, source[key]);
  35813. }
  35814. }
  35815. });
  35816. /**
  35817. * This method is like `_.assign` except that it iterates over own and
  35818. * inherited source properties.
  35819. *
  35820. * **Note:** This method mutates `object`.
  35821. *
  35822. * @static
  35823. * @memberOf _
  35824. * @since 4.0.0
  35825. * @alias extend
  35826. * @category Object
  35827. * @param {Object} object The destination object.
  35828. * @param {...Object} [sources] The source objects.
  35829. * @returns {Object} Returns `object`.
  35830. * @see _.assign
  35831. * @example
  35832. *
  35833. * function Foo() {
  35834. * this.a = 1;
  35835. * }
  35836. *
  35837. * function Bar() {
  35838. * this.c = 3;
  35839. * }
  35840. *
  35841. * Foo.prototype.b = 2;
  35842. * Bar.prototype.d = 4;
  35843. *
  35844. * _.assignIn({ 'a': 0 }, new Foo, new Bar);
  35845. * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
  35846. */
  35847. var assignIn = createAssigner(function(object, source) {
  35848. copyObject(source, keysIn(source), object);
  35849. });
  35850. /**
  35851. * This method is like `_.assignIn` except that it accepts `customizer`
  35852. * which is invoked to produce the assigned values. If `customizer` returns
  35853. * `undefined`, assignment is handled by the method instead. The `customizer`
  35854. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  35855. *
  35856. * **Note:** This method mutates `object`.
  35857. *
  35858. * @static
  35859. * @memberOf _
  35860. * @since 4.0.0
  35861. * @alias extendWith
  35862. * @category Object
  35863. * @param {Object} object The destination object.
  35864. * @param {...Object} sources The source objects.
  35865. * @param {Function} [customizer] The function to customize assigned values.
  35866. * @returns {Object} Returns `object`.
  35867. * @see _.assignWith
  35868. * @example
  35869. *
  35870. * function customizer(objValue, srcValue) {
  35871. * return _.isUndefined(objValue) ? srcValue : objValue;
  35872. * }
  35873. *
  35874. * var defaults = _.partialRight(_.assignInWith, customizer);
  35875. *
  35876. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  35877. * // => { 'a': 1, 'b': 2 }
  35878. */
  35879. var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
  35880. copyObject(source, keysIn(source), object, customizer);
  35881. });
  35882. /**
  35883. * This method is like `_.assign` except that it accepts `customizer`
  35884. * which is invoked to produce the assigned values. If `customizer` returns
  35885. * `undefined`, assignment is handled by the method instead. The `customizer`
  35886. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  35887. *
  35888. * **Note:** This method mutates `object`.
  35889. *
  35890. * @static
  35891. * @memberOf _
  35892. * @since 4.0.0
  35893. * @category Object
  35894. * @param {Object} object The destination object.
  35895. * @param {...Object} sources The source objects.
  35896. * @param {Function} [customizer] The function to customize assigned values.
  35897. * @returns {Object} Returns `object`.
  35898. * @see _.assignInWith
  35899. * @example
  35900. *
  35901. * function customizer(objValue, srcValue) {
  35902. * return _.isUndefined(objValue) ? srcValue : objValue;
  35903. * }
  35904. *
  35905. * var defaults = _.partialRight(_.assignWith, customizer);
  35906. *
  35907. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  35908. * // => { 'a': 1, 'b': 2 }
  35909. */
  35910. var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
  35911. copyObject(source, keys(source), object, customizer);
  35912. });
  35913. /**
  35914. * Creates an array of values corresponding to `paths` of `object`.
  35915. *
  35916. * @static
  35917. * @memberOf _
  35918. * @since 1.0.0
  35919. * @category Object
  35920. * @param {Object} object The object to iterate over.
  35921. * @param {...(string|string[])} [paths] The property paths to pick.
  35922. * @returns {Array} Returns the picked values.
  35923. * @example
  35924. *
  35925. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  35926. *
  35927. * _.at(object, ['a[0].b.c', 'a[1]']);
  35928. * // => [3, 4]
  35929. */
  35930. var at = flatRest(baseAt);
  35931. /**
  35932. * Creates an object that inherits from the `prototype` object. If a
  35933. * `properties` object is given, its own enumerable string keyed properties
  35934. * are assigned to the created object.
  35935. *
  35936. * @static
  35937. * @memberOf _
  35938. * @since 2.3.0
  35939. * @category Object
  35940. * @param {Object} prototype The object to inherit from.
  35941. * @param {Object} [properties] The properties to assign to the object.
  35942. * @returns {Object} Returns the new object.
  35943. * @example
  35944. *
  35945. * function Shape() {
  35946. * this.x = 0;
  35947. * this.y = 0;
  35948. * }
  35949. *
  35950. * function Circle() {
  35951. * Shape.call(this);
  35952. * }
  35953. *
  35954. * Circle.prototype = _.create(Shape.prototype, {
  35955. * 'constructor': Circle
  35956. * });
  35957. *
  35958. * var circle = new Circle;
  35959. * circle instanceof Circle;
  35960. * // => true
  35961. *
  35962. * circle instanceof Shape;
  35963. * // => true
  35964. */
  35965. function create(prototype, properties) {
  35966. var result = baseCreate(prototype);
  35967. return properties == null ? result : baseAssign(result, properties);
  35968. }
  35969. /**
  35970. * Assigns own and inherited enumerable string keyed properties of source
  35971. * objects to the destination object for all destination properties that
  35972. * resolve to `undefined`. Source objects are applied from left to right.
  35973. * Once a property is set, additional values of the same property are ignored.
  35974. *
  35975. * **Note:** This method mutates `object`.
  35976. *
  35977. * @static
  35978. * @since 0.1.0
  35979. * @memberOf _
  35980. * @category Object
  35981. * @param {Object} object The destination object.
  35982. * @param {...Object} [sources] The source objects.
  35983. * @returns {Object} Returns `object`.
  35984. * @see _.defaultsDeep
  35985. * @example
  35986. *
  35987. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  35988. * // => { 'a': 1, 'b': 2 }
  35989. */
  35990. var defaults = baseRest(function(object, sources) {
  35991. object = Object(object);
  35992. var index = -1;
  35993. var length = sources.length;
  35994. var guard = length > 2 ? sources[2] : undefined;
  35995. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  35996. length = 1;
  35997. }
  35998. while (++index < length) {
  35999. var source = sources[index];
  36000. var props = keysIn(source);
  36001. var propsIndex = -1;
  36002. var propsLength = props.length;
  36003. while (++propsIndex < propsLength) {
  36004. var key = props[propsIndex];
  36005. var value = object[key];
  36006. if (value === undefined ||
  36007. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  36008. object[key] = source[key];
  36009. }
  36010. }
  36011. }
  36012. return object;
  36013. });
  36014. /**
  36015. * This method is like `_.defaults` except that it recursively assigns
  36016. * default properties.
  36017. *
  36018. * **Note:** This method mutates `object`.
  36019. *
  36020. * @static
  36021. * @memberOf _
  36022. * @since 3.10.0
  36023. * @category Object
  36024. * @param {Object} object The destination object.
  36025. * @param {...Object} [sources] The source objects.
  36026. * @returns {Object} Returns `object`.
  36027. * @see _.defaults
  36028. * @example
  36029. *
  36030. * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
  36031. * // => { 'a': { 'b': 2, 'c': 3 } }
  36032. */
  36033. var defaultsDeep = baseRest(function(args) {
  36034. args.push(undefined, customDefaultsMerge);
  36035. return apply(mergeWith, undefined, args);
  36036. });
  36037. /**
  36038. * This method is like `_.find` except that it returns the key of the first
  36039. * element `predicate` returns truthy for instead of the element itself.
  36040. *
  36041. * @static
  36042. * @memberOf _
  36043. * @since 1.1.0
  36044. * @category Object
  36045. * @param {Object} object The object to inspect.
  36046. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  36047. * @returns {string|undefined} Returns the key of the matched element,
  36048. * else `undefined`.
  36049. * @example
  36050. *
  36051. * var users = {
  36052. * 'barney': { 'age': 36, 'active': true },
  36053. * 'fred': { 'age': 40, 'active': false },
  36054. * 'pebbles': { 'age': 1, 'active': true }
  36055. * };
  36056. *
  36057. * _.findKey(users, function(o) { return o.age < 40; });
  36058. * // => 'barney' (iteration order is not guaranteed)
  36059. *
  36060. * // The `_.matches` iteratee shorthand.
  36061. * _.findKey(users, { 'age': 1, 'active': true });
  36062. * // => 'pebbles'
  36063. *
  36064. * // The `_.matchesProperty` iteratee shorthand.
  36065. * _.findKey(users, ['active', false]);
  36066. * // => 'fred'
  36067. *
  36068. * // The `_.property` iteratee shorthand.
  36069. * _.findKey(users, 'active');
  36070. * // => 'barney'
  36071. */
  36072. function findKey(object, predicate) {
  36073. return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
  36074. }
  36075. /**
  36076. * This method is like `_.findKey` except that it iterates over elements of
  36077. * a collection in the opposite order.
  36078. *
  36079. * @static
  36080. * @memberOf _
  36081. * @since 2.0.0
  36082. * @category Object
  36083. * @param {Object} object The object to inspect.
  36084. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  36085. * @returns {string|undefined} Returns the key of the matched element,
  36086. * else `undefined`.
  36087. * @example
  36088. *
  36089. * var users = {
  36090. * 'barney': { 'age': 36, 'active': true },
  36091. * 'fred': { 'age': 40, 'active': false },
  36092. * 'pebbles': { 'age': 1, 'active': true }
  36093. * };
  36094. *
  36095. * _.findLastKey(users, function(o) { return o.age < 40; });
  36096. * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
  36097. *
  36098. * // The `_.matches` iteratee shorthand.
  36099. * _.findLastKey(users, { 'age': 36, 'active': true });
  36100. * // => 'barney'
  36101. *
  36102. * // The `_.matchesProperty` iteratee shorthand.
  36103. * _.findLastKey(users, ['active', false]);
  36104. * // => 'fred'
  36105. *
  36106. * // The `_.property` iteratee shorthand.
  36107. * _.findLastKey(users, 'active');
  36108. * // => 'pebbles'
  36109. */
  36110. function findLastKey(object, predicate) {
  36111. return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
  36112. }
  36113. /**
  36114. * Iterates over own and inherited enumerable string keyed properties of an
  36115. * object and invokes `iteratee` for each property. The iteratee is invoked
  36116. * with three arguments: (value, key, object). Iteratee functions may exit
  36117. * iteration early by explicitly returning `false`.
  36118. *
  36119. * @static
  36120. * @memberOf _
  36121. * @since 0.3.0
  36122. * @category Object
  36123. * @param {Object} object The object to iterate over.
  36124. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36125. * @returns {Object} Returns `object`.
  36126. * @see _.forInRight
  36127. * @example
  36128. *
  36129. * function Foo() {
  36130. * this.a = 1;
  36131. * this.b = 2;
  36132. * }
  36133. *
  36134. * Foo.prototype.c = 3;
  36135. *
  36136. * _.forIn(new Foo, function(value, key) {
  36137. * console.log(key);
  36138. * });
  36139. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  36140. */
  36141. function forIn(object, iteratee) {
  36142. return object == null
  36143. ? object
  36144. : baseFor(object, getIteratee(iteratee, 3), keysIn);
  36145. }
  36146. /**
  36147. * This method is like `_.forIn` except that it iterates over properties of
  36148. * `object` in the opposite order.
  36149. *
  36150. * @static
  36151. * @memberOf _
  36152. * @since 2.0.0
  36153. * @category Object
  36154. * @param {Object} object The object to iterate over.
  36155. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36156. * @returns {Object} Returns `object`.
  36157. * @see _.forIn
  36158. * @example
  36159. *
  36160. * function Foo() {
  36161. * this.a = 1;
  36162. * this.b = 2;
  36163. * }
  36164. *
  36165. * Foo.prototype.c = 3;
  36166. *
  36167. * _.forInRight(new Foo, function(value, key) {
  36168. * console.log(key);
  36169. * });
  36170. * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
  36171. */
  36172. function forInRight(object, iteratee) {
  36173. return object == null
  36174. ? object
  36175. : baseForRight(object, getIteratee(iteratee, 3), keysIn);
  36176. }
  36177. /**
  36178. * Iterates over own enumerable string keyed properties of an object and
  36179. * invokes `iteratee` for each property. The iteratee is invoked with three
  36180. * arguments: (value, key, object). Iteratee functions may exit iteration
  36181. * early by explicitly returning `false`.
  36182. *
  36183. * @static
  36184. * @memberOf _
  36185. * @since 0.3.0
  36186. * @category Object
  36187. * @param {Object} object The object to iterate over.
  36188. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36189. * @returns {Object} Returns `object`.
  36190. * @see _.forOwnRight
  36191. * @example
  36192. *
  36193. * function Foo() {
  36194. * this.a = 1;
  36195. * this.b = 2;
  36196. * }
  36197. *
  36198. * Foo.prototype.c = 3;
  36199. *
  36200. * _.forOwn(new Foo, function(value, key) {
  36201. * console.log(key);
  36202. * });
  36203. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  36204. */
  36205. function forOwn(object, iteratee) {
  36206. return object && baseForOwn(object, getIteratee(iteratee, 3));
  36207. }
  36208. /**
  36209. * This method is like `_.forOwn` except that it iterates over properties of
  36210. * `object` in the opposite order.
  36211. *
  36212. * @static
  36213. * @memberOf _
  36214. * @since 2.0.0
  36215. * @category Object
  36216. * @param {Object} object The object to iterate over.
  36217. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36218. * @returns {Object} Returns `object`.
  36219. * @see _.forOwn
  36220. * @example
  36221. *
  36222. * function Foo() {
  36223. * this.a = 1;
  36224. * this.b = 2;
  36225. * }
  36226. *
  36227. * Foo.prototype.c = 3;
  36228. *
  36229. * _.forOwnRight(new Foo, function(value, key) {
  36230. * console.log(key);
  36231. * });
  36232. * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
  36233. */
  36234. function forOwnRight(object, iteratee) {
  36235. return object && baseForOwnRight(object, getIteratee(iteratee, 3));
  36236. }
  36237. /**
  36238. * Creates an array of function property names from own enumerable properties
  36239. * of `object`.
  36240. *
  36241. * @static
  36242. * @since 0.1.0
  36243. * @memberOf _
  36244. * @category Object
  36245. * @param {Object} object The object to inspect.
  36246. * @returns {Array} Returns the function names.
  36247. * @see _.functionsIn
  36248. * @example
  36249. *
  36250. * function Foo() {
  36251. * this.a = _.constant('a');
  36252. * this.b = _.constant('b');
  36253. * }
  36254. *
  36255. * Foo.prototype.c = _.constant('c');
  36256. *
  36257. * _.functions(new Foo);
  36258. * // => ['a', 'b']
  36259. */
  36260. function functions(object) {
  36261. return object == null ? [] : baseFunctions(object, keys(object));
  36262. }
  36263. /**
  36264. * Creates an array of function property names from own and inherited
  36265. * enumerable properties of `object`.
  36266. *
  36267. * @static
  36268. * @memberOf _
  36269. * @since 4.0.0
  36270. * @category Object
  36271. * @param {Object} object The object to inspect.
  36272. * @returns {Array} Returns the function names.
  36273. * @see _.functions
  36274. * @example
  36275. *
  36276. * function Foo() {
  36277. * this.a = _.constant('a');
  36278. * this.b = _.constant('b');
  36279. * }
  36280. *
  36281. * Foo.prototype.c = _.constant('c');
  36282. *
  36283. * _.functionsIn(new Foo);
  36284. * // => ['a', 'b', 'c']
  36285. */
  36286. function functionsIn(object) {
  36287. return object == null ? [] : baseFunctions(object, keysIn(object));
  36288. }
  36289. /**
  36290. * Gets the value at `path` of `object`. If the resolved value is
  36291. * `undefined`, the `defaultValue` is returned in its place.
  36292. *
  36293. * @static
  36294. * @memberOf _
  36295. * @since 3.7.0
  36296. * @category Object
  36297. * @param {Object} object The object to query.
  36298. * @param {Array|string} path The path of the property to get.
  36299. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  36300. * @returns {*} Returns the resolved value.
  36301. * @example
  36302. *
  36303. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  36304. *
  36305. * _.get(object, 'a[0].b.c');
  36306. * // => 3
  36307. *
  36308. * _.get(object, ['a', '0', 'b', 'c']);
  36309. * // => 3
  36310. *
  36311. * _.get(object, 'a.b.c', 'default');
  36312. * // => 'default'
  36313. */
  36314. function get(object, path, defaultValue) {
  36315. var result = object == null ? undefined : baseGet(object, path);
  36316. return result === undefined ? defaultValue : result;
  36317. }
  36318. /**
  36319. * Checks if `path` is a direct property of `object`.
  36320. *
  36321. * @static
  36322. * @since 0.1.0
  36323. * @memberOf _
  36324. * @category Object
  36325. * @param {Object} object The object to query.
  36326. * @param {Array|string} path The path to check.
  36327. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  36328. * @example
  36329. *
  36330. * var object = { 'a': { 'b': 2 } };
  36331. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  36332. *
  36333. * _.has(object, 'a');
  36334. * // => true
  36335. *
  36336. * _.has(object, 'a.b');
  36337. * // => true
  36338. *
  36339. * _.has(object, ['a', 'b']);
  36340. * // => true
  36341. *
  36342. * _.has(other, 'a');
  36343. * // => false
  36344. */
  36345. function has(object, path) {
  36346. return object != null && hasPath(object, path, baseHas);
  36347. }
  36348. /**
  36349. * Checks if `path` is a direct or inherited property of `object`.
  36350. *
  36351. * @static
  36352. * @memberOf _
  36353. * @since 4.0.0
  36354. * @category Object
  36355. * @param {Object} object The object to query.
  36356. * @param {Array|string} path The path to check.
  36357. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  36358. * @example
  36359. *
  36360. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  36361. *
  36362. * _.hasIn(object, 'a');
  36363. * // => true
  36364. *
  36365. * _.hasIn(object, 'a.b');
  36366. * // => true
  36367. *
  36368. * _.hasIn(object, ['a', 'b']);
  36369. * // => true
  36370. *
  36371. * _.hasIn(object, 'b');
  36372. * // => false
  36373. */
  36374. function hasIn(object, path) {
  36375. return object != null && hasPath(object, path, baseHasIn);
  36376. }
  36377. /**
  36378. * Creates an object composed of the inverted keys and values of `object`.
  36379. * If `object` contains duplicate values, subsequent values overwrite
  36380. * property assignments of previous values.
  36381. *
  36382. * @static
  36383. * @memberOf _
  36384. * @since 0.7.0
  36385. * @category Object
  36386. * @param {Object} object The object to invert.
  36387. * @returns {Object} Returns the new inverted object.
  36388. * @example
  36389. *
  36390. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  36391. *
  36392. * _.invert(object);
  36393. * // => { '1': 'c', '2': 'b' }
  36394. */
  36395. var invert = createInverter(function(result, value, key) {
  36396. if (value != null &&
  36397. typeof value.toString != 'function') {
  36398. value = nativeObjectToString.call(value);
  36399. }
  36400. result[value] = key;
  36401. }, constant(identity));
  36402. /**
  36403. * This method is like `_.invert` except that the inverted object is generated
  36404. * from the results of running each element of `object` thru `iteratee`. The
  36405. * corresponding inverted value of each inverted key is an array of keys
  36406. * responsible for generating the inverted value. The iteratee is invoked
  36407. * with one argument: (value).
  36408. *
  36409. * @static
  36410. * @memberOf _
  36411. * @since 4.1.0
  36412. * @category Object
  36413. * @param {Object} object The object to invert.
  36414. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  36415. * @returns {Object} Returns the new inverted object.
  36416. * @example
  36417. *
  36418. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  36419. *
  36420. * _.invertBy(object);
  36421. * // => { '1': ['a', 'c'], '2': ['b'] }
  36422. *
  36423. * _.invertBy(object, function(value) {
  36424. * return 'group' + value;
  36425. * });
  36426. * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
  36427. */
  36428. var invertBy = createInverter(function(result, value, key) {
  36429. if (value != null &&
  36430. typeof value.toString != 'function') {
  36431. value = nativeObjectToString.call(value);
  36432. }
  36433. if (hasOwnProperty.call(result, value)) {
  36434. result[value].push(key);
  36435. } else {
  36436. result[value] = [key];
  36437. }
  36438. }, getIteratee);
  36439. /**
  36440. * Invokes the method at `path` of `object`.
  36441. *
  36442. * @static
  36443. * @memberOf _
  36444. * @since 4.0.0
  36445. * @category Object
  36446. * @param {Object} object The object to query.
  36447. * @param {Array|string} path The path of the method to invoke.
  36448. * @param {...*} [args] The arguments to invoke the method with.
  36449. * @returns {*} Returns the result of the invoked method.
  36450. * @example
  36451. *
  36452. * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
  36453. *
  36454. * _.invoke(object, 'a[0].b.c.slice', 1, 3);
  36455. * // => [2, 3]
  36456. */
  36457. var invoke = baseRest(baseInvoke);
  36458. /**
  36459. * Creates an array of the own enumerable property names of `object`.
  36460. *
  36461. * **Note:** Non-object values are coerced to objects. See the
  36462. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  36463. * for more details.
  36464. *
  36465. * @static
  36466. * @since 0.1.0
  36467. * @memberOf _
  36468. * @category Object
  36469. * @param {Object} object The object to query.
  36470. * @returns {Array} Returns the array of property names.
  36471. * @example
  36472. *
  36473. * function Foo() {
  36474. * this.a = 1;
  36475. * this.b = 2;
  36476. * }
  36477. *
  36478. * Foo.prototype.c = 3;
  36479. *
  36480. * _.keys(new Foo);
  36481. * // => ['a', 'b'] (iteration order is not guaranteed)
  36482. *
  36483. * _.keys('hi');
  36484. * // => ['0', '1']
  36485. */
  36486. function keys(object) {
  36487. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  36488. }
  36489. /**
  36490. * Creates an array of the own and inherited enumerable property names of `object`.
  36491. *
  36492. * **Note:** Non-object values are coerced to objects.
  36493. *
  36494. * @static
  36495. * @memberOf _
  36496. * @since 3.0.0
  36497. * @category Object
  36498. * @param {Object} object The object to query.
  36499. * @returns {Array} Returns the array of property names.
  36500. * @example
  36501. *
  36502. * function Foo() {
  36503. * this.a = 1;
  36504. * this.b = 2;
  36505. * }
  36506. *
  36507. * Foo.prototype.c = 3;
  36508. *
  36509. * _.keysIn(new Foo);
  36510. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  36511. */
  36512. function keysIn(object) {
  36513. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  36514. }
  36515. /**
  36516. * The opposite of `_.mapValues`; this method creates an object with the
  36517. * same values as `object` and keys generated by running each own enumerable
  36518. * string keyed property of `object` thru `iteratee`. The iteratee is invoked
  36519. * with three arguments: (value, key, object).
  36520. *
  36521. * @static
  36522. * @memberOf _
  36523. * @since 3.8.0
  36524. * @category Object
  36525. * @param {Object} object The object to iterate over.
  36526. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36527. * @returns {Object} Returns the new mapped object.
  36528. * @see _.mapValues
  36529. * @example
  36530. *
  36531. * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
  36532. * return key + value;
  36533. * });
  36534. * // => { 'a1': 1, 'b2': 2 }
  36535. */
  36536. function mapKeys(object, iteratee) {
  36537. var result = {};
  36538. iteratee = getIteratee(iteratee, 3);
  36539. baseForOwn(object, function(value, key, object) {
  36540. baseAssignValue(result, iteratee(value, key, object), value);
  36541. });
  36542. return result;
  36543. }
  36544. /**
  36545. * Creates an object with the same keys as `object` and values generated
  36546. * by running each own enumerable string keyed property of `object` thru
  36547. * `iteratee`. The iteratee is invoked with three arguments:
  36548. * (value, key, object).
  36549. *
  36550. * @static
  36551. * @memberOf _
  36552. * @since 2.4.0
  36553. * @category Object
  36554. * @param {Object} object The object to iterate over.
  36555. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36556. * @returns {Object} Returns the new mapped object.
  36557. * @see _.mapKeys
  36558. * @example
  36559. *
  36560. * var users = {
  36561. * 'fred': { 'user': 'fred', 'age': 40 },
  36562. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  36563. * };
  36564. *
  36565. * _.mapValues(users, function(o) { return o.age; });
  36566. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  36567. *
  36568. * // The `_.property` iteratee shorthand.
  36569. * _.mapValues(users, 'age');
  36570. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  36571. */
  36572. function mapValues(object, iteratee) {
  36573. var result = {};
  36574. iteratee = getIteratee(iteratee, 3);
  36575. baseForOwn(object, function(value, key, object) {
  36576. baseAssignValue(result, key, iteratee(value, key, object));
  36577. });
  36578. return result;
  36579. }
  36580. /**
  36581. * This method is like `_.assign` except that it recursively merges own and
  36582. * inherited enumerable string keyed properties of source objects into the
  36583. * destination object. Source properties that resolve to `undefined` are
  36584. * skipped if a destination value exists. Array and plain object properties
  36585. * are merged recursively. Other objects and value types are overridden by
  36586. * assignment. Source objects are applied from left to right. Subsequent
  36587. * sources overwrite property assignments of previous sources.
  36588. *
  36589. * **Note:** This method mutates `object`.
  36590. *
  36591. * @static
  36592. * @memberOf _
  36593. * @since 0.5.0
  36594. * @category Object
  36595. * @param {Object} object The destination object.
  36596. * @param {...Object} [sources] The source objects.
  36597. * @returns {Object} Returns `object`.
  36598. * @example
  36599. *
  36600. * var object = {
  36601. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  36602. * };
  36603. *
  36604. * var other = {
  36605. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  36606. * };
  36607. *
  36608. * _.merge(object, other);
  36609. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  36610. */
  36611. var merge = createAssigner(function(object, source, srcIndex) {
  36612. baseMerge(object, source, srcIndex);
  36613. });
  36614. /**
  36615. * This method is like `_.merge` except that it accepts `customizer` which
  36616. * is invoked to produce the merged values of the destination and source
  36617. * properties. If `customizer` returns `undefined`, merging is handled by the
  36618. * method instead. The `customizer` is invoked with six arguments:
  36619. * (objValue, srcValue, key, object, source, stack).
  36620. *
  36621. * **Note:** This method mutates `object`.
  36622. *
  36623. * @static
  36624. * @memberOf _
  36625. * @since 4.0.0
  36626. * @category Object
  36627. * @param {Object} object The destination object.
  36628. * @param {...Object} sources The source objects.
  36629. * @param {Function} customizer The function to customize assigned values.
  36630. * @returns {Object} Returns `object`.
  36631. * @example
  36632. *
  36633. * function customizer(objValue, srcValue) {
  36634. * if (_.isArray(objValue)) {
  36635. * return objValue.concat(srcValue);
  36636. * }
  36637. * }
  36638. *
  36639. * var object = { 'a': [1], 'b': [2] };
  36640. * var other = { 'a': [3], 'b': [4] };
  36641. *
  36642. * _.mergeWith(object, other, customizer);
  36643. * // => { 'a': [1, 3], 'b': [2, 4] }
  36644. */
  36645. var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  36646. baseMerge(object, source, srcIndex, customizer);
  36647. });
  36648. /**
  36649. * The opposite of `_.pick`; this method creates an object composed of the
  36650. * own and inherited enumerable property paths of `object` that are not omitted.
  36651. *
  36652. * **Note:** This method is considerably slower than `_.pick`.
  36653. *
  36654. * @static
  36655. * @since 0.1.0
  36656. * @memberOf _
  36657. * @category Object
  36658. * @param {Object} object The source object.
  36659. * @param {...(string|string[])} [paths] The property paths to omit.
  36660. * @returns {Object} Returns the new object.
  36661. * @example
  36662. *
  36663. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  36664. *
  36665. * _.omit(object, ['a', 'c']);
  36666. * // => { 'b': '2' }
  36667. */
  36668. var omit = flatRest(function(object, paths) {
  36669. var result = {};
  36670. if (object == null) {
  36671. return result;
  36672. }
  36673. var isDeep = false;
  36674. paths = arrayMap(paths, function(path) {
  36675. path = castPath(path, object);
  36676. isDeep || (isDeep = path.length > 1);
  36677. return path;
  36678. });
  36679. copyObject(object, getAllKeysIn(object), result);
  36680. if (isDeep) {
  36681. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  36682. }
  36683. var length = paths.length;
  36684. while (length--) {
  36685. baseUnset(result, paths[length]);
  36686. }
  36687. return result;
  36688. });
  36689. /**
  36690. * The opposite of `_.pickBy`; this method creates an object composed of
  36691. * the own and inherited enumerable string keyed properties of `object` that
  36692. * `predicate` doesn't return truthy for. The predicate is invoked with two
  36693. * arguments: (value, key).
  36694. *
  36695. * @static
  36696. * @memberOf _
  36697. * @since 4.0.0
  36698. * @category Object
  36699. * @param {Object} object The source object.
  36700. * @param {Function} [predicate=_.identity] The function invoked per property.
  36701. * @returns {Object} Returns the new object.
  36702. * @example
  36703. *
  36704. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  36705. *
  36706. * _.omitBy(object, _.isNumber);
  36707. * // => { 'b': '2' }
  36708. */
  36709. function omitBy(object, predicate) {
  36710. return pickBy(object, negate(getIteratee(predicate)));
  36711. }
  36712. /**
  36713. * Creates an object composed of the picked `object` properties.
  36714. *
  36715. * @static
  36716. * @since 0.1.0
  36717. * @memberOf _
  36718. * @category Object
  36719. * @param {Object} object The source object.
  36720. * @param {...(string|string[])} [paths] The property paths to pick.
  36721. * @returns {Object} Returns the new object.
  36722. * @example
  36723. *
  36724. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  36725. *
  36726. * _.pick(object, ['a', 'c']);
  36727. * // => { 'a': 1, 'c': 3 }
  36728. */
  36729. var pick = flatRest(function(object, paths) {
  36730. return object == null ? {} : basePick(object, paths);
  36731. });
  36732. /**
  36733. * Creates an object composed of the `object` properties `predicate` returns
  36734. * truthy for. The predicate is invoked with two arguments: (value, key).
  36735. *
  36736. * @static
  36737. * @memberOf _
  36738. * @since 4.0.0
  36739. * @category Object
  36740. * @param {Object} object The source object.
  36741. * @param {Function} [predicate=_.identity] The function invoked per property.
  36742. * @returns {Object} Returns the new object.
  36743. * @example
  36744. *
  36745. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  36746. *
  36747. * _.pickBy(object, _.isNumber);
  36748. * // => { 'a': 1, 'c': 3 }
  36749. */
  36750. function pickBy(object, predicate) {
  36751. if (object == null) {
  36752. return {};
  36753. }
  36754. var props = arrayMap(getAllKeysIn(object), function(prop) {
  36755. return [prop];
  36756. });
  36757. predicate = getIteratee(predicate);
  36758. return basePickBy(object, props, function(value, path) {
  36759. return predicate(value, path[0]);
  36760. });
  36761. }
  36762. /**
  36763. * This method is like `_.get` except that if the resolved value is a
  36764. * function it's invoked with the `this` binding of its parent object and
  36765. * its result is returned.
  36766. *
  36767. * @static
  36768. * @since 0.1.0
  36769. * @memberOf _
  36770. * @category Object
  36771. * @param {Object} object The object to query.
  36772. * @param {Array|string} path The path of the property to resolve.
  36773. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  36774. * @returns {*} Returns the resolved value.
  36775. * @example
  36776. *
  36777. * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
  36778. *
  36779. * _.result(object, 'a[0].b.c1');
  36780. * // => 3
  36781. *
  36782. * _.result(object, 'a[0].b.c2');
  36783. * // => 4
  36784. *
  36785. * _.result(object, 'a[0].b.c3', 'default');
  36786. * // => 'default'
  36787. *
  36788. * _.result(object, 'a[0].b.c3', _.constant('default'));
  36789. * // => 'default'
  36790. */
  36791. function result(object, path, defaultValue) {
  36792. path = castPath(path, object);
  36793. var index = -1,
  36794. length = path.length;
  36795. // Ensure the loop is entered when path is empty.
  36796. if (!length) {
  36797. length = 1;
  36798. object = undefined;
  36799. }
  36800. while (++index < length) {
  36801. var value = object == null ? undefined : object[toKey(path[index])];
  36802. if (value === undefined) {
  36803. index = length;
  36804. value = defaultValue;
  36805. }
  36806. object = isFunction(value) ? value.call(object) : value;
  36807. }
  36808. return object;
  36809. }
  36810. /**
  36811. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  36812. * it's created. Arrays are created for missing index properties while objects
  36813. * are created for all other missing properties. Use `_.setWith` to customize
  36814. * `path` creation.
  36815. *
  36816. * **Note:** This method mutates `object`.
  36817. *
  36818. * @static
  36819. * @memberOf _
  36820. * @since 3.7.0
  36821. * @category Object
  36822. * @param {Object} object The object to modify.
  36823. * @param {Array|string} path The path of the property to set.
  36824. * @param {*} value The value to set.
  36825. * @returns {Object} Returns `object`.
  36826. * @example
  36827. *
  36828. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  36829. *
  36830. * _.set(object, 'a[0].b.c', 4);
  36831. * console.log(object.a[0].b.c);
  36832. * // => 4
  36833. *
  36834. * _.set(object, ['x', '0', 'y', 'z'], 5);
  36835. * console.log(object.x[0].y.z);
  36836. * // => 5
  36837. */
  36838. function set(object, path, value) {
  36839. return object == null ? object : baseSet(object, path, value);
  36840. }
  36841. /**
  36842. * This method is like `_.set` except that it accepts `customizer` which is
  36843. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  36844. * path creation is handled by the method instead. The `customizer` is invoked
  36845. * with three arguments: (nsValue, key, nsObject).
  36846. *
  36847. * **Note:** This method mutates `object`.
  36848. *
  36849. * @static
  36850. * @memberOf _
  36851. * @since 4.0.0
  36852. * @category Object
  36853. * @param {Object} object The object to modify.
  36854. * @param {Array|string} path The path of the property to set.
  36855. * @param {*} value The value to set.
  36856. * @param {Function} [customizer] The function to customize assigned values.
  36857. * @returns {Object} Returns `object`.
  36858. * @example
  36859. *
  36860. * var object = {};
  36861. *
  36862. * _.setWith(object, '[0][1]', 'a', Object);
  36863. * // => { '0': { '1': 'a' } }
  36864. */
  36865. function setWith(object, path, value, customizer) {
  36866. customizer = typeof customizer == 'function' ? customizer : undefined;
  36867. return object == null ? object : baseSet(object, path, value, customizer);
  36868. }
  36869. /**
  36870. * Creates an array of own enumerable string keyed-value pairs for `object`
  36871. * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
  36872. * entries are returned.
  36873. *
  36874. * @static
  36875. * @memberOf _
  36876. * @since 4.0.0
  36877. * @alias entries
  36878. * @category Object
  36879. * @param {Object} object The object to query.
  36880. * @returns {Array} Returns the key-value pairs.
  36881. * @example
  36882. *
  36883. * function Foo() {
  36884. * this.a = 1;
  36885. * this.b = 2;
  36886. * }
  36887. *
  36888. * Foo.prototype.c = 3;
  36889. *
  36890. * _.toPairs(new Foo);
  36891. * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
  36892. */
  36893. var toPairs = createToPairs(keys);
  36894. /**
  36895. * Creates an array of own and inherited enumerable string keyed-value pairs
  36896. * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
  36897. * or set, its entries are returned.
  36898. *
  36899. * @static
  36900. * @memberOf _
  36901. * @since 4.0.0
  36902. * @alias entriesIn
  36903. * @category Object
  36904. * @param {Object} object The object to query.
  36905. * @returns {Array} Returns the key-value pairs.
  36906. * @example
  36907. *
  36908. * function Foo() {
  36909. * this.a = 1;
  36910. * this.b = 2;
  36911. * }
  36912. *
  36913. * Foo.prototype.c = 3;
  36914. *
  36915. * _.toPairsIn(new Foo);
  36916. * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
  36917. */
  36918. var toPairsIn = createToPairs(keysIn);
  36919. /**
  36920. * An alternative to `_.reduce`; this method transforms `object` to a new
  36921. * `accumulator` object which is the result of running each of its own
  36922. * enumerable string keyed properties thru `iteratee`, with each invocation
  36923. * potentially mutating the `accumulator` object. If `accumulator` is not
  36924. * provided, a new object with the same `[[Prototype]]` will be used. The
  36925. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  36926. * Iteratee functions may exit iteration early by explicitly returning `false`.
  36927. *
  36928. * @static
  36929. * @memberOf _
  36930. * @since 1.3.0
  36931. * @category Object
  36932. * @param {Object} object The object to iterate over.
  36933. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36934. * @param {*} [accumulator] The custom accumulator value.
  36935. * @returns {*} Returns the accumulated value.
  36936. * @example
  36937. *
  36938. * _.transform([2, 3, 4], function(result, n) {
  36939. * result.push(n *= n);
  36940. * return n % 2 == 0;
  36941. * }, []);
  36942. * // => [4, 9]
  36943. *
  36944. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  36945. * (result[value] || (result[value] = [])).push(key);
  36946. * }, {});
  36947. * // => { '1': ['a', 'c'], '2': ['b'] }
  36948. */
  36949. function transform(object, iteratee, accumulator) {
  36950. var isArr = isArray(object),
  36951. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  36952. iteratee = getIteratee(iteratee, 4);
  36953. if (accumulator == null) {
  36954. var Ctor = object && object.constructor;
  36955. if (isArrLike) {
  36956. accumulator = isArr ? new Ctor : [];
  36957. }
  36958. else if (isObject(object)) {
  36959. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  36960. }
  36961. else {
  36962. accumulator = {};
  36963. }
  36964. }
  36965. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  36966. return iteratee(accumulator, value, index, object);
  36967. });
  36968. return accumulator;
  36969. }
  36970. /**
  36971. * Removes the property at `path` of `object`.
  36972. *
  36973. * **Note:** This method mutates `object`.
  36974. *
  36975. * @static
  36976. * @memberOf _
  36977. * @since 4.0.0
  36978. * @category Object
  36979. * @param {Object} object The object to modify.
  36980. * @param {Array|string} path The path of the property to unset.
  36981. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  36982. * @example
  36983. *
  36984. * var object = { 'a': [{ 'b': { 'c': 7 } }] };
  36985. * _.unset(object, 'a[0].b.c');
  36986. * // => true
  36987. *
  36988. * console.log(object);
  36989. * // => { 'a': [{ 'b': {} }] };
  36990. *
  36991. * _.unset(object, ['a', '0', 'b', 'c']);
  36992. * // => true
  36993. *
  36994. * console.log(object);
  36995. * // => { 'a': [{ 'b': {} }] };
  36996. */
  36997. function unset(object, path) {
  36998. return object == null ? true : baseUnset(object, path);
  36999. }
  37000. /**
  37001. * This method is like `_.set` except that accepts `updater` to produce the
  37002. * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
  37003. * is invoked with one argument: (value).
  37004. *
  37005. * **Note:** This method mutates `object`.
  37006. *
  37007. * @static
  37008. * @memberOf _
  37009. * @since 4.6.0
  37010. * @category Object
  37011. * @param {Object} object The object to modify.
  37012. * @param {Array|string} path The path of the property to set.
  37013. * @param {Function} updater The function to produce the updated value.
  37014. * @returns {Object} Returns `object`.
  37015. * @example
  37016. *
  37017. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  37018. *
  37019. * _.update(object, 'a[0].b.c', function(n) { return n * n; });
  37020. * console.log(object.a[0].b.c);
  37021. * // => 9
  37022. *
  37023. * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
  37024. * console.log(object.x[0].y.z);
  37025. * // => 0
  37026. */
  37027. function update(object, path, updater) {
  37028. return object == null ? object : baseUpdate(object, path, castFunction(updater));
  37029. }
  37030. /**
  37031. * This method is like `_.update` except that it accepts `customizer` which is
  37032. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  37033. * path creation is handled by the method instead. The `customizer` is invoked
  37034. * with three arguments: (nsValue, key, nsObject).
  37035. *
  37036. * **Note:** This method mutates `object`.
  37037. *
  37038. * @static
  37039. * @memberOf _
  37040. * @since 4.6.0
  37041. * @category Object
  37042. * @param {Object} object The object to modify.
  37043. * @param {Array|string} path The path of the property to set.
  37044. * @param {Function} updater The function to produce the updated value.
  37045. * @param {Function} [customizer] The function to customize assigned values.
  37046. * @returns {Object} Returns `object`.
  37047. * @example
  37048. *
  37049. * var object = {};
  37050. *
  37051. * _.updateWith(object, '[0][1]', _.constant('a'), Object);
  37052. * // => { '0': { '1': 'a' } }
  37053. */
  37054. function updateWith(object, path, updater, customizer) {
  37055. customizer = typeof customizer == 'function' ? customizer : undefined;
  37056. return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
  37057. }
  37058. /**
  37059. * Creates an array of the own enumerable string keyed property values of `object`.
  37060. *
  37061. * **Note:** Non-object values are coerced to objects.
  37062. *
  37063. * @static
  37064. * @since 0.1.0
  37065. * @memberOf _
  37066. * @category Object
  37067. * @param {Object} object The object to query.
  37068. * @returns {Array} Returns the array of property values.
  37069. * @example
  37070. *
  37071. * function Foo() {
  37072. * this.a = 1;
  37073. * this.b = 2;
  37074. * }
  37075. *
  37076. * Foo.prototype.c = 3;
  37077. *
  37078. * _.values(new Foo);
  37079. * // => [1, 2] (iteration order is not guaranteed)
  37080. *
  37081. * _.values('hi');
  37082. * // => ['h', 'i']
  37083. */
  37084. function values(object) {
  37085. return object == null ? [] : baseValues(object, keys(object));
  37086. }
  37087. /**
  37088. * Creates an array of the own and inherited enumerable string keyed property
  37089. * values of `object`.
  37090. *
  37091. * **Note:** Non-object values are coerced to objects.
  37092. *
  37093. * @static
  37094. * @memberOf _
  37095. * @since 3.0.0
  37096. * @category Object
  37097. * @param {Object} object The object to query.
  37098. * @returns {Array} Returns the array of property values.
  37099. * @example
  37100. *
  37101. * function Foo() {
  37102. * this.a = 1;
  37103. * this.b = 2;
  37104. * }
  37105. *
  37106. * Foo.prototype.c = 3;
  37107. *
  37108. * _.valuesIn(new Foo);
  37109. * // => [1, 2, 3] (iteration order is not guaranteed)
  37110. */
  37111. function valuesIn(object) {
  37112. return object == null ? [] : baseValues(object, keysIn(object));
  37113. }
  37114. /*------------------------------------------------------------------------*/
  37115. /**
  37116. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  37117. *
  37118. * @static
  37119. * @memberOf _
  37120. * @since 4.0.0
  37121. * @category Number
  37122. * @param {number} number The number to clamp.
  37123. * @param {number} [lower] The lower bound.
  37124. * @param {number} upper The upper bound.
  37125. * @returns {number} Returns the clamped number.
  37126. * @example
  37127. *
  37128. * _.clamp(-10, -5, 5);
  37129. * // => -5
  37130. *
  37131. * _.clamp(10, -5, 5);
  37132. * // => 5
  37133. */
  37134. function clamp(number, lower, upper) {
  37135. if (upper === undefined) {
  37136. upper = lower;
  37137. lower = undefined;
  37138. }
  37139. if (upper !== undefined) {
  37140. upper = toNumber(upper);
  37141. upper = upper === upper ? upper : 0;
  37142. }
  37143. if (lower !== undefined) {
  37144. lower = toNumber(lower);
  37145. lower = lower === lower ? lower : 0;
  37146. }
  37147. return baseClamp(toNumber(number), lower, upper);
  37148. }
  37149. /**
  37150. * Checks if `n` is between `start` and up to, but not including, `end`. If
  37151. * `end` is not specified, it's set to `start` with `start` then set to `0`.
  37152. * If `start` is greater than `end` the params are swapped to support
  37153. * negative ranges.
  37154. *
  37155. * @static
  37156. * @memberOf _
  37157. * @since 3.3.0
  37158. * @category Number
  37159. * @param {number} number The number to check.
  37160. * @param {number} [start=0] The start of the range.
  37161. * @param {number} end The end of the range.
  37162. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  37163. * @see _.range, _.rangeRight
  37164. * @example
  37165. *
  37166. * _.inRange(3, 2, 4);
  37167. * // => true
  37168. *
  37169. * _.inRange(4, 8);
  37170. * // => true
  37171. *
  37172. * _.inRange(4, 2);
  37173. * // => false
  37174. *
  37175. * _.inRange(2, 2);
  37176. * // => false
  37177. *
  37178. * _.inRange(1.2, 2);
  37179. * // => true
  37180. *
  37181. * _.inRange(5.2, 4);
  37182. * // => false
  37183. *
  37184. * _.inRange(-3, -2, -6);
  37185. * // => true
  37186. */
  37187. function inRange(number, start, end) {
  37188. start = toFinite(start);
  37189. if (end === undefined) {
  37190. end = start;
  37191. start = 0;
  37192. } else {
  37193. end = toFinite(end);
  37194. }
  37195. number = toNumber(number);
  37196. return baseInRange(number, start, end);
  37197. }
  37198. /**
  37199. * Produces a random number between the inclusive `lower` and `upper` bounds.
  37200. * If only one argument is provided a number between `0` and the given number
  37201. * is returned. If `floating` is `true`, or either `lower` or `upper` are
  37202. * floats, a floating-point number is returned instead of an integer.
  37203. *
  37204. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  37205. * floating-point values which can produce unexpected results.
  37206. *
  37207. * @static
  37208. * @memberOf _
  37209. * @since 0.7.0
  37210. * @category Number
  37211. * @param {number} [lower=0] The lower bound.
  37212. * @param {number} [upper=1] The upper bound.
  37213. * @param {boolean} [floating] Specify returning a floating-point number.
  37214. * @returns {number} Returns the random number.
  37215. * @example
  37216. *
  37217. * _.random(0, 5);
  37218. * // => an integer between 0 and 5
  37219. *
  37220. * _.random(5);
  37221. * // => also an integer between 0 and 5
  37222. *
  37223. * _.random(5, true);
  37224. * // => a floating-point number between 0 and 5
  37225. *
  37226. * _.random(1.2, 5.2);
  37227. * // => a floating-point number between 1.2 and 5.2
  37228. */
  37229. function random(lower, upper, floating) {
  37230. if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
  37231. upper = floating = undefined;
  37232. }
  37233. if (floating === undefined) {
  37234. if (typeof upper == 'boolean') {
  37235. floating = upper;
  37236. upper = undefined;
  37237. }
  37238. else if (typeof lower == 'boolean') {
  37239. floating = lower;
  37240. lower = undefined;
  37241. }
  37242. }
  37243. if (lower === undefined && upper === undefined) {
  37244. lower = 0;
  37245. upper = 1;
  37246. }
  37247. else {
  37248. lower = toFinite(lower);
  37249. if (upper === undefined) {
  37250. upper = lower;
  37251. lower = 0;
  37252. } else {
  37253. upper = toFinite(upper);
  37254. }
  37255. }
  37256. if (lower > upper) {
  37257. var temp = lower;
  37258. lower = upper;
  37259. upper = temp;
  37260. }
  37261. if (floating || lower % 1 || upper % 1) {
  37262. var rand = nativeRandom();
  37263. return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
  37264. }
  37265. return baseRandom(lower, upper);
  37266. }
  37267. /*------------------------------------------------------------------------*/
  37268. /**
  37269. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  37270. *
  37271. * @static
  37272. * @memberOf _
  37273. * @since 3.0.0
  37274. * @category String
  37275. * @param {string} [string=''] The string to convert.
  37276. * @returns {string} Returns the camel cased string.
  37277. * @example
  37278. *
  37279. * _.camelCase('Foo Bar');
  37280. * // => 'fooBar'
  37281. *
  37282. * _.camelCase('--foo-bar--');
  37283. * // => 'fooBar'
  37284. *
  37285. * _.camelCase('__FOO_BAR__');
  37286. * // => 'fooBar'
  37287. */
  37288. var camelCase = createCompounder(function(result, word, index) {
  37289. word = word.toLowerCase();
  37290. return result + (index ? capitalize(word) : word);
  37291. });
  37292. /**
  37293. * Converts the first character of `string` to upper case and the remaining
  37294. * to lower case.
  37295. *
  37296. * @static
  37297. * @memberOf _
  37298. * @since 3.0.0
  37299. * @category String
  37300. * @param {string} [string=''] The string to capitalize.
  37301. * @returns {string} Returns the capitalized string.
  37302. * @example
  37303. *
  37304. * _.capitalize('FRED');
  37305. * // => 'Fred'
  37306. */
  37307. function capitalize(string) {
  37308. return upperFirst(toString(string).toLowerCase());
  37309. }
  37310. /**
  37311. * Deburrs `string` by converting
  37312. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  37313. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  37314. * letters to basic Latin letters and removing
  37315. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  37316. *
  37317. * @static
  37318. * @memberOf _
  37319. * @since 3.0.0
  37320. * @category String
  37321. * @param {string} [string=''] The string to deburr.
  37322. * @returns {string} Returns the deburred string.
  37323. * @example
  37324. *
  37325. * _.deburr('déjà vu');
  37326. * // => 'deja vu'
  37327. */
  37328. function deburr(string) {
  37329. string = toString(string);
  37330. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  37331. }
  37332. /**
  37333. * Checks if `string` ends with the given target string.
  37334. *
  37335. * @static
  37336. * @memberOf _
  37337. * @since 3.0.0
  37338. * @category String
  37339. * @param {string} [string=''] The string to inspect.
  37340. * @param {string} [target] The string to search for.
  37341. * @param {number} [position=string.length] The position to search up to.
  37342. * @returns {boolean} Returns `true` if `string` ends with `target`,
  37343. * else `false`.
  37344. * @example
  37345. *
  37346. * _.endsWith('abc', 'c');
  37347. * // => true
  37348. *
  37349. * _.endsWith('abc', 'b');
  37350. * // => false
  37351. *
  37352. * _.endsWith('abc', 'b', 2);
  37353. * // => true
  37354. */
  37355. function endsWith(string, target, position) {
  37356. string = toString(string);
  37357. target = baseToString(target);
  37358. var length = string.length;
  37359. position = position === undefined
  37360. ? length
  37361. : baseClamp(toInteger(position), 0, length);
  37362. var end = position;
  37363. position -= target.length;
  37364. return position >= 0 && string.slice(position, end) == target;
  37365. }
  37366. /**
  37367. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  37368. * corresponding HTML entities.
  37369. *
  37370. * **Note:** No other characters are escaped. To escape additional
  37371. * characters use a third-party library like [_he_](https://mths.be/he).
  37372. *
  37373. * Though the ">" character is escaped for symmetry, characters like
  37374. * ">" and "/" don't need escaping in HTML and have no special meaning
  37375. * unless they're part of a tag or unquoted attribute value. See
  37376. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  37377. * (under "semi-related fun fact") for more details.
  37378. *
  37379. * When working with HTML you should always
  37380. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  37381. * XSS vectors.
  37382. *
  37383. * @static
  37384. * @since 0.1.0
  37385. * @memberOf _
  37386. * @category String
  37387. * @param {string} [string=''] The string to escape.
  37388. * @returns {string} Returns the escaped string.
  37389. * @example
  37390. *
  37391. * _.escape('fred, barney, & pebbles');
  37392. * // => 'fred, barney, &amp; pebbles'
  37393. */
  37394. function escape(string) {
  37395. string = toString(string);
  37396. return (string && reHasUnescapedHtml.test(string))
  37397. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  37398. : string;
  37399. }
  37400. /**
  37401. * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
  37402. * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
  37403. *
  37404. * @static
  37405. * @memberOf _
  37406. * @since 3.0.0
  37407. * @category String
  37408. * @param {string} [string=''] The string to escape.
  37409. * @returns {string} Returns the escaped string.
  37410. * @example
  37411. *
  37412. * _.escapeRegExp('[lodash](https://lodash.com/)');
  37413. * // => '\[lodash\]\(https://lodash\.com/\)'
  37414. */
  37415. function escapeRegExp(string) {
  37416. string = toString(string);
  37417. return (string && reHasRegExpChar.test(string))
  37418. ? string.replace(reRegExpChar, '\\$&')
  37419. : string;
  37420. }
  37421. /**
  37422. * Converts `string` to
  37423. * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
  37424. *
  37425. * @static
  37426. * @memberOf _
  37427. * @since 3.0.0
  37428. * @category String
  37429. * @param {string} [string=''] The string to convert.
  37430. * @returns {string} Returns the kebab cased string.
  37431. * @example
  37432. *
  37433. * _.kebabCase('Foo Bar');
  37434. * // => 'foo-bar'
  37435. *
  37436. * _.kebabCase('fooBar');
  37437. * // => 'foo-bar'
  37438. *
  37439. * _.kebabCase('__FOO_BAR__');
  37440. * // => 'foo-bar'
  37441. */
  37442. var kebabCase = createCompounder(function(result, word, index) {
  37443. return result + (index ? '-' : '') + word.toLowerCase();
  37444. });
  37445. /**
  37446. * Converts `string`, as space separated words, to lower case.
  37447. *
  37448. * @static
  37449. * @memberOf _
  37450. * @since 4.0.0
  37451. * @category String
  37452. * @param {string} [string=''] The string to convert.
  37453. * @returns {string} Returns the lower cased string.
  37454. * @example
  37455. *
  37456. * _.lowerCase('--Foo-Bar--');
  37457. * // => 'foo bar'
  37458. *
  37459. * _.lowerCase('fooBar');
  37460. * // => 'foo bar'
  37461. *
  37462. * _.lowerCase('__FOO_BAR__');
  37463. * // => 'foo bar'
  37464. */
  37465. var lowerCase = createCompounder(function(result, word, index) {
  37466. return result + (index ? ' ' : '') + word.toLowerCase();
  37467. });
  37468. /**
  37469. * Converts the first character of `string` to lower case.
  37470. *
  37471. * @static
  37472. * @memberOf _
  37473. * @since 4.0.0
  37474. * @category String
  37475. * @param {string} [string=''] The string to convert.
  37476. * @returns {string} Returns the converted string.
  37477. * @example
  37478. *
  37479. * _.lowerFirst('Fred');
  37480. * // => 'fred'
  37481. *
  37482. * _.lowerFirst('FRED');
  37483. * // => 'fRED'
  37484. */
  37485. var lowerFirst = createCaseFirst('toLowerCase');
  37486. /**
  37487. * Pads `string` on the left and right sides if it's shorter than `length`.
  37488. * Padding characters are truncated if they can't be evenly divided by `length`.
  37489. *
  37490. * @static
  37491. * @memberOf _
  37492. * @since 3.0.0
  37493. * @category String
  37494. * @param {string} [string=''] The string to pad.
  37495. * @param {number} [length=0] The padding length.
  37496. * @param {string} [chars=' '] The string used as padding.
  37497. * @returns {string} Returns the padded string.
  37498. * @example
  37499. *
  37500. * _.pad('abc', 8);
  37501. * // => ' abc '
  37502. *
  37503. * _.pad('abc', 8, '_-');
  37504. * // => '_-abc_-_'
  37505. *
  37506. * _.pad('abc', 3);
  37507. * // => 'abc'
  37508. */
  37509. function pad(string, length, chars) {
  37510. string = toString(string);
  37511. length = toInteger(length);
  37512. var strLength = length ? stringSize(string) : 0;
  37513. if (!length || strLength >= length) {
  37514. return string;
  37515. }
  37516. var mid = (length - strLength) / 2;
  37517. return (
  37518. createPadding(nativeFloor(mid), chars) +
  37519. string +
  37520. createPadding(nativeCeil(mid), chars)
  37521. );
  37522. }
  37523. /**
  37524. * Pads `string` on the right side if it's shorter than `length`. Padding
  37525. * characters are truncated if they exceed `length`.
  37526. *
  37527. * @static
  37528. * @memberOf _
  37529. * @since 4.0.0
  37530. * @category String
  37531. * @param {string} [string=''] The string to pad.
  37532. * @param {number} [length=0] The padding length.
  37533. * @param {string} [chars=' '] The string used as padding.
  37534. * @returns {string} Returns the padded string.
  37535. * @example
  37536. *
  37537. * _.padEnd('abc', 6);
  37538. * // => 'abc '
  37539. *
  37540. * _.padEnd('abc', 6, '_-');
  37541. * // => 'abc_-_'
  37542. *
  37543. * _.padEnd('abc', 3);
  37544. * // => 'abc'
  37545. */
  37546. function padEnd(string, length, chars) {
  37547. string = toString(string);
  37548. length = toInteger(length);
  37549. var strLength = length ? stringSize(string) : 0;
  37550. return (length && strLength < length)
  37551. ? (string + createPadding(length - strLength, chars))
  37552. : string;
  37553. }
  37554. /**
  37555. * Pads `string` on the left side if it's shorter than `length`. Padding
  37556. * characters are truncated if they exceed `length`.
  37557. *
  37558. * @static
  37559. * @memberOf _
  37560. * @since 4.0.0
  37561. * @category String
  37562. * @param {string} [string=''] The string to pad.
  37563. * @param {number} [length=0] The padding length.
  37564. * @param {string} [chars=' '] The string used as padding.
  37565. * @returns {string} Returns the padded string.
  37566. * @example
  37567. *
  37568. * _.padStart('abc', 6);
  37569. * // => ' abc'
  37570. *
  37571. * _.padStart('abc', 6, '_-');
  37572. * // => '_-_abc'
  37573. *
  37574. * _.padStart('abc', 3);
  37575. * // => 'abc'
  37576. */
  37577. function padStart(string, length, chars) {
  37578. string = toString(string);
  37579. length = toInteger(length);
  37580. var strLength = length ? stringSize(string) : 0;
  37581. return (length && strLength < length)
  37582. ? (createPadding(length - strLength, chars) + string)
  37583. : string;
  37584. }
  37585. /**
  37586. * Converts `string` to an integer of the specified radix. If `radix` is
  37587. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
  37588. * hexadecimal, in which case a `radix` of `16` is used.
  37589. *
  37590. * **Note:** This method aligns with the
  37591. * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
  37592. *
  37593. * @static
  37594. * @memberOf _
  37595. * @since 1.1.0
  37596. * @category String
  37597. * @param {string} string The string to convert.
  37598. * @param {number} [radix=10] The radix to interpret `value` by.
  37599. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  37600. * @returns {number} Returns the converted integer.
  37601. * @example
  37602. *
  37603. * _.parseInt('08');
  37604. * // => 8
  37605. *
  37606. * _.map(['6', '08', '10'], _.parseInt);
  37607. * // => [6, 8, 10]
  37608. */
  37609. function parseInt(string, radix, guard) {
  37610. if (guard || radix == null) {
  37611. radix = 0;
  37612. } else if (radix) {
  37613. radix = +radix;
  37614. }
  37615. return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
  37616. }
  37617. /**
  37618. * Repeats the given string `n` times.
  37619. *
  37620. * @static
  37621. * @memberOf _
  37622. * @since 3.0.0
  37623. * @category String
  37624. * @param {string} [string=''] The string to repeat.
  37625. * @param {number} [n=1] The number of times to repeat the string.
  37626. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  37627. * @returns {string} Returns the repeated string.
  37628. * @example
  37629. *
  37630. * _.repeat('*', 3);
  37631. * // => '***'
  37632. *
  37633. * _.repeat('abc', 2);
  37634. * // => 'abcabc'
  37635. *
  37636. * _.repeat('abc', 0);
  37637. * // => ''
  37638. */
  37639. function repeat(string, n, guard) {
  37640. if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
  37641. n = 1;
  37642. } else {
  37643. n = toInteger(n);
  37644. }
  37645. return baseRepeat(toString(string), n);
  37646. }
  37647. /**
  37648. * Replaces matches for `pattern` in `string` with `replacement`.
  37649. *
  37650. * **Note:** This method is based on
  37651. * [`String#replace`](https://mdn.io/String/replace).
  37652. *
  37653. * @static
  37654. * @memberOf _
  37655. * @since 4.0.0
  37656. * @category String
  37657. * @param {string} [string=''] The string to modify.
  37658. * @param {RegExp|string} pattern The pattern to replace.
  37659. * @param {Function|string} replacement The match replacement.
  37660. * @returns {string} Returns the modified string.
  37661. * @example
  37662. *
  37663. * _.replace('Hi Fred', 'Fred', 'Barney');
  37664. * // => 'Hi Barney'
  37665. */
  37666. function replace() {
  37667. var args = arguments,
  37668. string = toString(args[0]);
  37669. return args.length < 3 ? string : string.replace(args[1], args[2]);
  37670. }
  37671. /**
  37672. * Converts `string` to
  37673. * [snake case](https://en.wikipedia.org/wiki/Snake_case).
  37674. *
  37675. * @static
  37676. * @memberOf _
  37677. * @since 3.0.0
  37678. * @category String
  37679. * @param {string} [string=''] The string to convert.
  37680. * @returns {string} Returns the snake cased string.
  37681. * @example
  37682. *
  37683. * _.snakeCase('Foo Bar');
  37684. * // => 'foo_bar'
  37685. *
  37686. * _.snakeCase('fooBar');
  37687. * // => 'foo_bar'
  37688. *
  37689. * _.snakeCase('--FOO-BAR--');
  37690. * // => 'foo_bar'
  37691. */
  37692. var snakeCase = createCompounder(function(result, word, index) {
  37693. return result + (index ? '_' : '') + word.toLowerCase();
  37694. });
  37695. /**
  37696. * Splits `string` by `separator`.
  37697. *
  37698. * **Note:** This method is based on
  37699. * [`String#split`](https://mdn.io/String/split).
  37700. *
  37701. * @static
  37702. * @memberOf _
  37703. * @since 4.0.0
  37704. * @category String
  37705. * @param {string} [string=''] The string to split.
  37706. * @param {RegExp|string} separator The separator pattern to split by.
  37707. * @param {number} [limit] The length to truncate results to.
  37708. * @returns {Array} Returns the string segments.
  37709. * @example
  37710. *
  37711. * _.split('a-b-c', '-', 2);
  37712. * // => ['a', 'b']
  37713. */
  37714. function split(string, separator, limit) {
  37715. if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
  37716. separator = limit = undefined;
  37717. }
  37718. limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
  37719. if (!limit) {
  37720. return [];
  37721. }
  37722. string = toString(string);
  37723. if (string && (
  37724. typeof separator == 'string' ||
  37725. (separator != null && !isRegExp(separator))
  37726. )) {
  37727. separator = baseToString(separator);
  37728. if (!separator && hasUnicode(string)) {
  37729. return castSlice(stringToArray(string), 0, limit);
  37730. }
  37731. }
  37732. return string.split(separator, limit);
  37733. }
  37734. /**
  37735. * Converts `string` to
  37736. * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
  37737. *
  37738. * @static
  37739. * @memberOf _
  37740. * @since 3.1.0
  37741. * @category String
  37742. * @param {string} [string=''] The string to convert.
  37743. * @returns {string} Returns the start cased string.
  37744. * @example
  37745. *
  37746. * _.startCase('--foo-bar--');
  37747. * // => 'Foo Bar'
  37748. *
  37749. * _.startCase('fooBar');
  37750. * // => 'Foo Bar'
  37751. *
  37752. * _.startCase('__FOO_BAR__');
  37753. * // => 'FOO BAR'
  37754. */
  37755. var startCase = createCompounder(function(result, word, index) {
  37756. return result + (index ? ' ' : '') + upperFirst(word);
  37757. });
  37758. /**
  37759. * Checks if `string` starts with the given target string.
  37760. *
  37761. * @static
  37762. * @memberOf _
  37763. * @since 3.0.0
  37764. * @category String
  37765. * @param {string} [string=''] The string to inspect.
  37766. * @param {string} [target] The string to search for.
  37767. * @param {number} [position=0] The position to search from.
  37768. * @returns {boolean} Returns `true` if `string` starts with `target`,
  37769. * else `false`.
  37770. * @example
  37771. *
  37772. * _.startsWith('abc', 'a');
  37773. * // => true
  37774. *
  37775. * _.startsWith('abc', 'b');
  37776. * // => false
  37777. *
  37778. * _.startsWith('abc', 'b', 1);
  37779. * // => true
  37780. */
  37781. function startsWith(string, target, position) {
  37782. string = toString(string);
  37783. position = position == null
  37784. ? 0
  37785. : baseClamp(toInteger(position), 0, string.length);
  37786. target = baseToString(target);
  37787. return string.slice(position, position + target.length) == target;
  37788. }
  37789. /**
  37790. * Creates a compiled template function that can interpolate data properties
  37791. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  37792. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  37793. * properties may be accessed as free variables in the template. If a setting
  37794. * object is given, it takes precedence over `_.templateSettings` values.
  37795. *
  37796. * **Note:** In the development build `_.template` utilizes
  37797. * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  37798. * for easier debugging.
  37799. *
  37800. * For more information on precompiling templates see
  37801. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  37802. *
  37803. * For more information on Chrome extension sandboxes see
  37804. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  37805. *
  37806. * @static
  37807. * @since 0.1.0
  37808. * @memberOf _
  37809. * @category String
  37810. * @param {string} [string=''] The template string.
  37811. * @param {Object} [options={}] The options object.
  37812. * @param {RegExp} [options.escape=_.templateSettings.escape]
  37813. * The HTML "escape" delimiter.
  37814. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
  37815. * The "evaluate" delimiter.
  37816. * @param {Object} [options.imports=_.templateSettings.imports]
  37817. * An object to import into the template as free variables.
  37818. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
  37819. * The "interpolate" delimiter.
  37820. * @param {string} [options.sourceURL='lodash.templateSources[n]']
  37821. * The sourceURL of the compiled template.
  37822. * @param {string} [options.variable='obj']
  37823. * The data object variable name.
  37824. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  37825. * @returns {Function} Returns the compiled template function.
  37826. * @example
  37827. *
  37828. * // Use the "interpolate" delimiter to create a compiled template.
  37829. * var compiled = _.template('hello <%= user %>!');
  37830. * compiled({ 'user': 'fred' });
  37831. * // => 'hello fred!'
  37832. *
  37833. * // Use the HTML "escape" delimiter to escape data property values.
  37834. * var compiled = _.template('<b><%- value %></b>');
  37835. * compiled({ 'value': '<script>' });
  37836. * // => '<b>&lt;script&gt;</b>'
  37837. *
  37838. * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
  37839. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  37840. * compiled({ 'users': ['fred', 'barney'] });
  37841. * // => '<li>fred</li><li>barney</li>'
  37842. *
  37843. * // Use the internal `print` function in "evaluate" delimiters.
  37844. * var compiled = _.template('<% print("hello " + user); %>!');
  37845. * compiled({ 'user': 'barney' });
  37846. * // => 'hello barney!'
  37847. *
  37848. * // Use the ES template literal delimiter as an "interpolate" delimiter.
  37849. * // Disable support by replacing the "interpolate" delimiter.
  37850. * var compiled = _.template('hello ${ user }!');
  37851. * compiled({ 'user': 'pebbles' });
  37852. * // => 'hello pebbles!'
  37853. *
  37854. * // Use backslashes to treat delimiters as plain text.
  37855. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  37856. * compiled({ 'value': 'ignored' });
  37857. * // => '<%- value %>'
  37858. *
  37859. * // Use the `imports` option to import `jQuery` as `jq`.
  37860. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  37861. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  37862. * compiled({ 'users': ['fred', 'barney'] });
  37863. * // => '<li>fred</li><li>barney</li>'
  37864. *
  37865. * // Use the `sourceURL` option to specify a custom sourceURL for the template.
  37866. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  37867. * compiled(data);
  37868. * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
  37869. *
  37870. * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
  37871. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  37872. * compiled.source;
  37873. * // => function(data) {
  37874. * // var __t, __p = '';
  37875. * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  37876. * // return __p;
  37877. * // }
  37878. *
  37879. * // Use custom template delimiters.
  37880. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  37881. * var compiled = _.template('hello {{ user }}!');
  37882. * compiled({ 'user': 'mustache' });
  37883. * // => 'hello mustache!'
  37884. *
  37885. * // Use the `source` property to inline compiled templates for meaningful
  37886. * // line numbers in error messages and stack traces.
  37887. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
  37888. * var JST = {\
  37889. * "main": ' + _.template(mainText).source + '\
  37890. * };\
  37891. * ');
  37892. */
  37893. function template(string, options, guard) {
  37894. // Based on John Resig's `tmpl` implementation
  37895. // (http://ejohn.org/blog/javascript-micro-templating/)
  37896. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  37897. var settings = lodash.templateSettings;
  37898. if (guard && isIterateeCall(string, options, guard)) {
  37899. options = undefined;
  37900. }
  37901. string = toString(string);
  37902. options = assignInWith({}, options, settings, customDefaultsAssignIn);
  37903. var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
  37904. importsKeys = keys(imports),
  37905. importsValues = baseValues(imports, importsKeys);
  37906. var isEscaping,
  37907. isEvaluating,
  37908. index = 0,
  37909. interpolate = options.interpolate || reNoMatch,
  37910. source = "__p += '";
  37911. // Compile the regexp to match each delimiter.
  37912. var reDelimiters = RegExp(
  37913. (options.escape || reNoMatch).source + '|' +
  37914. interpolate.source + '|' +
  37915. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  37916. (options.evaluate || reNoMatch).source + '|$'
  37917. , 'g');
  37918. // Use a sourceURL for easier debugging.
  37919. // The sourceURL gets injected into the source that's eval-ed, so be careful
  37920. // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
  37921. // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
  37922. var sourceURL = '//# sourceURL=' +
  37923. (hasOwnProperty.call(options, 'sourceURL')
  37924. ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
  37925. : ('lodash.templateSources[' + (++templateCounter) + ']')
  37926. ) + '\n';
  37927. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  37928. interpolateValue || (interpolateValue = esTemplateValue);
  37929. // Escape characters that can't be included in string literals.
  37930. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  37931. // Replace delimiters with snippets.
  37932. if (escapeValue) {
  37933. isEscaping = true;
  37934. source += "' +\n__e(" + escapeValue + ") +\n'";
  37935. }
  37936. if (evaluateValue) {
  37937. isEvaluating = true;
  37938. source += "';\n" + evaluateValue + ";\n__p += '";
  37939. }
  37940. if (interpolateValue) {
  37941. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  37942. }
  37943. index = offset + match.length;
  37944. // The JS engine embedded in Adobe products needs `match` returned in
  37945. // order to produce the correct `offset` value.
  37946. return match;
  37947. });
  37948. source += "';\n";
  37949. // If `variable` is not specified wrap a with-statement around the generated
  37950. // code to add the data object to the top of the scope chain.
  37951. // Like with sourceURL, we take care to not check the option's prototype,
  37952. // as this configuration is a code injection vector.
  37953. var variable = hasOwnProperty.call(options, 'variable') && options.variable;
  37954. if (!variable) {
  37955. source = 'with (obj) {\n' + source + '\n}\n';
  37956. }
  37957. // Cleanup code by stripping empty strings.
  37958. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  37959. .replace(reEmptyStringMiddle, '$1')
  37960. .replace(reEmptyStringTrailing, '$1;');
  37961. // Frame code as the function body.
  37962. source = 'function(' + (variable || 'obj') + ') {\n' +
  37963. (variable
  37964. ? ''
  37965. : 'obj || (obj = {});\n'
  37966. ) +
  37967. "var __t, __p = ''" +
  37968. (isEscaping
  37969. ? ', __e = _.escape'
  37970. : ''
  37971. ) +
  37972. (isEvaluating
  37973. ? ', __j = Array.prototype.join;\n' +
  37974. "function print() { __p += __j.call(arguments, '') }\n"
  37975. : ';\n'
  37976. ) +
  37977. source +
  37978. 'return __p\n}';
  37979. var result = attempt(function() {
  37980. return Function(importsKeys, sourceURL + 'return ' + source)
  37981. .apply(undefined, importsValues);
  37982. });
  37983. // Provide the compiled function's source by its `toString` method or
  37984. // the `source` property as a convenience for inlining compiled templates.
  37985. result.source = source;
  37986. if (isError(result)) {
  37987. throw result;
  37988. }
  37989. return result;
  37990. }
  37991. /**
  37992. * Converts `string`, as a whole, to lower case just like
  37993. * [String#toLowerCase](https://mdn.io/toLowerCase).
  37994. *
  37995. * @static
  37996. * @memberOf _
  37997. * @since 4.0.0
  37998. * @category String
  37999. * @param {string} [string=''] The string to convert.
  38000. * @returns {string} Returns the lower cased string.
  38001. * @example
  38002. *
  38003. * _.toLower('--Foo-Bar--');
  38004. * // => '--foo-bar--'
  38005. *
  38006. * _.toLower('fooBar');
  38007. * // => 'foobar'
  38008. *
  38009. * _.toLower('__FOO_BAR__');
  38010. * // => '__foo_bar__'
  38011. */
  38012. function toLower(value) {
  38013. return toString(value).toLowerCase();
  38014. }
  38015. /**
  38016. * Converts `string`, as a whole, to upper case just like
  38017. * [String#toUpperCase](https://mdn.io/toUpperCase).
  38018. *
  38019. * @static
  38020. * @memberOf _
  38021. * @since 4.0.0
  38022. * @category String
  38023. * @param {string} [string=''] The string to convert.
  38024. * @returns {string} Returns the upper cased string.
  38025. * @example
  38026. *
  38027. * _.toUpper('--foo-bar--');
  38028. * // => '--FOO-BAR--'
  38029. *
  38030. * _.toUpper('fooBar');
  38031. * // => 'FOOBAR'
  38032. *
  38033. * _.toUpper('__foo_bar__');
  38034. * // => '__FOO_BAR__'
  38035. */
  38036. function toUpper(value) {
  38037. return toString(value).toUpperCase();
  38038. }
  38039. /**
  38040. * Removes leading and trailing whitespace or specified characters from `string`.
  38041. *
  38042. * @static
  38043. * @memberOf _
  38044. * @since 3.0.0
  38045. * @category String
  38046. * @param {string} [string=''] The string to trim.
  38047. * @param {string} [chars=whitespace] The characters to trim.
  38048. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  38049. * @returns {string} Returns the trimmed string.
  38050. * @example
  38051. *
  38052. * _.trim(' abc ');
  38053. * // => 'abc'
  38054. *
  38055. * _.trim('-_-abc-_-', '_-');
  38056. * // => 'abc'
  38057. *
  38058. * _.map([' foo ', ' bar '], _.trim);
  38059. * // => ['foo', 'bar']
  38060. */
  38061. function trim(string, chars, guard) {
  38062. string = toString(string);
  38063. if (string && (guard || chars === undefined)) {
  38064. return string.replace(reTrim, '');
  38065. }
  38066. if (!string || !(chars = baseToString(chars))) {
  38067. return string;
  38068. }
  38069. var strSymbols = stringToArray(string),
  38070. chrSymbols = stringToArray(chars),
  38071. start = charsStartIndex(strSymbols, chrSymbols),
  38072. end = charsEndIndex(strSymbols, chrSymbols) + 1;
  38073. return castSlice(strSymbols, start, end).join('');
  38074. }
  38075. /**
  38076. * Removes trailing whitespace or specified characters from `string`.
  38077. *
  38078. * @static
  38079. * @memberOf _
  38080. * @since 4.0.0
  38081. * @category String
  38082. * @param {string} [string=''] The string to trim.
  38083. * @param {string} [chars=whitespace] The characters to trim.
  38084. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  38085. * @returns {string} Returns the trimmed string.
  38086. * @example
  38087. *
  38088. * _.trimEnd(' abc ');
  38089. * // => ' abc'
  38090. *
  38091. * _.trimEnd('-_-abc-_-', '_-');
  38092. * // => '-_-abc'
  38093. */
  38094. function trimEnd(string, chars, guard) {
  38095. string = toString(string);
  38096. if (string && (guard || chars === undefined)) {
  38097. return string.replace(reTrimEnd, '');
  38098. }
  38099. if (!string || !(chars = baseToString(chars))) {
  38100. return string;
  38101. }
  38102. var strSymbols = stringToArray(string),
  38103. end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
  38104. return castSlice(strSymbols, 0, end).join('');
  38105. }
  38106. /**
  38107. * Removes leading whitespace or specified characters from `string`.
  38108. *
  38109. * @static
  38110. * @memberOf _
  38111. * @since 4.0.0
  38112. * @category String
  38113. * @param {string} [string=''] The string to trim.
  38114. * @param {string} [chars=whitespace] The characters to trim.
  38115. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  38116. * @returns {string} Returns the trimmed string.
  38117. * @example
  38118. *
  38119. * _.trimStart(' abc ');
  38120. * // => 'abc '
  38121. *
  38122. * _.trimStart('-_-abc-_-', '_-');
  38123. * // => 'abc-_-'
  38124. */
  38125. function trimStart(string, chars, guard) {
  38126. string = toString(string);
  38127. if (string && (guard || chars === undefined)) {
  38128. return string.replace(reTrimStart, '');
  38129. }
  38130. if (!string || !(chars = baseToString(chars))) {
  38131. return string;
  38132. }
  38133. var strSymbols = stringToArray(string),
  38134. start = charsStartIndex(strSymbols, stringToArray(chars));
  38135. return castSlice(strSymbols, start).join('');
  38136. }
  38137. /**
  38138. * Truncates `string` if it's longer than the given maximum string length.
  38139. * The last characters of the truncated string are replaced with the omission
  38140. * string which defaults to "...".
  38141. *
  38142. * @static
  38143. * @memberOf _
  38144. * @since 4.0.0
  38145. * @category String
  38146. * @param {string} [string=''] The string to truncate.
  38147. * @param {Object} [options={}] The options object.
  38148. * @param {number} [options.length=30] The maximum string length.
  38149. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  38150. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  38151. * @returns {string} Returns the truncated string.
  38152. * @example
  38153. *
  38154. * _.truncate('hi-diddly-ho there, neighborino');
  38155. * // => 'hi-diddly-ho there, neighbo...'
  38156. *
  38157. * _.truncate('hi-diddly-ho there, neighborino', {
  38158. * 'length': 24,
  38159. * 'separator': ' '
  38160. * });
  38161. * // => 'hi-diddly-ho there,...'
  38162. *
  38163. * _.truncate('hi-diddly-ho there, neighborino', {
  38164. * 'length': 24,
  38165. * 'separator': /,? +/
  38166. * });
  38167. * // => 'hi-diddly-ho there...'
  38168. *
  38169. * _.truncate('hi-diddly-ho there, neighborino', {
  38170. * 'omission': ' [...]'
  38171. * });
  38172. * // => 'hi-diddly-ho there, neig [...]'
  38173. */
  38174. function truncate(string, options) {
  38175. var length = DEFAULT_TRUNC_LENGTH,
  38176. omission = DEFAULT_TRUNC_OMISSION;
  38177. if (isObject(options)) {
  38178. var separator = 'separator' in options ? options.separator : separator;
  38179. length = 'length' in options ? toInteger(options.length) : length;
  38180. omission = 'omission' in options ? baseToString(options.omission) : omission;
  38181. }
  38182. string = toString(string);
  38183. var strLength = string.length;
  38184. if (hasUnicode(string)) {
  38185. var strSymbols = stringToArray(string);
  38186. strLength = strSymbols.length;
  38187. }
  38188. if (length >= strLength) {
  38189. return string;
  38190. }
  38191. var end = length - stringSize(omission);
  38192. if (end < 1) {
  38193. return omission;
  38194. }
  38195. var result = strSymbols
  38196. ? castSlice(strSymbols, 0, end).join('')
  38197. : string.slice(0, end);
  38198. if (separator === undefined) {
  38199. return result + omission;
  38200. }
  38201. if (strSymbols) {
  38202. end += (result.length - end);
  38203. }
  38204. if (isRegExp(separator)) {
  38205. if (string.slice(end).search(separator)) {
  38206. var match,
  38207. substring = result;
  38208. if (!separator.global) {
  38209. separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
  38210. }
  38211. separator.lastIndex = 0;
  38212. while ((match = separator.exec(substring))) {
  38213. var newEnd = match.index;
  38214. }
  38215. result = result.slice(0, newEnd === undefined ? end : newEnd);
  38216. }
  38217. } else if (string.indexOf(baseToString(separator), end) != end) {
  38218. var index = result.lastIndexOf(separator);
  38219. if (index > -1) {
  38220. result = result.slice(0, index);
  38221. }
  38222. }
  38223. return result + omission;
  38224. }
  38225. /**
  38226. * The inverse of `_.escape`; this method converts the HTML entities
  38227. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
  38228. * their corresponding characters.
  38229. *
  38230. * **Note:** No other HTML entities are unescaped. To unescape additional
  38231. * HTML entities use a third-party library like [_he_](https://mths.be/he).
  38232. *
  38233. * @static
  38234. * @memberOf _
  38235. * @since 0.6.0
  38236. * @category String
  38237. * @param {string} [string=''] The string to unescape.
  38238. * @returns {string} Returns the unescaped string.
  38239. * @example
  38240. *
  38241. * _.unescape('fred, barney, &amp; pebbles');
  38242. * // => 'fred, barney, & pebbles'
  38243. */
  38244. function unescape(string) {
  38245. string = toString(string);
  38246. return (string && reHasEscapedHtml.test(string))
  38247. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  38248. : string;
  38249. }
  38250. /**
  38251. * Converts `string`, as space separated words, to upper case.
  38252. *
  38253. * @static
  38254. * @memberOf _
  38255. * @since 4.0.0
  38256. * @category String
  38257. * @param {string} [string=''] The string to convert.
  38258. * @returns {string} Returns the upper cased string.
  38259. * @example
  38260. *
  38261. * _.upperCase('--foo-bar');
  38262. * // => 'FOO BAR'
  38263. *
  38264. * _.upperCase('fooBar');
  38265. * // => 'FOO BAR'
  38266. *
  38267. * _.upperCase('__foo_bar__');
  38268. * // => 'FOO BAR'
  38269. */
  38270. var upperCase = createCompounder(function(result, word, index) {
  38271. return result + (index ? ' ' : '') + word.toUpperCase();
  38272. });
  38273. /**
  38274. * Converts the first character of `string` to upper case.
  38275. *
  38276. * @static
  38277. * @memberOf _
  38278. * @since 4.0.0
  38279. * @category String
  38280. * @param {string} [string=''] The string to convert.
  38281. * @returns {string} Returns the converted string.
  38282. * @example
  38283. *
  38284. * _.upperFirst('fred');
  38285. * // => 'Fred'
  38286. *
  38287. * _.upperFirst('FRED');
  38288. * // => 'FRED'
  38289. */
  38290. var upperFirst = createCaseFirst('toUpperCase');
  38291. /**
  38292. * Splits `string` into an array of its words.
  38293. *
  38294. * @static
  38295. * @memberOf _
  38296. * @since 3.0.0
  38297. * @category String
  38298. * @param {string} [string=''] The string to inspect.
  38299. * @param {RegExp|string} [pattern] The pattern to match words.
  38300. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  38301. * @returns {Array} Returns the words of `string`.
  38302. * @example
  38303. *
  38304. * _.words('fred, barney, & pebbles');
  38305. * // => ['fred', 'barney', 'pebbles']
  38306. *
  38307. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  38308. * // => ['fred', 'barney', '&', 'pebbles']
  38309. */
  38310. function words(string, pattern, guard) {
  38311. string = toString(string);
  38312. pattern = guard ? undefined : pattern;
  38313. if (pattern === undefined) {
  38314. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  38315. }
  38316. return string.match(pattern) || [];
  38317. }
  38318. /*------------------------------------------------------------------------*/
  38319. /**
  38320. * Attempts to invoke `func`, returning either the result or the caught error
  38321. * object. Any additional arguments are provided to `func` when it's invoked.
  38322. *
  38323. * @static
  38324. * @memberOf _
  38325. * @since 3.0.0
  38326. * @category Util
  38327. * @param {Function} func The function to attempt.
  38328. * @param {...*} [args] The arguments to invoke `func` with.
  38329. * @returns {*} Returns the `func` result or error object.
  38330. * @example
  38331. *
  38332. * // Avoid throwing errors for invalid selectors.
  38333. * var elements = _.attempt(function(selector) {
  38334. * return document.querySelectorAll(selector);
  38335. * }, '>_>');
  38336. *
  38337. * if (_.isError(elements)) {
  38338. * elements = [];
  38339. * }
  38340. */
  38341. var attempt = baseRest(function(func, args) {
  38342. try {
  38343. return apply(func, undefined, args);
  38344. } catch (e) {
  38345. return isError(e) ? e : new Error(e);
  38346. }
  38347. });
  38348. /**
  38349. * Binds methods of an object to the object itself, overwriting the existing
  38350. * method.
  38351. *
  38352. * **Note:** This method doesn't set the "length" property of bound functions.
  38353. *
  38354. * @static
  38355. * @since 0.1.0
  38356. * @memberOf _
  38357. * @category Util
  38358. * @param {Object} object The object to bind and assign the bound methods to.
  38359. * @param {...(string|string[])} methodNames The object method names to bind.
  38360. * @returns {Object} Returns `object`.
  38361. * @example
  38362. *
  38363. * var view = {
  38364. * 'label': 'docs',
  38365. * 'click': function() {
  38366. * console.log('clicked ' + this.label);
  38367. * }
  38368. * };
  38369. *
  38370. * _.bindAll(view, ['click']);
  38371. * jQuery(element).on('click', view.click);
  38372. * // => Logs 'clicked docs' when clicked.
  38373. */
  38374. var bindAll = flatRest(function(object, methodNames) {
  38375. arrayEach(methodNames, function(key) {
  38376. key = toKey(key);
  38377. baseAssignValue(object, key, bind(object[key], object));
  38378. });
  38379. return object;
  38380. });
  38381. /**
  38382. * Creates a function that iterates over `pairs` and invokes the corresponding
  38383. * function of the first predicate to return truthy. The predicate-function
  38384. * pairs are invoked with the `this` binding and arguments of the created
  38385. * function.
  38386. *
  38387. * @static
  38388. * @memberOf _
  38389. * @since 4.0.0
  38390. * @category Util
  38391. * @param {Array} pairs The predicate-function pairs.
  38392. * @returns {Function} Returns the new composite function.
  38393. * @example
  38394. *
  38395. * var func = _.cond([
  38396. * [_.matches({ 'a': 1 }), _.constant('matches A')],
  38397. * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
  38398. * [_.stubTrue, _.constant('no match')]
  38399. * ]);
  38400. *
  38401. * func({ 'a': 1, 'b': 2 });
  38402. * // => 'matches A'
  38403. *
  38404. * func({ 'a': 0, 'b': 1 });
  38405. * // => 'matches B'
  38406. *
  38407. * func({ 'a': '1', 'b': '2' });
  38408. * // => 'no match'
  38409. */
  38410. function cond(pairs) {
  38411. var length = pairs == null ? 0 : pairs.length,
  38412. toIteratee = getIteratee();
  38413. pairs = !length ? [] : arrayMap(pairs, function(pair) {
  38414. if (typeof pair[1] != 'function') {
  38415. throw new TypeError(FUNC_ERROR_TEXT);
  38416. }
  38417. return [toIteratee(pair[0]), pair[1]];
  38418. });
  38419. return baseRest(function(args) {
  38420. var index = -1;
  38421. while (++index < length) {
  38422. var pair = pairs[index];
  38423. if (apply(pair[0], this, args)) {
  38424. return apply(pair[1], this, args);
  38425. }
  38426. }
  38427. });
  38428. }
  38429. /**
  38430. * Creates a function that invokes the predicate properties of `source` with
  38431. * the corresponding property values of a given object, returning `true` if
  38432. * all predicates return truthy, else `false`.
  38433. *
  38434. * **Note:** The created function is equivalent to `_.conformsTo` with
  38435. * `source` partially applied.
  38436. *
  38437. * @static
  38438. * @memberOf _
  38439. * @since 4.0.0
  38440. * @category Util
  38441. * @param {Object} source The object of property predicates to conform to.
  38442. * @returns {Function} Returns the new spec function.
  38443. * @example
  38444. *
  38445. * var objects = [
  38446. * { 'a': 2, 'b': 1 },
  38447. * { 'a': 1, 'b': 2 }
  38448. * ];
  38449. *
  38450. * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
  38451. * // => [{ 'a': 1, 'b': 2 }]
  38452. */
  38453. function conforms(source) {
  38454. return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
  38455. }
  38456. /**
  38457. * Creates a function that returns `value`.
  38458. *
  38459. * @static
  38460. * @memberOf _
  38461. * @since 2.4.0
  38462. * @category Util
  38463. * @param {*} value The value to return from the new function.
  38464. * @returns {Function} Returns the new constant function.
  38465. * @example
  38466. *
  38467. * var objects = _.times(2, _.constant({ 'a': 1 }));
  38468. *
  38469. * console.log(objects);
  38470. * // => [{ 'a': 1 }, { 'a': 1 }]
  38471. *
  38472. * console.log(objects[0] === objects[1]);
  38473. * // => true
  38474. */
  38475. function constant(value) {
  38476. return function() {
  38477. return value;
  38478. };
  38479. }
  38480. /**
  38481. * Checks `value` to determine whether a default value should be returned in
  38482. * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
  38483. * or `undefined`.
  38484. *
  38485. * @static
  38486. * @memberOf _
  38487. * @since 4.14.0
  38488. * @category Util
  38489. * @param {*} value The value to check.
  38490. * @param {*} defaultValue The default value.
  38491. * @returns {*} Returns the resolved value.
  38492. * @example
  38493. *
  38494. * _.defaultTo(1, 10);
  38495. * // => 1
  38496. *
  38497. * _.defaultTo(undefined, 10);
  38498. * // => 10
  38499. */
  38500. function defaultTo(value, defaultValue) {
  38501. return (value == null || value !== value) ? defaultValue : value;
  38502. }
  38503. /**
  38504. * Creates a function that returns the result of invoking the given functions
  38505. * with the `this` binding of the created function, where each successive
  38506. * invocation is supplied the return value of the previous.
  38507. *
  38508. * @static
  38509. * @memberOf _
  38510. * @since 3.0.0
  38511. * @category Util
  38512. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  38513. * @returns {Function} Returns the new composite function.
  38514. * @see _.flowRight
  38515. * @example
  38516. *
  38517. * function square(n) {
  38518. * return n * n;
  38519. * }
  38520. *
  38521. * var addSquare = _.flow([_.add, square]);
  38522. * addSquare(1, 2);
  38523. * // => 9
  38524. */
  38525. var flow = createFlow();
  38526. /**
  38527. * This method is like `_.flow` except that it creates a function that
  38528. * invokes the given functions from right to left.
  38529. *
  38530. * @static
  38531. * @since 3.0.0
  38532. * @memberOf _
  38533. * @category Util
  38534. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  38535. * @returns {Function} Returns the new composite function.
  38536. * @see _.flow
  38537. * @example
  38538. *
  38539. * function square(n) {
  38540. * return n * n;
  38541. * }
  38542. *
  38543. * var addSquare = _.flowRight([square, _.add]);
  38544. * addSquare(1, 2);
  38545. * // => 9
  38546. */
  38547. var flowRight = createFlow(true);
  38548. /**
  38549. * This method returns the first argument it receives.
  38550. *
  38551. * @static
  38552. * @since 0.1.0
  38553. * @memberOf _
  38554. * @category Util
  38555. * @param {*} value Any value.
  38556. * @returns {*} Returns `value`.
  38557. * @example
  38558. *
  38559. * var object = { 'a': 1 };
  38560. *
  38561. * console.log(_.identity(object) === object);
  38562. * // => true
  38563. */
  38564. function identity(value) {
  38565. return value;
  38566. }
  38567. /**
  38568. * Creates a function that invokes `func` with the arguments of the created
  38569. * function. If `func` is a property name, the created function returns the
  38570. * property value for a given element. If `func` is an array or object, the
  38571. * created function returns `true` for elements that contain the equivalent
  38572. * source properties, otherwise it returns `false`.
  38573. *
  38574. * @static
  38575. * @since 4.0.0
  38576. * @memberOf _
  38577. * @category Util
  38578. * @param {*} [func=_.identity] The value to convert to a callback.
  38579. * @returns {Function} Returns the callback.
  38580. * @example
  38581. *
  38582. * var users = [
  38583. * { 'user': 'barney', 'age': 36, 'active': true },
  38584. * { 'user': 'fred', 'age': 40, 'active': false }
  38585. * ];
  38586. *
  38587. * // The `_.matches` iteratee shorthand.
  38588. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
  38589. * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
  38590. *
  38591. * // The `_.matchesProperty` iteratee shorthand.
  38592. * _.filter(users, _.iteratee(['user', 'fred']));
  38593. * // => [{ 'user': 'fred', 'age': 40 }]
  38594. *
  38595. * // The `_.property` iteratee shorthand.
  38596. * _.map(users, _.iteratee('user'));
  38597. * // => ['barney', 'fred']
  38598. *
  38599. * // Create custom iteratee shorthands.
  38600. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
  38601. * return !_.isRegExp(func) ? iteratee(func) : function(string) {
  38602. * return func.test(string);
  38603. * };
  38604. * });
  38605. *
  38606. * _.filter(['abc', 'def'], /ef/);
  38607. * // => ['def']
  38608. */
  38609. function iteratee(func) {
  38610. return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
  38611. }
  38612. /**
  38613. * Creates a function that performs a partial deep comparison between a given
  38614. * object and `source`, returning `true` if the given object has equivalent
  38615. * property values, else `false`.
  38616. *
  38617. * **Note:** The created function is equivalent to `_.isMatch` with `source`
  38618. * partially applied.
  38619. *
  38620. * Partial comparisons will match empty array and empty object `source`
  38621. * values against any array or object value, respectively. See `_.isEqual`
  38622. * for a list of supported value comparisons.
  38623. *
  38624. * @static
  38625. * @memberOf _
  38626. * @since 3.0.0
  38627. * @category Util
  38628. * @param {Object} source The object of property values to match.
  38629. * @returns {Function} Returns the new spec function.
  38630. * @example
  38631. *
  38632. * var objects = [
  38633. * { 'a': 1, 'b': 2, 'c': 3 },
  38634. * { 'a': 4, 'b': 5, 'c': 6 }
  38635. * ];
  38636. *
  38637. * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
  38638. * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
  38639. */
  38640. function matches(source) {
  38641. return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
  38642. }
  38643. /**
  38644. * Creates a function that performs a partial deep comparison between the
  38645. * value at `path` of a given object to `srcValue`, returning `true` if the
  38646. * object value is equivalent, else `false`.
  38647. *
  38648. * **Note:** Partial comparisons will match empty array and empty object
  38649. * `srcValue` values against any array or object value, respectively. See
  38650. * `_.isEqual` for a list of supported value comparisons.
  38651. *
  38652. * @static
  38653. * @memberOf _
  38654. * @since 3.2.0
  38655. * @category Util
  38656. * @param {Array|string} path The path of the property to get.
  38657. * @param {*} srcValue The value to match.
  38658. * @returns {Function} Returns the new spec function.
  38659. * @example
  38660. *
  38661. * var objects = [
  38662. * { 'a': 1, 'b': 2, 'c': 3 },
  38663. * { 'a': 4, 'b': 5, 'c': 6 }
  38664. * ];
  38665. *
  38666. * _.find(objects, _.matchesProperty('a', 4));
  38667. * // => { 'a': 4, 'b': 5, 'c': 6 }
  38668. */
  38669. function matchesProperty(path, srcValue) {
  38670. return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
  38671. }
  38672. /**
  38673. * Creates a function that invokes the method at `path` of a given object.
  38674. * Any additional arguments are provided to the invoked method.
  38675. *
  38676. * @static
  38677. * @memberOf _
  38678. * @since 3.7.0
  38679. * @category Util
  38680. * @param {Array|string} path The path of the method to invoke.
  38681. * @param {...*} [args] The arguments to invoke the method with.
  38682. * @returns {Function} Returns the new invoker function.
  38683. * @example
  38684. *
  38685. * var objects = [
  38686. * { 'a': { 'b': _.constant(2) } },
  38687. * { 'a': { 'b': _.constant(1) } }
  38688. * ];
  38689. *
  38690. * _.map(objects, _.method('a.b'));
  38691. * // => [2, 1]
  38692. *
  38693. * _.map(objects, _.method(['a', 'b']));
  38694. * // => [2, 1]
  38695. */
  38696. var method = baseRest(function(path, args) {
  38697. return function(object) {
  38698. return baseInvoke(object, path, args);
  38699. };
  38700. });
  38701. /**
  38702. * The opposite of `_.method`; this method creates a function that invokes
  38703. * the method at a given path of `object`. Any additional arguments are
  38704. * provided to the invoked method.
  38705. *
  38706. * @static
  38707. * @memberOf _
  38708. * @since 3.7.0
  38709. * @category Util
  38710. * @param {Object} object The object to query.
  38711. * @param {...*} [args] The arguments to invoke the method with.
  38712. * @returns {Function} Returns the new invoker function.
  38713. * @example
  38714. *
  38715. * var array = _.times(3, _.constant),
  38716. * object = { 'a': array, 'b': array, 'c': array };
  38717. *
  38718. * _.map(['a[2]', 'c[0]'], _.methodOf(object));
  38719. * // => [2, 0]
  38720. *
  38721. * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
  38722. * // => [2, 0]
  38723. */
  38724. var methodOf = baseRest(function(object, args) {
  38725. return function(path) {
  38726. return baseInvoke(object, path, args);
  38727. };
  38728. });
  38729. /**
  38730. * Adds all own enumerable string keyed function properties of a source
  38731. * object to the destination object. If `object` is a function, then methods
  38732. * are added to its prototype as well.
  38733. *
  38734. * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
  38735. * avoid conflicts caused by modifying the original.
  38736. *
  38737. * @static
  38738. * @since 0.1.0
  38739. * @memberOf _
  38740. * @category Util
  38741. * @param {Function|Object} [object=lodash] The destination object.
  38742. * @param {Object} source The object of functions to add.
  38743. * @param {Object} [options={}] The options object.
  38744. * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
  38745. * @returns {Function|Object} Returns `object`.
  38746. * @example
  38747. *
  38748. * function vowels(string) {
  38749. * return _.filter(string, function(v) {
  38750. * return /[aeiou]/i.test(v);
  38751. * });
  38752. * }
  38753. *
  38754. * _.mixin({ 'vowels': vowels });
  38755. * _.vowels('fred');
  38756. * // => ['e']
  38757. *
  38758. * _('fred').vowels().value();
  38759. * // => ['e']
  38760. *
  38761. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  38762. * _('fred').vowels();
  38763. * // => ['e']
  38764. */
  38765. function mixin(object, source, options) {
  38766. var props = keys(source),
  38767. methodNames = baseFunctions(source, props);
  38768. if (options == null &&
  38769. !(isObject(source) && (methodNames.length || !props.length))) {
  38770. options = source;
  38771. source = object;
  38772. object = this;
  38773. methodNames = baseFunctions(source, keys(source));
  38774. }
  38775. var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
  38776. isFunc = isFunction(object);
  38777. arrayEach(methodNames, function(methodName) {
  38778. var func = source[methodName];
  38779. object[methodName] = func;
  38780. if (isFunc) {
  38781. object.prototype[methodName] = function() {
  38782. var chainAll = this.__chain__;
  38783. if (chain || chainAll) {
  38784. var result = object(this.__wrapped__),
  38785. actions = result.__actions__ = copyArray(this.__actions__);
  38786. actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
  38787. result.__chain__ = chainAll;
  38788. return result;
  38789. }
  38790. return func.apply(object, arrayPush([this.value()], arguments));
  38791. };
  38792. }
  38793. });
  38794. return object;
  38795. }
  38796. /**
  38797. * Reverts the `_` variable to its previous value and returns a reference to
  38798. * the `lodash` function.
  38799. *
  38800. * @static
  38801. * @since 0.1.0
  38802. * @memberOf _
  38803. * @category Util
  38804. * @returns {Function} Returns the `lodash` function.
  38805. * @example
  38806. *
  38807. * var lodash = _.noConflict();
  38808. */
  38809. function noConflict() {
  38810. if (root._ === this) {
  38811. root._ = oldDash;
  38812. }
  38813. return this;
  38814. }
  38815. /**
  38816. * This method returns `undefined`.
  38817. *
  38818. * @static
  38819. * @memberOf _
  38820. * @since 2.3.0
  38821. * @category Util
  38822. * @example
  38823. *
  38824. * _.times(2, _.noop);
  38825. * // => [undefined, undefined]
  38826. */
  38827. function noop() {
  38828. // No operation performed.
  38829. }
  38830. /**
  38831. * Creates a function that gets the argument at index `n`. If `n` is negative,
  38832. * the nth argument from the end is returned.
  38833. *
  38834. * @static
  38835. * @memberOf _
  38836. * @since 4.0.0
  38837. * @category Util
  38838. * @param {number} [n=0] The index of the argument to return.
  38839. * @returns {Function} Returns the new pass-thru function.
  38840. * @example
  38841. *
  38842. * var func = _.nthArg(1);
  38843. * func('a', 'b', 'c', 'd');
  38844. * // => 'b'
  38845. *
  38846. * var func = _.nthArg(-2);
  38847. * func('a', 'b', 'c', 'd');
  38848. * // => 'c'
  38849. */
  38850. function nthArg(n) {
  38851. n = toInteger(n);
  38852. return baseRest(function(args) {
  38853. return baseNth(args, n);
  38854. });
  38855. }
  38856. /**
  38857. * Creates a function that invokes `iteratees` with the arguments it receives
  38858. * and returns their results.
  38859. *
  38860. * @static
  38861. * @memberOf _
  38862. * @since 4.0.0
  38863. * @category Util
  38864. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  38865. * The iteratees to invoke.
  38866. * @returns {Function} Returns the new function.
  38867. * @example
  38868. *
  38869. * var func = _.over([Math.max, Math.min]);
  38870. *
  38871. * func(1, 2, 3, 4);
  38872. * // => [4, 1]
  38873. */
  38874. var over = createOver(arrayMap);
  38875. /**
  38876. * Creates a function that checks if **all** of the `predicates` return
  38877. * truthy when invoked with the arguments it receives.
  38878. *
  38879. * @static
  38880. * @memberOf _
  38881. * @since 4.0.0
  38882. * @category Util
  38883. * @param {...(Function|Function[])} [predicates=[_.identity]]
  38884. * The predicates to check.
  38885. * @returns {Function} Returns the new function.
  38886. * @example
  38887. *
  38888. * var func = _.overEvery([Boolean, isFinite]);
  38889. *
  38890. * func('1');
  38891. * // => true
  38892. *
  38893. * func(null);
  38894. * // => false
  38895. *
  38896. * func(NaN);
  38897. * // => false
  38898. */
  38899. var overEvery = createOver(arrayEvery);
  38900. /**
  38901. * Creates a function that checks if **any** of the `predicates` return
  38902. * truthy when invoked with the arguments it receives.
  38903. *
  38904. * @static
  38905. * @memberOf _
  38906. * @since 4.0.0
  38907. * @category Util
  38908. * @param {...(Function|Function[])} [predicates=[_.identity]]
  38909. * The predicates to check.
  38910. * @returns {Function} Returns the new function.
  38911. * @example
  38912. *
  38913. * var func = _.overSome([Boolean, isFinite]);
  38914. *
  38915. * func('1');
  38916. * // => true
  38917. *
  38918. * func(null);
  38919. * // => true
  38920. *
  38921. * func(NaN);
  38922. * // => false
  38923. */
  38924. var overSome = createOver(arraySome);
  38925. /**
  38926. * Creates a function that returns the value at `path` of a given object.
  38927. *
  38928. * @static
  38929. * @memberOf _
  38930. * @since 2.4.0
  38931. * @category Util
  38932. * @param {Array|string} path The path of the property to get.
  38933. * @returns {Function} Returns the new accessor function.
  38934. * @example
  38935. *
  38936. * var objects = [
  38937. * { 'a': { 'b': 2 } },
  38938. * { 'a': { 'b': 1 } }
  38939. * ];
  38940. *
  38941. * _.map(objects, _.property('a.b'));
  38942. * // => [2, 1]
  38943. *
  38944. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  38945. * // => [1, 2]
  38946. */
  38947. function property(path) {
  38948. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  38949. }
  38950. /**
  38951. * The opposite of `_.property`; this method creates a function that returns
  38952. * the value at a given path of `object`.
  38953. *
  38954. * @static
  38955. * @memberOf _
  38956. * @since 3.0.0
  38957. * @category Util
  38958. * @param {Object} object The object to query.
  38959. * @returns {Function} Returns the new accessor function.
  38960. * @example
  38961. *
  38962. * var array = [0, 1, 2],
  38963. * object = { 'a': array, 'b': array, 'c': array };
  38964. *
  38965. * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
  38966. * // => [2, 0]
  38967. *
  38968. * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
  38969. * // => [2, 0]
  38970. */
  38971. function propertyOf(object) {
  38972. return function(path) {
  38973. return object == null ? undefined : baseGet(object, path);
  38974. };
  38975. }
  38976. /**
  38977. * Creates an array of numbers (positive and/or negative) progressing from
  38978. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  38979. * `start` is specified without an `end` or `step`. If `end` is not specified,
  38980. * it's set to `start` with `start` then set to `0`.
  38981. *
  38982. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  38983. * floating-point values which can produce unexpected results.
  38984. *
  38985. * @static
  38986. * @since 0.1.0
  38987. * @memberOf _
  38988. * @category Util
  38989. * @param {number} [start=0] The start of the range.
  38990. * @param {number} end The end of the range.
  38991. * @param {number} [step=1] The value to increment or decrement by.
  38992. * @returns {Array} Returns the range of numbers.
  38993. * @see _.inRange, _.rangeRight
  38994. * @example
  38995. *
  38996. * _.range(4);
  38997. * // => [0, 1, 2, 3]
  38998. *
  38999. * _.range(-4);
  39000. * // => [0, -1, -2, -3]
  39001. *
  39002. * _.range(1, 5);
  39003. * // => [1, 2, 3, 4]
  39004. *
  39005. * _.range(0, 20, 5);
  39006. * // => [0, 5, 10, 15]
  39007. *
  39008. * _.range(0, -4, -1);
  39009. * // => [0, -1, -2, -3]
  39010. *
  39011. * _.range(1, 4, 0);
  39012. * // => [1, 1, 1]
  39013. *
  39014. * _.range(0);
  39015. * // => []
  39016. */
  39017. var range = createRange();
  39018. /**
  39019. * This method is like `_.range` except that it populates values in
  39020. * descending order.
  39021. *
  39022. * @static
  39023. * @memberOf _
  39024. * @since 4.0.0
  39025. * @category Util
  39026. * @param {number} [start=0] The start of the range.
  39027. * @param {number} end The end of the range.
  39028. * @param {number} [step=1] The value to increment or decrement by.
  39029. * @returns {Array} Returns the range of numbers.
  39030. * @see _.inRange, _.range
  39031. * @example
  39032. *
  39033. * _.rangeRight(4);
  39034. * // => [3, 2, 1, 0]
  39035. *
  39036. * _.rangeRight(-4);
  39037. * // => [-3, -2, -1, 0]
  39038. *
  39039. * _.rangeRight(1, 5);
  39040. * // => [4, 3, 2, 1]
  39041. *
  39042. * _.rangeRight(0, 20, 5);
  39043. * // => [15, 10, 5, 0]
  39044. *
  39045. * _.rangeRight(0, -4, -1);
  39046. * // => [-3, -2, -1, 0]
  39047. *
  39048. * _.rangeRight(1, 4, 0);
  39049. * // => [1, 1, 1]
  39050. *
  39051. * _.rangeRight(0);
  39052. * // => []
  39053. */
  39054. var rangeRight = createRange(true);
  39055. /**
  39056. * This method returns a new empty array.
  39057. *
  39058. * @static
  39059. * @memberOf _
  39060. * @since 4.13.0
  39061. * @category Util
  39062. * @returns {Array} Returns the new empty array.
  39063. * @example
  39064. *
  39065. * var arrays = _.times(2, _.stubArray);
  39066. *
  39067. * console.log(arrays);
  39068. * // => [[], []]
  39069. *
  39070. * console.log(arrays[0] === arrays[1]);
  39071. * // => false
  39072. */
  39073. function stubArray() {
  39074. return [];
  39075. }
  39076. /**
  39077. * This method returns `false`.
  39078. *
  39079. * @static
  39080. * @memberOf _
  39081. * @since 4.13.0
  39082. * @category Util
  39083. * @returns {boolean} Returns `false`.
  39084. * @example
  39085. *
  39086. * _.times(2, _.stubFalse);
  39087. * // => [false, false]
  39088. */
  39089. function stubFalse() {
  39090. return false;
  39091. }
  39092. /**
  39093. * This method returns a new empty object.
  39094. *
  39095. * @static
  39096. * @memberOf _
  39097. * @since 4.13.0
  39098. * @category Util
  39099. * @returns {Object} Returns the new empty object.
  39100. * @example
  39101. *
  39102. * var objects = _.times(2, _.stubObject);
  39103. *
  39104. * console.log(objects);
  39105. * // => [{}, {}]
  39106. *
  39107. * console.log(objects[0] === objects[1]);
  39108. * // => false
  39109. */
  39110. function stubObject() {
  39111. return {};
  39112. }
  39113. /**
  39114. * This method returns an empty string.
  39115. *
  39116. * @static
  39117. * @memberOf _
  39118. * @since 4.13.0
  39119. * @category Util
  39120. * @returns {string} Returns the empty string.
  39121. * @example
  39122. *
  39123. * _.times(2, _.stubString);
  39124. * // => ['', '']
  39125. */
  39126. function stubString() {
  39127. return '';
  39128. }
  39129. /**
  39130. * This method returns `true`.
  39131. *
  39132. * @static
  39133. * @memberOf _
  39134. * @since 4.13.0
  39135. * @category Util
  39136. * @returns {boolean} Returns `true`.
  39137. * @example
  39138. *
  39139. * _.times(2, _.stubTrue);
  39140. * // => [true, true]
  39141. */
  39142. function stubTrue() {
  39143. return true;
  39144. }
  39145. /**
  39146. * Invokes the iteratee `n` times, returning an array of the results of
  39147. * each invocation. The iteratee is invoked with one argument; (index).
  39148. *
  39149. * @static
  39150. * @since 0.1.0
  39151. * @memberOf _
  39152. * @category Util
  39153. * @param {number} n The number of times to invoke `iteratee`.
  39154. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  39155. * @returns {Array} Returns the array of results.
  39156. * @example
  39157. *
  39158. * _.times(3, String);
  39159. * // => ['0', '1', '2']
  39160. *
  39161. * _.times(4, _.constant(0));
  39162. * // => [0, 0, 0, 0]
  39163. */
  39164. function times(n, iteratee) {
  39165. n = toInteger(n);
  39166. if (n < 1 || n > MAX_SAFE_INTEGER) {
  39167. return [];
  39168. }
  39169. var index = MAX_ARRAY_LENGTH,
  39170. length = nativeMin(n, MAX_ARRAY_LENGTH);
  39171. iteratee = getIteratee(iteratee);
  39172. n -= MAX_ARRAY_LENGTH;
  39173. var result = baseTimes(length, iteratee);
  39174. while (++index < n) {
  39175. iteratee(index);
  39176. }
  39177. return result;
  39178. }
  39179. /**
  39180. * Converts `value` to a property path array.
  39181. *
  39182. * @static
  39183. * @memberOf _
  39184. * @since 4.0.0
  39185. * @category Util
  39186. * @param {*} value The value to convert.
  39187. * @returns {Array} Returns the new property path array.
  39188. * @example
  39189. *
  39190. * _.toPath('a.b.c');
  39191. * // => ['a', 'b', 'c']
  39192. *
  39193. * _.toPath('a[0].b.c');
  39194. * // => ['a', '0', 'b', 'c']
  39195. */
  39196. function toPath(value) {
  39197. if (isArray(value)) {
  39198. return arrayMap(value, toKey);
  39199. }
  39200. return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
  39201. }
  39202. /**
  39203. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  39204. *
  39205. * @static
  39206. * @since 0.1.0
  39207. * @memberOf _
  39208. * @category Util
  39209. * @param {string} [prefix=''] The value to prefix the ID with.
  39210. * @returns {string} Returns the unique ID.
  39211. * @example
  39212. *
  39213. * _.uniqueId('contact_');
  39214. * // => 'contact_104'
  39215. *
  39216. * _.uniqueId();
  39217. * // => '105'
  39218. */
  39219. function uniqueId(prefix) {
  39220. var id = ++idCounter;
  39221. return toString(prefix) + id;
  39222. }
  39223. /*------------------------------------------------------------------------*/
  39224. /**
  39225. * Adds two numbers.
  39226. *
  39227. * @static
  39228. * @memberOf _
  39229. * @since 3.4.0
  39230. * @category Math
  39231. * @param {number} augend The first number in an addition.
  39232. * @param {number} addend The second number in an addition.
  39233. * @returns {number} Returns the total.
  39234. * @example
  39235. *
  39236. * _.add(6, 4);
  39237. * // => 10
  39238. */
  39239. var add = createMathOperation(function(augend, addend) {
  39240. return augend + addend;
  39241. }, 0);
  39242. /**
  39243. * Computes `number` rounded up to `precision`.
  39244. *
  39245. * @static
  39246. * @memberOf _
  39247. * @since 3.10.0
  39248. * @category Math
  39249. * @param {number} number The number to round up.
  39250. * @param {number} [precision=0] The precision to round up to.
  39251. * @returns {number} Returns the rounded up number.
  39252. * @example
  39253. *
  39254. * _.ceil(4.006);
  39255. * // => 5
  39256. *
  39257. * _.ceil(6.004, 2);
  39258. * // => 6.01
  39259. *
  39260. * _.ceil(6040, -2);
  39261. * // => 6100
  39262. */
  39263. var ceil = createRound('ceil');
  39264. /**
  39265. * Divide two numbers.
  39266. *
  39267. * @static
  39268. * @memberOf _
  39269. * @since 4.7.0
  39270. * @category Math
  39271. * @param {number} dividend The first number in a division.
  39272. * @param {number} divisor The second number in a division.
  39273. * @returns {number} Returns the quotient.
  39274. * @example
  39275. *
  39276. * _.divide(6, 4);
  39277. * // => 1.5
  39278. */
  39279. var divide = createMathOperation(function(dividend, divisor) {
  39280. return dividend / divisor;
  39281. }, 1);
  39282. /**
  39283. * Computes `number` rounded down to `precision`.
  39284. *
  39285. * @static
  39286. * @memberOf _
  39287. * @since 3.10.0
  39288. * @category Math
  39289. * @param {number} number The number to round down.
  39290. * @param {number} [precision=0] The precision to round down to.
  39291. * @returns {number} Returns the rounded down number.
  39292. * @example
  39293. *
  39294. * _.floor(4.006);
  39295. * // => 4
  39296. *
  39297. * _.floor(0.046, 2);
  39298. * // => 0.04
  39299. *
  39300. * _.floor(4060, -2);
  39301. * // => 4000
  39302. */
  39303. var floor = createRound('floor');
  39304. /**
  39305. * Computes the maximum value of `array`. If `array` is empty or falsey,
  39306. * `undefined` is returned.
  39307. *
  39308. * @static
  39309. * @since 0.1.0
  39310. * @memberOf _
  39311. * @category Math
  39312. * @param {Array} array The array to iterate over.
  39313. * @returns {*} Returns the maximum value.
  39314. * @example
  39315. *
  39316. * _.max([4, 2, 8, 6]);
  39317. * // => 8
  39318. *
  39319. * _.max([]);
  39320. * // => undefined
  39321. */
  39322. function max(array) {
  39323. return (array && array.length)
  39324. ? baseExtremum(array, identity, baseGt)
  39325. : undefined;
  39326. }
  39327. /**
  39328. * This method is like `_.max` except that it accepts `iteratee` which is
  39329. * invoked for each element in `array` to generate the criterion by which
  39330. * the value is ranked. The iteratee is invoked with one argument: (value).
  39331. *
  39332. * @static
  39333. * @memberOf _
  39334. * @since 4.0.0
  39335. * @category Math
  39336. * @param {Array} array The array to iterate over.
  39337. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  39338. * @returns {*} Returns the maximum value.
  39339. * @example
  39340. *
  39341. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  39342. *
  39343. * _.maxBy(objects, function(o) { return o.n; });
  39344. * // => { 'n': 2 }
  39345. *
  39346. * // The `_.property` iteratee shorthand.
  39347. * _.maxBy(objects, 'n');
  39348. * // => { 'n': 2 }
  39349. */
  39350. function maxBy(array, iteratee) {
  39351. return (array && array.length)
  39352. ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
  39353. : undefined;
  39354. }
  39355. /**
  39356. * Computes the mean of the values in `array`.
  39357. *
  39358. * @static
  39359. * @memberOf _
  39360. * @since 4.0.0
  39361. * @category Math
  39362. * @param {Array} array The array to iterate over.
  39363. * @returns {number} Returns the mean.
  39364. * @example
  39365. *
  39366. * _.mean([4, 2, 8, 6]);
  39367. * // => 5
  39368. */
  39369. function mean(array) {
  39370. return baseMean(array, identity);
  39371. }
  39372. /**
  39373. * This method is like `_.mean` except that it accepts `iteratee` which is
  39374. * invoked for each element in `array` to generate the value to be averaged.
  39375. * The iteratee is invoked with one argument: (value).
  39376. *
  39377. * @static
  39378. * @memberOf _
  39379. * @since 4.7.0
  39380. * @category Math
  39381. * @param {Array} array The array to iterate over.
  39382. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  39383. * @returns {number} Returns the mean.
  39384. * @example
  39385. *
  39386. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  39387. *
  39388. * _.meanBy(objects, function(o) { return o.n; });
  39389. * // => 5
  39390. *
  39391. * // The `_.property` iteratee shorthand.
  39392. * _.meanBy(objects, 'n');
  39393. * // => 5
  39394. */
  39395. function meanBy(array, iteratee) {
  39396. return baseMean(array, getIteratee(iteratee, 2));
  39397. }
  39398. /**
  39399. * Computes the minimum value of `array`. If `array` is empty or falsey,
  39400. * `undefined` is returned.
  39401. *
  39402. * @static
  39403. * @since 0.1.0
  39404. * @memberOf _
  39405. * @category Math
  39406. * @param {Array} array The array to iterate over.
  39407. * @returns {*} Returns the minimum value.
  39408. * @example
  39409. *
  39410. * _.min([4, 2, 8, 6]);
  39411. * // => 2
  39412. *
  39413. * _.min([]);
  39414. * // => undefined
  39415. */
  39416. function min(array) {
  39417. return (array && array.length)
  39418. ? baseExtremum(array, identity, baseLt)
  39419. : undefined;
  39420. }
  39421. /**
  39422. * This method is like `_.min` except that it accepts `iteratee` which is
  39423. * invoked for each element in `array` to generate the criterion by which
  39424. * the value is ranked. The iteratee is invoked with one argument: (value).
  39425. *
  39426. * @static
  39427. * @memberOf _
  39428. * @since 4.0.0
  39429. * @category Math
  39430. * @param {Array} array The array to iterate over.
  39431. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  39432. * @returns {*} Returns the minimum value.
  39433. * @example
  39434. *
  39435. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  39436. *
  39437. * _.minBy(objects, function(o) { return o.n; });
  39438. * // => { 'n': 1 }
  39439. *
  39440. * // The `_.property` iteratee shorthand.
  39441. * _.minBy(objects, 'n');
  39442. * // => { 'n': 1 }
  39443. */
  39444. function minBy(array, iteratee) {
  39445. return (array && array.length)
  39446. ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
  39447. : undefined;
  39448. }
  39449. /**
  39450. * Multiply two numbers.
  39451. *
  39452. * @static
  39453. * @memberOf _
  39454. * @since 4.7.0
  39455. * @category Math
  39456. * @param {number} multiplier The first number in a multiplication.
  39457. * @param {number} multiplicand The second number in a multiplication.
  39458. * @returns {number} Returns the product.
  39459. * @example
  39460. *
  39461. * _.multiply(6, 4);
  39462. * // => 24
  39463. */
  39464. var multiply = createMathOperation(function(multiplier, multiplicand) {
  39465. return multiplier * multiplicand;
  39466. }, 1);
  39467. /**
  39468. * Computes `number` rounded to `precision`.
  39469. *
  39470. * @static
  39471. * @memberOf _
  39472. * @since 3.10.0
  39473. * @category Math
  39474. * @param {number} number The number to round.
  39475. * @param {number} [precision=0] The precision to round to.
  39476. * @returns {number} Returns the rounded number.
  39477. * @example
  39478. *
  39479. * _.round(4.006);
  39480. * // => 4
  39481. *
  39482. * _.round(4.006, 2);
  39483. * // => 4.01
  39484. *
  39485. * _.round(4060, -2);
  39486. * // => 4100
  39487. */
  39488. var round = createRound('round');
  39489. /**
  39490. * Subtract two numbers.
  39491. *
  39492. * @static
  39493. * @memberOf _
  39494. * @since 4.0.0
  39495. * @category Math
  39496. * @param {number} minuend The first number in a subtraction.
  39497. * @param {number} subtrahend The second number in a subtraction.
  39498. * @returns {number} Returns the difference.
  39499. * @example
  39500. *
  39501. * _.subtract(6, 4);
  39502. * // => 2
  39503. */
  39504. var subtract = createMathOperation(function(minuend, subtrahend) {
  39505. return minuend - subtrahend;
  39506. }, 0);
  39507. /**
  39508. * Computes the sum of the values in `array`.
  39509. *
  39510. * @static
  39511. * @memberOf _
  39512. * @since 3.4.0
  39513. * @category Math
  39514. * @param {Array} array The array to iterate over.
  39515. * @returns {number} Returns the sum.
  39516. * @example
  39517. *
  39518. * _.sum([4, 2, 8, 6]);
  39519. * // => 20
  39520. */
  39521. function sum(array) {
  39522. return (array && array.length)
  39523. ? baseSum(array, identity)
  39524. : 0;
  39525. }
  39526. /**
  39527. * This method is like `_.sum` except that it accepts `iteratee` which is
  39528. * invoked for each element in `array` to generate the value to be summed.
  39529. * The iteratee is invoked with one argument: (value).
  39530. *
  39531. * @static
  39532. * @memberOf _
  39533. * @since 4.0.0
  39534. * @category Math
  39535. * @param {Array} array The array to iterate over.
  39536. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  39537. * @returns {number} Returns the sum.
  39538. * @example
  39539. *
  39540. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  39541. *
  39542. * _.sumBy(objects, function(o) { return o.n; });
  39543. * // => 20
  39544. *
  39545. * // The `_.property` iteratee shorthand.
  39546. * _.sumBy(objects, 'n');
  39547. * // => 20
  39548. */
  39549. function sumBy(array, iteratee) {
  39550. return (array && array.length)
  39551. ? baseSum(array, getIteratee(iteratee, 2))
  39552. : 0;
  39553. }
  39554. /*------------------------------------------------------------------------*/
  39555. // Add methods that return wrapped values in chain sequences.
  39556. lodash.after = after;
  39557. lodash.ary = ary;
  39558. lodash.assign = assign;
  39559. lodash.assignIn = assignIn;
  39560. lodash.assignInWith = assignInWith;
  39561. lodash.assignWith = assignWith;
  39562. lodash.at = at;
  39563. lodash.before = before;
  39564. lodash.bind = bind;
  39565. lodash.bindAll = bindAll;
  39566. lodash.bindKey = bindKey;
  39567. lodash.castArray = castArray;
  39568. lodash.chain = chain;
  39569. lodash.chunk = chunk;
  39570. lodash.compact = compact;
  39571. lodash.concat = concat;
  39572. lodash.cond = cond;
  39573. lodash.conforms = conforms;
  39574. lodash.constant = constant;
  39575. lodash.countBy = countBy;
  39576. lodash.create = create;
  39577. lodash.curry = curry;
  39578. lodash.curryRight = curryRight;
  39579. lodash.debounce = debounce;
  39580. lodash.defaults = defaults;
  39581. lodash.defaultsDeep = defaultsDeep;
  39582. lodash.defer = defer;
  39583. lodash.delay = delay;
  39584. lodash.difference = difference;
  39585. lodash.differenceBy = differenceBy;
  39586. lodash.differenceWith = differenceWith;
  39587. lodash.drop = drop;
  39588. lodash.dropRight = dropRight;
  39589. lodash.dropRightWhile = dropRightWhile;
  39590. lodash.dropWhile = dropWhile;
  39591. lodash.fill = fill;
  39592. lodash.filter = filter;
  39593. lodash.flatMap = flatMap;
  39594. lodash.flatMapDeep = flatMapDeep;
  39595. lodash.flatMapDepth = flatMapDepth;
  39596. lodash.flatten = flatten;
  39597. lodash.flattenDeep = flattenDeep;
  39598. lodash.flattenDepth = flattenDepth;
  39599. lodash.flip = flip;
  39600. lodash.flow = flow;
  39601. lodash.flowRight = flowRight;
  39602. lodash.fromPairs = fromPairs;
  39603. lodash.functions = functions;
  39604. lodash.functionsIn = functionsIn;
  39605. lodash.groupBy = groupBy;
  39606. lodash.initial = initial;
  39607. lodash.intersection = intersection;
  39608. lodash.intersectionBy = intersectionBy;
  39609. lodash.intersectionWith = intersectionWith;
  39610. lodash.invert = invert;
  39611. lodash.invertBy = invertBy;
  39612. lodash.invokeMap = invokeMap;
  39613. lodash.iteratee = iteratee;
  39614. lodash.keyBy = keyBy;
  39615. lodash.keys = keys;
  39616. lodash.keysIn = keysIn;
  39617. lodash.map = map;
  39618. lodash.mapKeys = mapKeys;
  39619. lodash.mapValues = mapValues;
  39620. lodash.matches = matches;
  39621. lodash.matchesProperty = matchesProperty;
  39622. lodash.memoize = memoize;
  39623. lodash.merge = merge;
  39624. lodash.mergeWith = mergeWith;
  39625. lodash.method = method;
  39626. lodash.methodOf = methodOf;
  39627. lodash.mixin = mixin;
  39628. lodash.negate = negate;
  39629. lodash.nthArg = nthArg;
  39630. lodash.omit = omit;
  39631. lodash.omitBy = omitBy;
  39632. lodash.once = once;
  39633. lodash.orderBy = orderBy;
  39634. lodash.over = over;
  39635. lodash.overArgs = overArgs;
  39636. lodash.overEvery = overEvery;
  39637. lodash.overSome = overSome;
  39638. lodash.partial = partial;
  39639. lodash.partialRight = partialRight;
  39640. lodash.partition = partition;
  39641. lodash.pick = pick;
  39642. lodash.pickBy = pickBy;
  39643. lodash.property = property;
  39644. lodash.propertyOf = propertyOf;
  39645. lodash.pull = pull;
  39646. lodash.pullAll = pullAll;
  39647. lodash.pullAllBy = pullAllBy;
  39648. lodash.pullAllWith = pullAllWith;
  39649. lodash.pullAt = pullAt;
  39650. lodash.range = range;
  39651. lodash.rangeRight = rangeRight;
  39652. lodash.rearg = rearg;
  39653. lodash.reject = reject;
  39654. lodash.remove = remove;
  39655. lodash.rest = rest;
  39656. lodash.reverse = reverse;
  39657. lodash.sampleSize = sampleSize;
  39658. lodash.set = set;
  39659. lodash.setWith = setWith;
  39660. lodash.shuffle = shuffle;
  39661. lodash.slice = slice;
  39662. lodash.sortBy = sortBy;
  39663. lodash.sortedUniq = sortedUniq;
  39664. lodash.sortedUniqBy = sortedUniqBy;
  39665. lodash.split = split;
  39666. lodash.spread = spread;
  39667. lodash.tail = tail;
  39668. lodash.take = take;
  39669. lodash.takeRight = takeRight;
  39670. lodash.takeRightWhile = takeRightWhile;
  39671. lodash.takeWhile = takeWhile;
  39672. lodash.tap = tap;
  39673. lodash.throttle = throttle;
  39674. lodash.thru = thru;
  39675. lodash.toArray = toArray;
  39676. lodash.toPairs = toPairs;
  39677. lodash.toPairsIn = toPairsIn;
  39678. lodash.toPath = toPath;
  39679. lodash.toPlainObject = toPlainObject;
  39680. lodash.transform = transform;
  39681. lodash.unary = unary;
  39682. lodash.union = union;
  39683. lodash.unionBy = unionBy;
  39684. lodash.unionWith = unionWith;
  39685. lodash.uniq = uniq;
  39686. lodash.uniqBy = uniqBy;
  39687. lodash.uniqWith = uniqWith;
  39688. lodash.unset = unset;
  39689. lodash.unzip = unzip;
  39690. lodash.unzipWith = unzipWith;
  39691. lodash.update = update;
  39692. lodash.updateWith = updateWith;
  39693. lodash.values = values;
  39694. lodash.valuesIn = valuesIn;
  39695. lodash.without = without;
  39696. lodash.words = words;
  39697. lodash.wrap = wrap;
  39698. lodash.xor = xor;
  39699. lodash.xorBy = xorBy;
  39700. lodash.xorWith = xorWith;
  39701. lodash.zip = zip;
  39702. lodash.zipObject = zipObject;
  39703. lodash.zipObjectDeep = zipObjectDeep;
  39704. lodash.zipWith = zipWith;
  39705. // Add aliases.
  39706. lodash.entries = toPairs;
  39707. lodash.entriesIn = toPairsIn;
  39708. lodash.extend = assignIn;
  39709. lodash.extendWith = assignInWith;
  39710. // Add methods to `lodash.prototype`.
  39711. mixin(lodash, lodash);
  39712. /*------------------------------------------------------------------------*/
  39713. // Add methods that return unwrapped values in chain sequences.
  39714. lodash.add = add;
  39715. lodash.attempt = attempt;
  39716. lodash.camelCase = camelCase;
  39717. lodash.capitalize = capitalize;
  39718. lodash.ceil = ceil;
  39719. lodash.clamp = clamp;
  39720. lodash.clone = clone;
  39721. lodash.cloneDeep = cloneDeep;
  39722. lodash.cloneDeepWith = cloneDeepWith;
  39723. lodash.cloneWith = cloneWith;
  39724. lodash.conformsTo = conformsTo;
  39725. lodash.deburr = deburr;
  39726. lodash.defaultTo = defaultTo;
  39727. lodash.divide = divide;
  39728. lodash.endsWith = endsWith;
  39729. lodash.eq = eq;
  39730. lodash.escape = escape;
  39731. lodash.escapeRegExp = escapeRegExp;
  39732. lodash.every = every;
  39733. lodash.find = find;
  39734. lodash.findIndex = findIndex;
  39735. lodash.findKey = findKey;
  39736. lodash.findLast = findLast;
  39737. lodash.findLastIndex = findLastIndex;
  39738. lodash.findLastKey = findLastKey;
  39739. lodash.floor = floor;
  39740. lodash.forEach = forEach;
  39741. lodash.forEachRight = forEachRight;
  39742. lodash.forIn = forIn;
  39743. lodash.forInRight = forInRight;
  39744. lodash.forOwn = forOwn;
  39745. lodash.forOwnRight = forOwnRight;
  39746. lodash.get = get;
  39747. lodash.gt = gt;
  39748. lodash.gte = gte;
  39749. lodash.has = has;
  39750. lodash.hasIn = hasIn;
  39751. lodash.head = head;
  39752. lodash.identity = identity;
  39753. lodash.includes = includes;
  39754. lodash.indexOf = indexOf;
  39755. lodash.inRange = inRange;
  39756. lodash.invoke = invoke;
  39757. lodash.isArguments = isArguments;
  39758. lodash.isArray = isArray;
  39759. lodash.isArrayBuffer = isArrayBuffer;
  39760. lodash.isArrayLike = isArrayLike;
  39761. lodash.isArrayLikeObject = isArrayLikeObject;
  39762. lodash.isBoolean = isBoolean;
  39763. lodash.isBuffer = isBuffer;
  39764. lodash.isDate = isDate;
  39765. lodash.isElement = isElement;
  39766. lodash.isEmpty = isEmpty;
  39767. lodash.isEqual = isEqual;
  39768. lodash.isEqualWith = isEqualWith;
  39769. lodash.isError = isError;
  39770. lodash.isFinite = isFinite;
  39771. lodash.isFunction = isFunction;
  39772. lodash.isInteger = isInteger;
  39773. lodash.isLength = isLength;
  39774. lodash.isMap = isMap;
  39775. lodash.isMatch = isMatch;
  39776. lodash.isMatchWith = isMatchWith;
  39777. lodash.isNaN = isNaN;
  39778. lodash.isNative = isNative;
  39779. lodash.isNil = isNil;
  39780. lodash.isNull = isNull;
  39781. lodash.isNumber = isNumber;
  39782. lodash.isObject = isObject;
  39783. lodash.isObjectLike = isObjectLike;
  39784. lodash.isPlainObject = isPlainObject;
  39785. lodash.isRegExp = isRegExp;
  39786. lodash.isSafeInteger = isSafeInteger;
  39787. lodash.isSet = isSet;
  39788. lodash.isString = isString;
  39789. lodash.isSymbol = isSymbol;
  39790. lodash.isTypedArray = isTypedArray;
  39791. lodash.isUndefined = isUndefined;
  39792. lodash.isWeakMap = isWeakMap;
  39793. lodash.isWeakSet = isWeakSet;
  39794. lodash.join = join;
  39795. lodash.kebabCase = kebabCase;
  39796. lodash.last = last;
  39797. lodash.lastIndexOf = lastIndexOf;
  39798. lodash.lowerCase = lowerCase;
  39799. lodash.lowerFirst = lowerFirst;
  39800. lodash.lt = lt;
  39801. lodash.lte = lte;
  39802. lodash.max = max;
  39803. lodash.maxBy = maxBy;
  39804. lodash.mean = mean;
  39805. lodash.meanBy = meanBy;
  39806. lodash.min = min;
  39807. lodash.minBy = minBy;
  39808. lodash.stubArray = stubArray;
  39809. lodash.stubFalse = stubFalse;
  39810. lodash.stubObject = stubObject;
  39811. lodash.stubString = stubString;
  39812. lodash.stubTrue = stubTrue;
  39813. lodash.multiply = multiply;
  39814. lodash.nth = nth;
  39815. lodash.noConflict = noConflict;
  39816. lodash.noop = noop;
  39817. lodash.now = now;
  39818. lodash.pad = pad;
  39819. lodash.padEnd = padEnd;
  39820. lodash.padStart = padStart;
  39821. lodash.parseInt = parseInt;
  39822. lodash.random = random;
  39823. lodash.reduce = reduce;
  39824. lodash.reduceRight = reduceRight;
  39825. lodash.repeat = repeat;
  39826. lodash.replace = replace;
  39827. lodash.result = result;
  39828. lodash.round = round;
  39829. lodash.runInContext = runInContext;
  39830. lodash.sample = sample;
  39831. lodash.size = size;
  39832. lodash.snakeCase = snakeCase;
  39833. lodash.some = some;
  39834. lodash.sortedIndex = sortedIndex;
  39835. lodash.sortedIndexBy = sortedIndexBy;
  39836. lodash.sortedIndexOf = sortedIndexOf;
  39837. lodash.sortedLastIndex = sortedLastIndex;
  39838. lodash.sortedLastIndexBy = sortedLastIndexBy;
  39839. lodash.sortedLastIndexOf = sortedLastIndexOf;
  39840. lodash.startCase = startCase;
  39841. lodash.startsWith = startsWith;
  39842. lodash.subtract = subtract;
  39843. lodash.sum = sum;
  39844. lodash.sumBy = sumBy;
  39845. lodash.template = template;
  39846. lodash.times = times;
  39847. lodash.toFinite = toFinite;
  39848. lodash.toInteger = toInteger;
  39849. lodash.toLength = toLength;
  39850. lodash.toLower = toLower;
  39851. lodash.toNumber = toNumber;
  39852. lodash.toSafeInteger = toSafeInteger;
  39853. lodash.toString = toString;
  39854. lodash.toUpper = toUpper;
  39855. lodash.trim = trim;
  39856. lodash.trimEnd = trimEnd;
  39857. lodash.trimStart = trimStart;
  39858. lodash.truncate = truncate;
  39859. lodash.unescape = unescape;
  39860. lodash.uniqueId = uniqueId;
  39861. lodash.upperCase = upperCase;
  39862. lodash.upperFirst = upperFirst;
  39863. // Add aliases.
  39864. lodash.each = forEach;
  39865. lodash.eachRight = forEachRight;
  39866. lodash.first = head;
  39867. mixin(lodash, (function() {
  39868. var source = {};
  39869. baseForOwn(lodash, function(func, methodName) {
  39870. if (!hasOwnProperty.call(lodash.prototype, methodName)) {
  39871. source[methodName] = func;
  39872. }
  39873. });
  39874. return source;
  39875. }()), { 'chain': false });
  39876. /*------------------------------------------------------------------------*/
  39877. /**
  39878. * The semantic version number.
  39879. *
  39880. * @static
  39881. * @memberOf _
  39882. * @type {string}
  39883. */
  39884. lodash.VERSION = VERSION;
  39885. // Assign default placeholders.
  39886. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  39887. lodash[methodName].placeholder = lodash;
  39888. });
  39889. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  39890. arrayEach(['drop', 'take'], function(methodName, index) {
  39891. LazyWrapper.prototype[methodName] = function(n) {
  39892. n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
  39893. var result = (this.__filtered__ && !index)
  39894. ? new LazyWrapper(this)
  39895. : this.clone();
  39896. if (result.__filtered__) {
  39897. result.__takeCount__ = nativeMin(n, result.__takeCount__);
  39898. } else {
  39899. result.__views__.push({
  39900. 'size': nativeMin(n, MAX_ARRAY_LENGTH),
  39901. 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
  39902. });
  39903. }
  39904. return result;
  39905. };
  39906. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  39907. return this.reverse()[methodName](n).reverse();
  39908. };
  39909. });
  39910. // Add `LazyWrapper` methods that accept an `iteratee` value.
  39911. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  39912. var type = index + 1,
  39913. isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
  39914. LazyWrapper.prototype[methodName] = function(iteratee) {
  39915. var result = this.clone();
  39916. result.__iteratees__.push({
  39917. 'iteratee': getIteratee(iteratee, 3),
  39918. 'type': type
  39919. });
  39920. result.__filtered__ = result.__filtered__ || isFilter;
  39921. return result;
  39922. };
  39923. });
  39924. // Add `LazyWrapper` methods for `_.head` and `_.last`.
  39925. arrayEach(['head', 'last'], function(methodName, index) {
  39926. var takeName = 'take' + (index ? 'Right' : '');
  39927. LazyWrapper.prototype[methodName] = function() {
  39928. return this[takeName](1).value()[0];
  39929. };
  39930. });
  39931. // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
  39932. arrayEach(['initial', 'tail'], function(methodName, index) {
  39933. var dropName = 'drop' + (index ? '' : 'Right');
  39934. LazyWrapper.prototype[methodName] = function() {
  39935. return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
  39936. };
  39937. });
  39938. LazyWrapper.prototype.compact = function() {
  39939. return this.filter(identity);
  39940. };
  39941. LazyWrapper.prototype.find = function(predicate) {
  39942. return this.filter(predicate).head();
  39943. };
  39944. LazyWrapper.prototype.findLast = function(predicate) {
  39945. return this.reverse().find(predicate);
  39946. };
  39947. LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
  39948. if (typeof path == 'function') {
  39949. return new LazyWrapper(this);
  39950. }
  39951. return this.map(function(value) {
  39952. return baseInvoke(value, path, args);
  39953. });
  39954. });
  39955. LazyWrapper.prototype.reject = function(predicate) {
  39956. return this.filter(negate(getIteratee(predicate)));
  39957. };
  39958. LazyWrapper.prototype.slice = function(start, end) {
  39959. start = toInteger(start);
  39960. var result = this;
  39961. if (result.__filtered__ && (start > 0 || end < 0)) {
  39962. return new LazyWrapper(result);
  39963. }
  39964. if (start < 0) {
  39965. result = result.takeRight(-start);
  39966. } else if (start) {
  39967. result = result.drop(start);
  39968. }
  39969. if (end !== undefined) {
  39970. end = toInteger(end);
  39971. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  39972. }
  39973. return result;
  39974. };
  39975. LazyWrapper.prototype.takeRightWhile = function(predicate) {
  39976. return this.reverse().takeWhile(predicate).reverse();
  39977. };
  39978. LazyWrapper.prototype.toArray = function() {
  39979. return this.take(MAX_ARRAY_LENGTH);
  39980. };
  39981. // Add `LazyWrapper` methods to `lodash.prototype`.
  39982. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  39983. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
  39984. isTaker = /^(?:head|last)$/.test(methodName),
  39985. lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
  39986. retUnwrapped = isTaker || /^find/.test(methodName);
  39987. if (!lodashFunc) {
  39988. return;
  39989. }
  39990. lodash.prototype[methodName] = function() {
  39991. var value = this.__wrapped__,
  39992. args = isTaker ? [1] : arguments,
  39993. isLazy = value instanceof LazyWrapper,
  39994. iteratee = args[0],
  39995. useLazy = isLazy || isArray(value);
  39996. var interceptor = function(value) {
  39997. var result = lodashFunc.apply(lodash, arrayPush([value], args));
  39998. return (isTaker && chainAll) ? result[0] : result;
  39999. };
  40000. if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
  40001. // Avoid lazy use if the iteratee has a "length" value other than `1`.
  40002. isLazy = useLazy = false;
  40003. }
  40004. var chainAll = this.__chain__,
  40005. isHybrid = !!this.__actions__.length,
  40006. isUnwrapped = retUnwrapped && !chainAll,
  40007. onlyLazy = isLazy && !isHybrid;
  40008. if (!retUnwrapped && useLazy) {
  40009. value = onlyLazy ? value : new LazyWrapper(this);
  40010. var result = func.apply(value, args);
  40011. result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
  40012. return new LodashWrapper(result, chainAll);
  40013. }
  40014. if (isUnwrapped && onlyLazy) {
  40015. return func.apply(this, args);
  40016. }
  40017. result = this.thru(interceptor);
  40018. return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
  40019. };
  40020. });
  40021. // Add `Array` methods to `lodash.prototype`.
  40022. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  40023. var func = arrayProto[methodName],
  40024. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  40025. retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  40026. lodash.prototype[methodName] = function() {
  40027. var args = arguments;
  40028. if (retUnwrapped && !this.__chain__) {
  40029. var value = this.value();
  40030. return func.apply(isArray(value) ? value : [], args);
  40031. }
  40032. return this[chainName](function(value) {
  40033. return func.apply(isArray(value) ? value : [], args);
  40034. });
  40035. };
  40036. });
  40037. // Map minified method names to their real names.
  40038. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  40039. var lodashFunc = lodash[methodName];
  40040. if (lodashFunc) {
  40041. var key = lodashFunc.name + '';
  40042. if (!hasOwnProperty.call(realNames, key)) {
  40043. realNames[key] = [];
  40044. }
  40045. realNames[key].push({ 'name': methodName, 'func': lodashFunc });
  40046. }
  40047. });
  40048. realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
  40049. 'name': 'wrapper',
  40050. 'func': undefined
  40051. }];
  40052. // Add methods to `LazyWrapper`.
  40053. LazyWrapper.prototype.clone = lazyClone;
  40054. LazyWrapper.prototype.reverse = lazyReverse;
  40055. LazyWrapper.prototype.value = lazyValue;
  40056. // Add chain sequence methods to the `lodash` wrapper.
  40057. lodash.prototype.at = wrapperAt;
  40058. lodash.prototype.chain = wrapperChain;
  40059. lodash.prototype.commit = wrapperCommit;
  40060. lodash.prototype.next = wrapperNext;
  40061. lodash.prototype.plant = wrapperPlant;
  40062. lodash.prototype.reverse = wrapperReverse;
  40063. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  40064. // Add lazy aliases.
  40065. lodash.prototype.first = lodash.prototype.head;
  40066. if (symIterator) {
  40067. lodash.prototype[symIterator] = wrapperToIterator;
  40068. }
  40069. return lodash;
  40070. });
  40071. /*--------------------------------------------------------------------------*/
  40072. // Export lodash.
  40073. var _ = runInContext();
  40074. // Some AMD build optimizers, like r.js, check for condition patterns like:
  40075. if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
  40076. // Expose Lodash on the global object to prevent errors when Lodash is
  40077. // loaded by a script tag in the presence of an AMD loader.
  40078. // See http://requirejs.org/docs/errors.html#mismatch for more details.
  40079. // Use `_.noConflict` to remove Lodash from the global object.
  40080. root._ = _;
  40081. // Define as an anonymous module so, through path mapping, it can be
  40082. // referenced as the "underscore" module.
  40083. define(function() {
  40084. return _;
  40085. });
  40086. }
  40087. // Check for `exports` after `define` in case a build optimizer adds it.
  40088. else if (freeModule) {
  40089. // Export for Node.js.
  40090. (freeModule.exports = _)._ = _;
  40091. // Export for CommonJS support.
  40092. freeExports._ = _;
  40093. }
  40094. else {
  40095. // Export to the global object.
  40096. root._ = _;
  40097. }
  40098. }.call(this));
  40099. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  40100. /***/ }),
  40101. /***/ "./node_modules/moment-mini/locale sync recursive ^\\.\\/.*$":
  40102. /*!*******************************************************!*\
  40103. !*** ./node_modules/moment-mini/locale sync ^\.\/.*$ ***!
  40104. \*******************************************************/
  40105. /*! no static exports found */
  40106. /***/ (function(module, exports, __webpack_require__) {
  40107. var map = {
  40108. "./locale": "./node_modules/moment-mini/locale/locale.js",
  40109. "./locale.js": "./node_modules/moment-mini/locale/locale.js"
  40110. };
  40111. function webpackContext(req) {
  40112. var id = webpackContextResolve(req);
  40113. return __webpack_require__(id);
  40114. }
  40115. function webpackContextResolve(req) {
  40116. var id = map[req];
  40117. if(!(id + 1)) { // check for number or string
  40118. var e = new Error("Cannot find module '" + req + "'");
  40119. e.code = 'MODULE_NOT_FOUND';
  40120. throw e;
  40121. }
  40122. return id;
  40123. }
  40124. webpackContext.keys = function webpackContextKeys() {
  40125. return Object.keys(map);
  40126. };
  40127. webpackContext.resolve = webpackContextResolve;
  40128. module.exports = webpackContext;
  40129. webpackContext.id = "./node_modules/moment-mini/locale sync recursive ^\\.\\/.*$";
  40130. /***/ }),
  40131. /***/ "./node_modules/moment-mini/locale/locale.js":
  40132. /*!***************************************************!*\
  40133. !*** ./node_modules/moment-mini/locale/locale.js ***!
  40134. \***************************************************/
  40135. /*! no static exports found */
  40136. /***/ (function(module, exports) {
  40137. /***/ }),
  40138. /***/ "./node_modules/moment-mini/moment.min.js":
  40139. /*!************************************************!*\
  40140. !*** ./node_modules/moment-mini/moment.min.js ***!
  40141. \************************************************/
  40142. /*! no static exports found */
  40143. /***/ (function(module, exports, __webpack_require__) {
  40144. /* WEBPACK VAR INJECTION */(function(module) {!function(e,t){ true?module.exports=t():undefined}(this,function(){"use strict";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function y(e,t,n,s){return Ot(e,t,n,s,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function v(e){var t=y(NaN);return null!=e?_(g(t),e):g(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var r=c.momentProperties=[];function w(e,t){var n,s,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),0<r.length)for(n=0;n<r.length;n++)l(i=t[s=r[n]])||(e[s]=i);return e}var t=!1;function M(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,c.updateOffset(this),t=!1)}function S(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function D(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=D(t)),n}function a(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&k(e[s])!==k(t[s]))&&a++;return a+r}function Y(e){!1===c.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,r){var a=!0;return _(function(){if(null!=c.deprecationHandler&&c.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var s in e+="\n["+n+"] ",arguments[0])e+=s+": "+arguments[0][s]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}Y(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),a=!1}return r.apply(this,arguments)},r)}var s,O={};function T(e,t){null!=c.deprecationHandler&&c.deprecationHandler(e,t),O[e]||(Y(t),O[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function b(e,t){var n,s=_({},e);for(n in t)m(t,n)&&(u(e[n])&&u(t[n])?(s[n]={},_(s[n],e[n]),_(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)m(e,n)&&!m(t,n)&&u(e[n])&&(s[n]=_({},s[n]));return s}function P(e){null!=e&&this.set(e)}c.suppressDeprecationWarnings=!1,c.deprecationHandler=null,s=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};var W={};function H(e,t){var n=e.toLowerCase();W[n]=W[n+"s"]=W[t]=e}function R(e){return"string"==typeof e?W[e]||W[e.toLowerCase()]:void 0}function C(e){var t,n,s={};for(n in e)m(e,n)&&(t=R(n))&&(s[t]=e[n]);return s}var F={};function L(e,t){F[e]=t}function U(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},E={};function I(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(E[e]=i),t&&(E[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=j(t,e.localeData()),V[t]=V[t]||function(s){var e,i,t,r=s.match(N);for(e=0,i=r.length;e<i;e++)E[r[e]]?r[e]=E[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<i;t++)n+=x(r[t])?r[t].call(e,s):r[t];return n}}(t),V[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(G.lastIndex=0;0<=n&&G.test(e);)e=e.replace(G,s),G.lastIndex=0,n-=1;return e}var Z=/\d/,z=/\d\d/,$=/\d{3}/,q=/\d{4}/,J=/[+-]?\d{6}/,B=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,se=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe={};function ue(e,n,s){oe[e]=x(n)?n:function(e,t){return e&&s?s:n}}function le(e,t){return m(oe,e)?oe[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function ce(e,n){var t,s=n;for("string"==typeof e&&(e=[e]),d(n)&&(s=function(e,t){t[n]=k(e)}),t=0;t<e.length;t++)he[e[t]]=s}function fe(e,i){ce(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}var me=0,_e=1,ye=2,ge=3,pe=4,ve=5,we=6,Me=7,Se=8;function De(e){return ke(e)?366:365}function ke(e){return e%4==0&&e%100!=0||e%400==0}I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),H("year","y"),L("year",1),ue("Y",se),ue("YY",B,z),ue("YYYY",ee,q),ue("YYYYY",te,J),ue("YYYYYY",te,J),ce(["YYYYY","YYYYYY"],me),ce("YYYY",function(e,t){t[me]=2===e.length?c.parseTwoDigitYear(e):k(e)}),ce("YY",function(e,t){t[me]=c.parseTwoDigitYear(e)}),ce("Y",function(e,t){t[me]=parseInt(e,10)}),c.parseTwoDigitYear=function(e){return k(e)+(68<k(e)?1900:2e3)};var Ye,Oe=Te("FullYear",!0);function Te(t,n){return function(e){return null!=e?(be(this,t,e),c.updateOffset(this,n),this):xe(this,t)}}function xe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function be(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ke(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?ke(e)?29:28:31-s%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),H("month","M"),L("month",8),ue("M",B),ue("MM",B,z),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),ce(["M","MM"],function(e,t){t[_e]=k(e)-1}),ce(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[_e]=i:g(n).invalidMonth=e});var We=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(Ce(this,e),c.updateOffset(this,!0),this):xe(this,"Month")}var Le=ae;var Ue=ae;function Ne(){function e(e,t){return t.length-e.length}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++)n=y([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)s[t]=de(s[t]),i[t]=de(i[t]);for(t=0;t<24;t++)r[t]=de(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ge(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ve(e,t,n){var s=7+t-n;return-((7+Ge(e,0,s).getUTCDay()-t)%7)+s-1}function Ee(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ve(e,s,i);return o<=0?a=De(r=e-1)+o:o>De(e)?(r=e+1,a=o-De(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(De(e)-s+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),L("week",5),L("isoWeek",5),ue("w",B),ue("ww",B,z),ue("W",B),ue("WW",B,z),fe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=k(e)});I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ue("d",B),ue("e",B),ue("E",B),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,s){t[s]=k(e)});var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var $e=ae;var qe=ae;var Je=ae;function Be(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=de(o[t]),u[t]=de(u[t]),l[t]=de(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Xe(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Qe.apply(this)+U(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Qe.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),H("hour","h"),L("hour",13),ue("a",Ke),ue("A",Ke),ue("H",B),ue("h",B),ue("k",B),ue("HH",B,z),ue("hh",B,z),ue("kk",B,z),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),ce(["H","HH"],ge),ce(["k","kk"],function(e,t,n){var s=k(e);t[ge]=24===s?0:s}),ce(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce(["h","hh"],function(e,t,n){t[ge]=k(e),g(n).bigHour=!0}),ce("hmm",function(e,t,n){var s=e.length-2;t[ge]=k(e.substr(0,s)),t[pe]=k(e.substr(s)),g(n).bigHour=!0}),ce("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=k(e.substr(0,s)),t[pe]=k(e.substr(s,2)),t[ve]=k(e.substr(i)),g(n).bigHour=!0}),ce("Hmm",function(e,t,n){var s=e.length-2;t[ge]=k(e.substr(0,s)),t[pe]=k(e.substr(s))}),ce("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=k(e.substr(0,s)),t[pe]=k(e.substr(s,2)),t[ve]=k(e.substr(i))});var et,tt=Te("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:Re,week:{dow:0,doy:6},weekdays:je,weekdaysMin:ze,weekdaysShort:Ze,meridiemParse:/[ap]\.?m?\.?/i},st={},it={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!st[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,__webpack_require__("./node_modules/moment-mini/locale sync recursive ^\\.\\/.*$")("./"+e),ot(t)}catch(e){}return st[e]}function ot(e,t){var n;return e&&((n=l(t)?lt(e):ut(e,t))?et=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function ut(e,t){if(null!==t){var n,s=nt;if(t.abbr=e,null!=st[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])s=st[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;s=n._config}return st[e]=new P(b(s,t)),it[e]&&it[e].forEach(function(e){ut(e.name,e.config)}),ot(e),st[e]}return delete st[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!o(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=rt(e[r]).split("-")).length,n=(n=rt(e[r+1]))?n.split("-"):null;0<t;){if(s=at(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--}r++}return et}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11<n[_e]?_e:n[ye]<1||n[ye]>Pe(n[me],n[_e])?ye:n[ge]<0||24<n[ge]||24===n[ge]&&(0!==n[pe]||0!==n[ve]||0!==n[we])?ge:n[pe]<0||59<n[pe]?pe:n[ve]<0||59<n[ve]?ve:n[we]<0||999<n[we]?we:-1,g(e)._overflowDayOfYear&&(t<me||ye<t)&&(t=ye),g(e)._overflowWeeks&&-1===t&&(t=Me),g(e)._overflowWeekday&&-1===t&&(t=Se),g(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,s,i,r,a=[];if(!e._d){var o,u;for(o=e,u=new Date(c.now()),s=o._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[ye]&&null==e._a[_e]&&function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ht(t.GG,e._a[me],Ie(Tt(),1,4).year),s=ht(t.W,1),((i=ht(t.E,1))<1||7<i)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ie(Tt(),r,a);n=ht(t.gg,e._a[me],l.year),s=ht(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(u=!0)):i=r}s<1||s>Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ht(e._a[me],s[me]),(e._dayOfYear>De(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[pe]&&0===e._a[ve]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o=new Date(e,t,n,s,i,r,a);return e<100&&0<=e&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,s,i,r,a,o=e._i,u=ft.exec(o)||mt.exec(o);if(u){for(g(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(u[1])){i=yt[t][0],s=!1!==yt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(u[3])){r=(u[2]||" ")+gt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!_t.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),kt(e)}else e._isValid=!1}var wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Mt(e,t,n,s,i,r){var a=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(e),Re.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,s,i=wt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(i){var r=Mt(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],n=r,s=e,t&&Ze.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(g(s).weekdayMismatch=!0,!(s._isValid=!1)))return;e._a=r,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i}(i[8],i[9],i[10]),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==c.ISO_8601)if(e._f!==c.RFC_2822){e._a=[],g(e).empty=!0;var t,n,s,i,r,a,o,u,l=""+e._i,d=l.length,h=0;for(s=j(e._f,e._locale).match(N)||[],t=0;t<s.length;t++)i=s[t],(n=(l.match(le(i,e))||[])[0])&&(0<(r=l.substr(0,l.indexOf(n))).length&&g(e).unusedInput.push(r),l=l.slice(l.indexOf(n)+n.length),h+=n.length),E[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),a=i,u=e,null!=(o=n)&&m(he,a)&&he[a](o,u._a,u,a)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=d-h,0<l.length&&g(e).unusedInput.push(l),e._a[ge]<=12&&!0===g(e).bigHour&&0<e._a[ge]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ge]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0)),t)}(e._locale,e._a[ge],e._meridiem),ct(e),dt(e)}else Dt(e);else vt(e)}function Yt(e){var t,n,s,i,r=e._i,a=e._f;return e._locale=e._locale||lt(e._l),null===r||void 0===a&&""===r?v({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),S(r)?new M(dt(r)):(h(r)?e._d=r:o(a)?function(e){var t,n,s,i,r;if(0===e._f.length)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),p(t)&&(r+=g(t).charsLeftOver,r+=10*g(t).unusedTokens.length,g(t).score=r,(null==s||r<s)&&(s=r,n=t));_(e,n||t)}(e):a?kt(e):l(n=(t=e)._i)?t._d=new Date(c.now()):h(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(s=t,null===(i=pt.exec(s._i))?(vt(s),!1===s._isValid&&(delete s._isValid,Dt(s),!1===s._isValid&&(delete s._isValid,c.createFromInputFallback(s)))):s._d=new Date(+i[1])):o(n)?(t._a=f(n.slice(0),function(e){return parseInt(e,10)}),ct(t)):u(n)?function(e){if(!e._d){var t=C(e._i);e._a=f([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}(t):d(n)?t._d=new Date(n):c.createFromInputFallback(t),p(e)||(e._d=null),e))}function Ot(e,t,n,s,i){var r,a={};return!0!==n&&!1!==n||(s=n,n=void 0),(u(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=s,(r=new M(dt(Yt(a))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Tt(e,t,n,s){return Ot(e,t,n,s,!1)}c.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),c.ISO_8601=function(){},c.RFC_2822=function(){};var xt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),bt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:v()});function Pt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ht(e){var t=C(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ye.call(Wt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,s=0;s<Wt.length;++s)if(e[Wt[s]]){if(n)return!1;parseFloat(e[Wt[s]])!==k(e[Wt[s]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=lt(),this._bubble()}function Rt(e){return e instanceof Ht}function Ct(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){I(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+U(~~(e/60),2)+n+U(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ue("Z",re),ue("ZZ",re),ce(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(re,e)});var Lt=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var s=((n[n.length-1]||[])+"").match(Lt)||["-",0,0],i=60*s[1]+k(s[2]);return 0===i?0:"+"===s[0]?i:-i}function Nt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(S(e)||h(e)?e.valueOf():Tt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),c.updateOffset(n,!1),n):Tt(e).local()}function Gt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Vt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}c.updateOffset=function(){};var Et=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,It=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function At(e,t){var n,s,i,r=e,a=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:d(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=Et.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:k(a[ye])*n,h:k(a[ge])*n,m:k(a[pe])*n,s:k(a[ve])*n,ms:k(Ct(1e3*a[we]))*n}):(a=It.exec(e))?(n="-"===a[1]?-1:(a[1],1),r={y:jt(a[2],n),M:jt(a[3],n),w:jt(a[4],n),d:jt(a[5],n),h:jt(a[6],n),m:jt(a[7],n),s:jt(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Nt(t,e),e.isBefore(t)?n=Zt(e,t):((n=Zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Tt(r.from),Tt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new Ht(r),Rt(e)&&m(e,"_locale")&&(s._locale=e._locale),s}function jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(T(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),$t(this,At(e="string"==typeof e?+e:e,t),s),this}}function $t(e,t,n,s){var i=t._milliseconds,r=Ct(t._days),a=Ct(t._months);e.isValid()&&(s=null==s||s,a&&Ce(e,xe(e,"Month")+a*n),r&&be(e,"Date",xe(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&c.updateOffset(e,r||a))}At.fn=Ht.prototype,At.invalid=function(){return At(NaN)};var qt=zt(1,"add"),Jt=zt(-1,"subtract");function Bt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(n+1,"months")-s)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xt=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Kt(){return this._locale}function en(e,t){I(0,[e,e.length],0,t)}function tn(e,t,n,s,i){var r;return null==e?Ie(this,s,i).year:((r=Ae(e,s,i))<t&&(t=r),function(e,t,n,s,i){var r=Ee(e,t,n,s,i),a=Ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ue("G",se),ue("g",se),ue("GG",B,z),ue("gg",B,z),ue("GGGG",ee,q),ue("gggg",ee,q),ue("GGGGG",te,J),ue("ggggg",te,J),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=k(e)}),fe(["gg","GG"],function(e,t,n,s){t[s]=c.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),H("quarter","Q"),L("quarter",7),ue("Q",Z),ce("Q",function(e,t){t[_e]=3*(k(e)-1)}),I("D",["DD",2],"Do","date"),H("date","D"),L("date",9),ue("D",B),ue("DD",B,z),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ce(["D","DD"],ye),ce("Do",function(e,t){t[ye]=k(e.match(B)[0])});var nn=Te("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),L("dayOfYear",4),ue("DDD",K),ue("DDDD",$),ce(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),I("m",["mm",2],0,"minute"),H("minute","m"),L("minute",14),ue("m",B),ue("mm",B,z),ce(["m","mm"],pe);var sn=Te("Minutes",!1);I("s",["ss",2],0,"second"),H("second","s"),L("second",15),ue("s",B),ue("ss",B,z),ce(["s","ss"],ve);var rn,an=Te("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),H("millisecond","ms"),L("millisecond",16),ue("S",K,Z),ue("SS",K,z),ue("SSS",K,$),rn="SSSS";rn.length<=9;rn+="S")ue(rn,ne);function on(e,t){t[we]=k(1e3*("0."+e))}for(rn="S";rn.length<=9;rn+="S")ce(rn,on);var un=Te("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ln=M.prototype;function dn(e){return e}ln.add=qt,ln.calendar=function(e,t){var n=e||Tt(),s=Nt(n,this).startOf("day"),i=c.calendarFormat(this,s)||"sameElse",r=t&&(x(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,Tt(n)))},ln.clone=function(){return new M(this)},ln.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Nt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=R(t)){case"year":r=Bt(this,s)/12;break;case"month":r=Bt(this,s);break;case"quarter":r=Bt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:D(r)},ln.endOf=function(e){return void 0===(e=R(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},ln.format=function(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Tt(e).isValid())?At({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(Tt(),e)},ln.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Tt(e).isValid())?At({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(Tt(),e)},ln.get=function(e){return x(this[e=R(e)])?this[e]():this},ln.invalidAt=function(){return g(this).overflow},ln.isAfter=function(e,t){var n=S(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(l(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},ln.isBefore=function(e,t){var n=S(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(l(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},ln.isBetween=function(e,t,n,s){return("("===(s=s||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n))},ln.isSame=function(e,t){var n,s=S(e)?e:Tt(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=R(t||"millisecond"))?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},ln.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ln.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ln.isValid=function(){return p(this)},ln.lang=Xt,ln.locale=Qt,ln.localeData=Kt,ln.max=bt,ln.min=xt,ln.parsingFlags=function(){return _({},g(this))},ln.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:F[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=C(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(x(this[e=R(e)]))return this[e](t);return this},ln.startOf=function(e){switch(e=R(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},ln.subtract=Jt,ln.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ln.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ln.toDate=function(){return new Date(this.valueOf())},ln.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+s+"-MM-DD[T]HH:mm:ss.SSS"+i)},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=Oe,ln.isLeapYear=function(){return ke(this.year())},ln.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=Fe,ln.daysInMonth=function(){return Pe(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Ae(this.year(),1,4)},ln.date=nn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(n=e,s=this.localeData(),"string"==typeof n?s.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?t:t-7)}return this.day()||7;var n,s},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=tt,ln.minute=ln.minutes=sn,ln.second=ln.seconds=an,ln.millisecond=ln.milliseconds=un,ln.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(re,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Gt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?$t(this,At(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Gt(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=Vt,ln.isUTC=Vt,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=n("dates accessor is deprecated. Use date instead.",nn),ln.months=n("months accessor is deprecated. Use month instead",Fe),ln.years=n("years accessor is deprecated. Use year instead",Oe),ln.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ln.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Yt(e))._a){var t=e._isUTC?y(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=P.prototype;function cn(e,t,n,s){var i=lt(),r=y().set(s,t);return i[n](r,e)}function fn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=cn(e,s,n,"month");return i}function mn(e,t,n,s){"boolean"==typeof e?d(t)&&(n=t,t=void 0):(t=e,e=!1,d(n=t)&&(n=t,t=void 0)),t=t||"";var i,r=lt(),a=e?r._week.dow:0;if(null!=n)return cn(t,(n+a)%7,s,"day");var o=[];for(i=0;i<7;i++)o[i]=cn(t,(i+a)%7,s,"day");return o}hn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return x(s)?s.call(t,n):s},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=dn,hn.postformat=dn,hn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return x(i)?i(e,t,n,s):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)x(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=y([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=y([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},hn.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ie(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=y([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=y([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),c.lang=n("moment.lang is deprecated. Use moment.locale instead.",ot),c.langData=n("moment.langData is deprecated. Use moment.localeData instead.",lt);var _n=Math.abs;function yn(e,t,n,s){var i=At(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function pn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var Mn=wn("ms"),Sn=wn("s"),Dn=wn("m"),kn=wn("h"),Yn=wn("d"),On=wn("w"),Tn=wn("M"),xn=wn("y");function bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pn=bn("milliseconds"),Wn=bn("seconds"),Hn=bn("minutes"),Rn=bn("hours"),Cn=bn("days"),Fn=bn("months"),Ln=bn("years");var Un=Math.round,Nn={ss:44,s:45,m:45,h:22,d:26,M:11};var Gn=Math.abs;function Vn(e){return(0<e)-(e<0)||+e}function En(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Gn(this._milliseconds)/1e3,s=Gn(this._days),i=Gn(this._months);t=D((e=D(n/60))/60),n%=60,e%=60;var r=D(i/12),a=i%=12,o=s,u=t,l=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var c=h<0?"-":"",f=Vn(this._months)!==Vn(h)?"-":"",m=Vn(this._days)!==Vn(h)?"-":"",_=Vn(this._milliseconds)!==Vn(h)?"-":"";return c+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||d?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(d?_+d+"S":"")}var In=Ht.prototype;return In.isValid=function(){return this._isValid},In.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},In.add=function(e,t){return yn(this,e,t,1)},In.subtract=function(e,t){return yn(this,e,t,-1)},In.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=R(e))||"year"===e)return t=this._days+s/864e5,n=this._months+pn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},In.asMilliseconds=Mn,In.asSeconds=Sn,In.asMinutes=Dn,In.asHours=kn,In.asDays=Yn,In.asWeeks=On,In.asMonths=Tn,In.asYears=xn,In.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},In._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=r&&0<=a&&0<=o||r<=0&&a<=0&&o<=0||(r+=864e5*gn(vn(o)+a),o=a=0),u.milliseconds=r%1e3,e=D(r/1e3),u.seconds=e%60,t=D(e/60),u.minutes=t%60,n=D(t/60),u.hours=n%24,o+=i=D(pn(a+=D(n/24))),a-=gn(vn(i)),s=D(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},In.clone=function(){return At(this)},In.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},In.milliseconds=Pn,In.seconds=Wn,In.minutes=Hn,In.hours=Rn,In.days=Cn,In.weeks=function(){return D(this.days()/7)},In.months=Fn,In.years=Ln,In.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,d,h,c=this.localeData(),f=(n=!e,s=c,i=At(t=this).abs(),r=Un(i.as("s")),a=Un(i.as("m")),o=Un(i.as("h")),u=Un(i.as("d")),l=Un(i.as("M")),d=Un(i.as("y")),(h=r<=Nn.ss&&["s",r]||r<Nn.s&&["ss",r]||a<=1&&["m"]||a<Nn.m&&["mm",a]||o<=1&&["h"]||o<Nn.h&&["hh",o]||u<=1&&["d"]||u<Nn.d&&["dd",u]||l<=1&&["M"]||l<Nn.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=n,h[3]=0<+t,h[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,h));return e&&(f=c.pastFuture(+this,f)),c.postformat(f)},In.toISOString=En,In.toString=En,In.toJSON=En,In.locale=Qt,In.localeData=Kt,In.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),In.lang=Xt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ue("x",se),ue("X",/[+-]?\d+(\.\d{1,3})?/),ce("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ce("x",function(e,t,n){n._d=new Date(k(e))}),c.version="2.22.1",e=Tt,c.fn=ln,c.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},c.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},c.now=function(){return Date.now?Date.now():+new Date},c.utc=y,c.unix=function(e){return Tt(1e3*e)},c.months=function(e,t){return fn(e,t,"months")},c.isDate=h,c.locale=ot,c.invalid=v,c.duration=At,c.isMoment=S,c.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},c.parseZone=function(){return Tt.apply(null,arguments).parseZone()},c.localeData=lt,c.isDuration=Rt,c.monthsShort=function(e,t){return fn(e,t,"monthsShort")},c.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},c.defineLocale=ut,c.updateLocale=function(e,t){if(null!=t){var n,s,i=nt;null!=(s=at(e))&&(i=s._config),(n=new P(t=b(i,t))).parentLocale=st[e],st[e]=n,ot(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},c.locales=function(){return s(st)},c.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},c.normalizeUnits=R,c.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},c.relativeTimeThreshold=function(e,t){return void 0!==Nn[e]&&(void 0===t?Nn[e]:(Nn[e]=t,"s"===e&&(Nn.ss=t-1),!0))},c.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},c.prototype=ln,c.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},c});
  40145. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  40146. /***/ }),
  40147. /***/ "./node_modules/node-libs-browser/mock/empty.js":
  40148. /*!******************************************************!*\
  40149. !*** ./node_modules/node-libs-browser/mock/empty.js ***!
  40150. \******************************************************/
  40151. /*! no static exports found */
  40152. /***/ (function(module, exports) {
  40153. /***/ }),
  40154. /***/ "./node_modules/path-browserify/index.js":
  40155. /*!***********************************************!*\
  40156. !*** ./node_modules/path-browserify/index.js ***!
  40157. \***********************************************/
  40158. /*! no static exports found */
  40159. /***/ (function(module, exports, __webpack_require__) {
  40160. /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.
  40161. //
  40162. // Permission is hereby granted, free of charge, to any person obtaining a
  40163. // copy of this software and associated documentation files (the
  40164. // "Software"), to deal in the Software without restriction, including
  40165. // without limitation the rights to use, copy, modify, merge, publish,
  40166. // distribute, sublicense, and/or sell copies of the Software, and to permit
  40167. // persons to whom the Software is furnished to do so, subject to the
  40168. // following conditions:
  40169. //
  40170. // The above copyright notice and this permission notice shall be included
  40171. // in all copies or substantial portions of the Software.
  40172. //
  40173. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  40174. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  40175. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  40176. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  40177. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  40178. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  40179. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  40180. // resolves . and .. elements in a path array with directory names there
  40181. // must be no slashes, empty elements, or device names (c:\) in the array
  40182. // (so also no leading and trailing slashes - it does not distinguish
  40183. // relative and absolute paths)
  40184. function normalizeArray(parts, allowAboveRoot) {
  40185. // if the path tries to go above the root, `up` ends up > 0
  40186. var up = 0;
  40187. for (var i = parts.length - 1; i >= 0; i--) {
  40188. var last = parts[i];
  40189. if (last === '.') {
  40190. parts.splice(i, 1);
  40191. } else if (last === '..') {
  40192. parts.splice(i, 1);
  40193. up++;
  40194. } else if (up) {
  40195. parts.splice(i, 1);
  40196. up--;
  40197. }
  40198. }
  40199. // if the path is allowed to go above the root, restore leading ..s
  40200. if (allowAboveRoot) {
  40201. for (; up--; up) {
  40202. parts.unshift('..');
  40203. }
  40204. }
  40205. return parts;
  40206. }
  40207. // Split a filename into [root, dir, basename, ext], unix version
  40208. // 'root' is just a slash, or nothing.
  40209. var splitPathRe =
  40210. /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  40211. var splitPath = function(filename) {
  40212. return splitPathRe.exec(filename).slice(1);
  40213. };
  40214. // path.resolve([from ...], to)
  40215. // posix version
  40216. exports.resolve = function() {
  40217. var resolvedPath = '',
  40218. resolvedAbsolute = false;
  40219. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  40220. var path = (i >= 0) ? arguments[i] : process.cwd();
  40221. // Skip empty and invalid entries
  40222. if (typeof path !== 'string') {
  40223. throw new TypeError('Arguments to path.resolve must be strings');
  40224. } else if (!path) {
  40225. continue;
  40226. }
  40227. resolvedPath = path + '/' + resolvedPath;
  40228. resolvedAbsolute = path.charAt(0) === '/';
  40229. }
  40230. // At this point the path should be resolved to a full absolute path, but
  40231. // handle relative paths to be safe (might happen when process.cwd() fails)
  40232. // Normalize the path
  40233. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  40234. return !!p;
  40235. }), !resolvedAbsolute).join('/');
  40236. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  40237. };
  40238. // path.normalize(path)
  40239. // posix version
  40240. exports.normalize = function(path) {
  40241. var isAbsolute = exports.isAbsolute(path),
  40242. trailingSlash = substr(path, -1) === '/';
  40243. // Normalize the path
  40244. path = normalizeArray(filter(path.split('/'), function(p) {
  40245. return !!p;
  40246. }), !isAbsolute).join('/');
  40247. if (!path && !isAbsolute) {
  40248. path = '.';
  40249. }
  40250. if (path && trailingSlash) {
  40251. path += '/';
  40252. }
  40253. return (isAbsolute ? '/' : '') + path;
  40254. };
  40255. // posix version
  40256. exports.isAbsolute = function(path) {
  40257. return path.charAt(0) === '/';
  40258. };
  40259. // posix version
  40260. exports.join = function() {
  40261. var paths = Array.prototype.slice.call(arguments, 0);
  40262. return exports.normalize(filter(paths, function(p, index) {
  40263. if (typeof p !== 'string') {
  40264. throw new TypeError('Arguments to path.join must be strings');
  40265. }
  40266. return p;
  40267. }).join('/'));
  40268. };
  40269. // path.relative(from, to)
  40270. // posix version
  40271. exports.relative = function(from, to) {
  40272. from = exports.resolve(from).substr(1);
  40273. to = exports.resolve(to).substr(1);
  40274. function trim(arr) {
  40275. var start = 0;
  40276. for (; start < arr.length; start++) {
  40277. if (arr[start] !== '') break;
  40278. }
  40279. var end = arr.length - 1;
  40280. for (; end >= 0; end--) {
  40281. if (arr[end] !== '') break;
  40282. }
  40283. if (start > end) return [];
  40284. return arr.slice(start, end - start + 1);
  40285. }
  40286. var fromParts = trim(from.split('/'));
  40287. var toParts = trim(to.split('/'));
  40288. var length = Math.min(fromParts.length, toParts.length);
  40289. var samePartsLength = length;
  40290. for (var i = 0; i < length; i++) {
  40291. if (fromParts[i] !== toParts[i]) {
  40292. samePartsLength = i;
  40293. break;
  40294. }
  40295. }
  40296. var outputParts = [];
  40297. for (var i = samePartsLength; i < fromParts.length; i++) {
  40298. outputParts.push('..');
  40299. }
  40300. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  40301. return outputParts.join('/');
  40302. };
  40303. exports.sep = '/';
  40304. exports.delimiter = ':';
  40305. exports.dirname = function(path) {
  40306. var result = splitPath(path),
  40307. root = result[0],
  40308. dir = result[1];
  40309. if (!root && !dir) {
  40310. // No dirname whatsoever
  40311. return '.';
  40312. }
  40313. if (dir) {
  40314. // It has a dirname, strip trailing slash
  40315. dir = dir.substr(0, dir.length - 1);
  40316. }
  40317. return root + dir;
  40318. };
  40319. exports.basename = function(path, ext) {
  40320. var f = splitPath(path)[2];
  40321. // TODO: make this comparison case-insensitive on windows?
  40322. if (ext && f.substr(-1 * ext.length) === ext) {
  40323. f = f.substr(0, f.length - ext.length);
  40324. }
  40325. return f;
  40326. };
  40327. exports.extname = function(path) {
  40328. return splitPath(path)[3];
  40329. };
  40330. function filter (xs, f) {
  40331. if (xs.filter) return xs.filter(f);
  40332. var res = [];
  40333. for (var i = 0; i < xs.length; i++) {
  40334. if (f(xs[i], i, xs)) res.push(xs[i]);
  40335. }
  40336. return res;
  40337. }
  40338. // String.prototype.substr - negative index don't work in IE8
  40339. var substr = 'ab'.substr(-1) === 'b'
  40340. ? function (str, start, len) { return str.substr(start, len) }
  40341. : function (str, start, len) {
  40342. if (start < 0) start = str.length + start;
  40343. return str.substr(start, len);
  40344. }
  40345. ;
  40346. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ "./node_modules/process/browser.js")))
  40347. /***/ }),
  40348. /***/ "./node_modules/process/browser.js":
  40349. /*!*****************************************!*\
  40350. !*** ./node_modules/process/browser.js ***!
  40351. \*****************************************/
  40352. /*! no static exports found */
  40353. /***/ (function(module, exports) {
  40354. // shim for using process in browser
  40355. var process = module.exports = {};
  40356. // cached from whatever global is present so that test runners that stub it
  40357. // don't break things. But we need to wrap it in a try catch in case it is
  40358. // wrapped in strict mode code which doesn't define any globals. It's inside a
  40359. // function because try/catches deoptimize in certain engines.
  40360. var cachedSetTimeout;
  40361. var cachedClearTimeout;
  40362. function defaultSetTimout() {
  40363. throw new Error('setTimeout has not been defined');
  40364. }
  40365. function defaultClearTimeout () {
  40366. throw new Error('clearTimeout has not been defined');
  40367. }
  40368. (function () {
  40369. try {
  40370. if (typeof setTimeout === 'function') {
  40371. cachedSetTimeout = setTimeout;
  40372. } else {
  40373. cachedSetTimeout = defaultSetTimout;
  40374. }
  40375. } catch (e) {
  40376. cachedSetTimeout = defaultSetTimout;
  40377. }
  40378. try {
  40379. if (typeof clearTimeout === 'function') {
  40380. cachedClearTimeout = clearTimeout;
  40381. } else {
  40382. cachedClearTimeout = defaultClearTimeout;
  40383. }
  40384. } catch (e) {
  40385. cachedClearTimeout = defaultClearTimeout;
  40386. }
  40387. } ())
  40388. function runTimeout(fun) {
  40389. if (cachedSetTimeout === setTimeout) {
  40390. //normal enviroments in sane situations
  40391. return setTimeout(fun, 0);
  40392. }
  40393. // if setTimeout wasn't available but was latter defined
  40394. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  40395. cachedSetTimeout = setTimeout;
  40396. return setTimeout(fun, 0);
  40397. }
  40398. try {
  40399. // when when somebody has screwed with setTimeout but no I.E. maddness
  40400. return cachedSetTimeout(fun, 0);
  40401. } catch(e){
  40402. try {
  40403. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  40404. return cachedSetTimeout.call(null, fun, 0);
  40405. } catch(e){
  40406. // 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
  40407. return cachedSetTimeout.call(this, fun, 0);
  40408. }
  40409. }
  40410. }
  40411. function runClearTimeout(marker) {
  40412. if (cachedClearTimeout === clearTimeout) {
  40413. //normal enviroments in sane situations
  40414. return clearTimeout(marker);
  40415. }
  40416. // if clearTimeout wasn't available but was latter defined
  40417. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  40418. cachedClearTimeout = clearTimeout;
  40419. return clearTimeout(marker);
  40420. }
  40421. try {
  40422. // when when somebody has screwed with setTimeout but no I.E. maddness
  40423. return cachedClearTimeout(marker);
  40424. } catch (e){
  40425. try {
  40426. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  40427. return cachedClearTimeout.call(null, marker);
  40428. } catch (e){
  40429. // 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.
  40430. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  40431. return cachedClearTimeout.call(this, marker);
  40432. }
  40433. }
  40434. }
  40435. var queue = [];
  40436. var draining = false;
  40437. var currentQueue;
  40438. var queueIndex = -1;
  40439. function cleanUpNextTick() {
  40440. if (!draining || !currentQueue) {
  40441. return;
  40442. }
  40443. draining = false;
  40444. if (currentQueue.length) {
  40445. queue = currentQueue.concat(queue);
  40446. } else {
  40447. queueIndex = -1;
  40448. }
  40449. if (queue.length) {
  40450. drainQueue();
  40451. }
  40452. }
  40453. function drainQueue() {
  40454. if (draining) {
  40455. return;
  40456. }
  40457. var timeout = runTimeout(cleanUpNextTick);
  40458. draining = true;
  40459. var len = queue.length;
  40460. while(len) {
  40461. currentQueue = queue;
  40462. queue = [];
  40463. while (++queueIndex < len) {
  40464. if (currentQueue) {
  40465. currentQueue[queueIndex].run();
  40466. }
  40467. }
  40468. queueIndex = -1;
  40469. len = queue.length;
  40470. }
  40471. currentQueue = null;
  40472. draining = false;
  40473. runClearTimeout(timeout);
  40474. }
  40475. process.nextTick = function (fun) {
  40476. var args = new Array(arguments.length - 1);
  40477. if (arguments.length > 1) {
  40478. for (var i = 1; i < arguments.length; i++) {
  40479. args[i - 1] = arguments[i];
  40480. }
  40481. }
  40482. queue.push(new Item(fun, args));
  40483. if (queue.length === 1 && !draining) {
  40484. runTimeout(drainQueue);
  40485. }
  40486. };
  40487. // v8 likes predictible objects
  40488. function Item(fun, array) {
  40489. this.fun = fun;
  40490. this.array = array;
  40491. }
  40492. Item.prototype.run = function () {
  40493. this.fun.apply(null, this.array);
  40494. };
  40495. process.title = 'browser';
  40496. process.browser = true;
  40497. process.env = {};
  40498. process.argv = [];
  40499. process.version = ''; // empty string to avoid regexp issues
  40500. process.versions = {};
  40501. function noop() {}
  40502. process.on = noop;
  40503. process.addListener = noop;
  40504. process.once = noop;
  40505. process.off = noop;
  40506. process.removeListener = noop;
  40507. process.removeAllListeners = noop;
  40508. process.emit = noop;
  40509. process.prependListener = noop;
  40510. process.prependOnceListener = noop;
  40511. process.listeners = function (name) { return [] }
  40512. process.binding = function (name) {
  40513. throw new Error('process.binding is not supported');
  40514. };
  40515. process.cwd = function () { return '/' };
  40516. process.chdir = function (dir) {
  40517. throw new Error('process.chdir is not supported');
  40518. };
  40519. process.umask = function() { return 0; };
  40520. /***/ }),
  40521. /***/ "./node_modules/scope-css/index.js":
  40522. /*!*****************************************!*\
  40523. !*** ./node_modules/scope-css/index.js ***!
  40524. \*****************************************/
  40525. /*! no static exports found */
  40526. /***/ (function(module, exports, __webpack_require__) {
  40527. "use strict";
  40528. var slugify = __webpack_require__(/*! slugify */ "./node_modules/slugify/index.js")
  40529. var escaper = __webpack_require__(/*! escaper */ "./node_modules/escaper/dist/escaper.js")
  40530. var stripComments = __webpack_require__(/*! strip-css-comments */ "./node_modules/strip-css-comments/index.js")
  40531. module.exports = scope
  40532. scope.replace = replace
  40533. function scope (css, parent, o) {
  40534. if (!css) return css
  40535. if (!parent) return css
  40536. if (typeof o === 'string') o = {keyframes: o}
  40537. if (!o) o = {keyframes: false}
  40538. css = replace(css, parent + ' $1$2')
  40539. //regexp.escape
  40540. var parentRe = parent.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
  40541. //replace self-selectors
  40542. css = css.replace(new RegExp('(' + parentRe + ')\\s*\\1(?=[\\s\\r\\n,{])', 'g'), '$1')
  40543. //replace `:host` with parent
  40544. css = css.replace(new RegExp('(' + parentRe + ')\\s*:host', 'g'), '$1')
  40545. //revoke wrongly replaced @ statements, like @supports, @import, @media etc.
  40546. css = css.replace(new RegExp('(' + parentRe + ')\\s*@', 'g'), '@')
  40547. //revoke wrongly replaced :root blocks
  40548. css = css.replace(new RegExp('(' + parentRe + ')\\s*:root', 'g'), ':root')
  40549. //animations: prefix animation anmes
  40550. var animations = [],
  40551. animationNameRe = /@keyframes\s+([a-zA-Z0-9_-]+)\s*{/g,
  40552. match
  40553. while ((match = animationNameRe.exec(css)) !== null) {
  40554. if (animations.indexOf(match[1]) < 0)
  40555. animations.push(match[1])
  40556. }
  40557. var slug = slugify(parent)
  40558. animations.forEach(function (name) {
  40559. var newName = (o.keyframes === true ? slug + '-' : typeof o.keyframes === 'string' ? o.keyframes : '') + name
  40560. css = css.replace(new RegExp('(@keyframes\\s+)' + name + '(\\s*{)', 'g'),
  40561. '$1' + newName + '$2')
  40562. css = css.replace(new RegExp('(animation(?:-name)?\\s*:[^;]*\\s*)' + name + '([\\s;}])', 'g'),
  40563. '$1' + newName + '$2')
  40564. })
  40565. //animation: revoke wrongly replaced keyframes
  40566. css = css.replace(new RegExp('(' + parentRe + ' )(\\s*(?:to|from|[+-]?(?:(?:\\.\\d+)|(?:\\d+(?:\\.\\d*)?))%))(?=[\\s\\r\\n,{])', 'g'), '$2')
  40567. return css
  40568. }
  40569. function replace (css, replacer) {
  40570. var arr = []
  40571. css = stripComments(css)
  40572. // escape strings etc.
  40573. css = escaper.replace(css, true, arr)
  40574. css = css.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, replacer)
  40575. // insert comments, strings etc. back
  40576. css = escaper.paste(css, arr)
  40577. return css
  40578. }
  40579. /***/ }),
  40580. /***/ "./node_modules/slugify/index.js":
  40581. /*!***************************************!*\
  40582. !*** ./node_modules/slugify/index.js ***!
  40583. \***************************************/
  40584. /*! no static exports found */
  40585. /***/ (function(module, exports, __webpack_require__) {
  40586. ;(function (name, root, factory) {
  40587. if (true) {
  40588. module.exports = factory()
  40589. module.exports['default'] = factory()
  40590. }
  40591. /* istanbul ignore next */
  40592. else {}
  40593. }('slugify', this, function () {
  40594. /* eslint-disable */
  40595. var charMap = JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","џ":"dz","Ґ":"G","ґ":"g","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\\"","”":"\\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}')
  40596. /* eslint-enable */
  40597. function replace (string, options) {
  40598. if (typeof string !== 'string') {
  40599. throw new Error('slugify: string argument expected')
  40600. }
  40601. options = (typeof options === 'string')
  40602. ? {replacement: options}
  40603. : options || {}
  40604. var slug = string.split('')
  40605. .reduce(function (result, ch) {
  40606. return result + (charMap[ch] || ch)
  40607. // allowed
  40608. .replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]/g, '')
  40609. }, '')
  40610. // trim leading/trailing spaces
  40611. .trim()
  40612. // convert spaces
  40613. .replace(/[-\s]+/g, options.replacement || '-')
  40614. return options.lower ? slug.toLowerCase() : slug
  40615. }
  40616. replace.extend = function (customMap) {
  40617. for (var key in customMap) {
  40618. charMap[key] = customMap[key]
  40619. }
  40620. }
  40621. return replace
  40622. }))
  40623. /***/ }),
  40624. /***/ "./node_modules/strip-css-comments/index.js":
  40625. /*!**************************************************!*\
  40626. !*** ./node_modules/strip-css-comments/index.js ***!
  40627. \**************************************************/
  40628. /*! no static exports found */
  40629. /***/ (function(module, exports, __webpack_require__) {
  40630. "use strict";
  40631. var isRegExp = __webpack_require__(/*! is-regexp */ "./node_modules/is-regexp/index.js");
  40632. module.exports = function (str, opts) {
  40633. str = str.toString();
  40634. opts = opts || {};
  40635. var preserveFilter;
  40636. var comment = '';
  40637. var currentChar = '';
  40638. var insideString = false;
  40639. var preserveImportant = !(opts.preserve === false || opts.all === true);
  40640. var ret = '';
  40641. if (typeof opts.preserve === 'function') {
  40642. preserveImportant = false;
  40643. preserveFilter = opts.preserve;
  40644. } else if (isRegExp(opts.preserve)) {
  40645. preserveImportant = false;
  40646. preserveFilter = function (comment) {
  40647. return opts.preserve.test(comment);
  40648. };
  40649. }
  40650. for (var i = 0; i < str.length; i++) {
  40651. currentChar = str[i];
  40652. if (str[i - 1] !== '\\') {
  40653. if (currentChar === '"' || currentChar === '\'') {
  40654. if (insideString === currentChar) {
  40655. insideString = false;
  40656. } else if (!insideString) {
  40657. insideString = currentChar;
  40658. }
  40659. }
  40660. }
  40661. // find beginning of /* type comment
  40662. if (!insideString && currentChar === '/' && str[i + 1] === '*') {
  40663. // ignore important comment when configured to preserve comments using important syntax: /*!
  40664. if (!(preserveImportant && str[i + 2] === '!')) {
  40665. var j = i + 2;
  40666. // iterate over comment
  40667. for (; j < str.length; j++) {
  40668. // find end of comment
  40669. if (str[j] === '*' && str[j + 1] === '/') {
  40670. if (preserveFilter) {
  40671. // evaluate comment text
  40672. ret = preserveFilter(comment) ? ret + ('/*' + comment + '*/') : ret;
  40673. comment = '';
  40674. }
  40675. break;
  40676. }
  40677. // store comment text to be evaluated by the filter when the end of the comment is reached
  40678. if (preserveFilter) {
  40679. comment += str[j];
  40680. }
  40681. }
  40682. // resume iteration over CSS string from the end of the comment
  40683. i = j + 1;
  40684. continue;
  40685. }
  40686. }
  40687. ret += currentChar;
  40688. }
  40689. return ret;
  40690. };
  40691. /***/ }),
  40692. /***/ "./node_modules/webpack/buildin/global.js":
  40693. /*!***********************************!*\
  40694. !*** (webpack)/buildin/global.js ***!
  40695. \***********************************/
  40696. /*! no static exports found */
  40697. /***/ (function(module, exports) {
  40698. var g;
  40699. // This works in non-strict mode
  40700. g = (function() {
  40701. return this;
  40702. })();
  40703. try {
  40704. // This works if eval is allowed (see CSP)
  40705. g = g || new Function("return this")();
  40706. } catch (e) {
  40707. // This works if the window reference is available
  40708. if (typeof window === "object") g = window;
  40709. }
  40710. // g can still be undefined, but nothing to do about it...
  40711. // We return undefined, instead of nothing here, so it's
  40712. // easier to handle this case. if(!global) { ...}
  40713. module.exports = g;
  40714. /***/ }),
  40715. /***/ "./node_modules/webpack/buildin/module.js":
  40716. /*!***********************************!*\
  40717. !*** (webpack)/buildin/module.js ***!
  40718. \***********************************/
  40719. /*! no static exports found */
  40720. /***/ (function(module, exports) {
  40721. module.exports = function(module) {
  40722. if (!module.webpackPolyfill) {
  40723. module.deprecate = function() {};
  40724. module.paths = [];
  40725. // module.parent = undefined by default
  40726. if (!module.children) module.children = [];
  40727. Object.defineProperty(module, "loaded", {
  40728. enumerable: true,
  40729. get: function() {
  40730. return module.l;
  40731. }
  40732. });
  40733. Object.defineProperty(module, "id", {
  40734. enumerable: true,
  40735. get: function() {
  40736. return module.i;
  40737. }
  40738. });
  40739. module.webpackPolyfill = 1;
  40740. }
  40741. return module;
  40742. };
  40743. /***/ }),
  40744. /***/ "./package.json":
  40745. /*!**********************!*\
  40746. !*** ./package.json ***!
  40747. \**********************/
  40748. /*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, default */
  40749. /***/ (function(module) {
  40750. module.exports = {"name":"mermaid","version":"8.2.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build":"webpack --progress --colors","postbuild":"documentation build src/mermaidAPI.js --shallow -f md --markdown-toc false -o docs/mermaidAPI.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build -p --config webpack.config.prod.babel.js","lint":"standard","e2e":"yarn lint && jest e2e --config e2e/jest.config.js","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"yarn lint && webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn release && yarn test","prepush":"yarn test"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre-d3-renderer":"^0.5.8","dagre-layout":"^0.8.8","documentation":"^12.0.1","graphlibrary":"^2.2.0","he":"^1.2.0","lodash":"^4.17.11","minify":"^4.1.1","moment-mini":"^2.22.1","scope-css":"^1.2.1"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","@babel/register":"^7.0.0","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^23.6.0","jest-environment-puppeteer":"^4.2.0","jest-image-snapshot":"^2.8.2","jest-puppeteer":"^4.2.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.11.0","puppeteer":"^1.17.0","sass-loader":"^7.1.0","standard":"^12.0.1","webpack":"^4.27.1","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]}};
  40751. /***/ }),
  40752. /***/ "./src/config.js":
  40753. /*!***********************!*\
  40754. !*** ./src/config.js ***!
  40755. \***********************/
  40756. /*! exports provided: setConfig, getConfig */
  40757. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40758. "use strict";
  40759. __webpack_require__.r(__webpack_exports__);
  40760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConfig", function() { return setConfig; });
  40761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfig", function() { return getConfig; });
  40762. let config = {};
  40763. const setConf = function (cnf) {
  40764. // Top level initially mermaid, gflow, sequenceDiagram and gantt
  40765. const lvl1Keys = Object.keys(cnf);
  40766. for (let i = 0; i < lvl1Keys.length; i++) {
  40767. if (typeof cnf[lvl1Keys[i]] === 'object' && cnf[lvl1Keys[i]] != null) {
  40768. const lvl2Keys = Object.keys(cnf[lvl1Keys[i]]);
  40769. for (let j = 0; j < lvl2Keys.length; j++) {
  40770. // logger.debug('Setting conf ', lvl1Keys[i], '-', lvl2Keys[j])
  40771. if (typeof config[lvl1Keys[i]] === 'undefined') {
  40772. config[lvl1Keys[i]] = {};
  40773. } // logger.debug('Setting config: ' + lvl1Keys[i] + ' ' + lvl2Keys[j] + ' to ' + cnf[lvl1Keys[i]][lvl2Keys[j]])
  40774. config[lvl1Keys[i]][lvl2Keys[j]] = cnf[lvl1Keys[i]][lvl2Keys[j]];
  40775. }
  40776. } else {
  40777. config[lvl1Keys[i]] = cnf[lvl1Keys[i]];
  40778. }
  40779. }
  40780. };
  40781. const setConfig = conf => {
  40782. setConf(conf);
  40783. };
  40784. const getConfig = () => config;
  40785. /***/ }),
  40786. /***/ "./src/diagrams/class/classDb.js":
  40787. /*!***************************************!*\
  40788. !*** ./src/diagrams/class/classDb.js ***!
  40789. \***************************************/
  40790. /*! exports provided: addClass, clear, getClass, getClasses, getRelations, addRelation, addMember, addMembers, cleanupLabel, lineType, relationType, default */
  40791. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40792. "use strict";
  40793. __webpack_require__.r(__webpack_exports__);
  40794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
  40795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  40796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClass", function() { return getClass; });
  40797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  40798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRelations", function() { return getRelations; });
  40799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addRelation", function() { return addRelation; });
  40800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMember", function() { return addMember; });
  40801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMembers", function() { return addMembers; });
  40802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanupLabel", function() { return cleanupLabel; });
  40803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineType", function() { return lineType; });
  40804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relationType", function() { return relationType; });
  40805. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  40806. let relations = [];
  40807. let classes = {};
  40808. /**
  40809. * Function called by parser when a node definition has been found.
  40810. * @param id
  40811. * @param text
  40812. * @param type
  40813. * @param style
  40814. */
  40815. const addClass = function (id) {
  40816. if (typeof classes[id] === 'undefined') {
  40817. classes[id] = {
  40818. id: id,
  40819. methods: [],
  40820. members: []
  40821. };
  40822. }
  40823. };
  40824. const clear = function () {
  40825. relations = [];
  40826. classes = {};
  40827. };
  40828. const getClass = function (id) {
  40829. return classes[id];
  40830. };
  40831. const getClasses = function () {
  40832. return classes;
  40833. };
  40834. const getRelations = function () {
  40835. return relations;
  40836. };
  40837. const addRelation = function (relation) {
  40838. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Adding relation: ' + JSON.stringify(relation));
  40839. addClass(relation.id1);
  40840. addClass(relation.id2);
  40841. relations.push(relation);
  40842. };
  40843. const addMember = function (className, member) {
  40844. const theClass = classes[className];
  40845. if (typeof member === 'string') {
  40846. if (member.substr(-1) === ')') {
  40847. theClass.methods.push(member);
  40848. } else {
  40849. theClass.members.push(member);
  40850. }
  40851. }
  40852. };
  40853. const addMembers = function (className, MembersArr) {
  40854. if (Array.isArray(MembersArr)) {
  40855. MembersArr.forEach(member => addMember(className, member));
  40856. }
  40857. };
  40858. const cleanupLabel = function (label) {
  40859. if (label.substring(0, 1) === ':') {
  40860. return label.substr(2).trim();
  40861. } else {
  40862. return label.trim();
  40863. }
  40864. };
  40865. const lineType = {
  40866. LINE: 0,
  40867. DOTTED_LINE: 1
  40868. };
  40869. const relationType = {
  40870. AGGREGATION: 0,
  40871. EXTENSION: 1,
  40872. COMPOSITION: 2,
  40873. DEPENDENCY: 3
  40874. };
  40875. /* harmony default export */ __webpack_exports__["default"] = ({
  40876. addClass,
  40877. clear,
  40878. getClass,
  40879. getClasses,
  40880. getRelations,
  40881. addRelation,
  40882. addMember,
  40883. addMembers,
  40884. cleanupLabel,
  40885. lineType,
  40886. relationType
  40887. });
  40888. /***/ }),
  40889. /***/ "./src/diagrams/class/classRenderer.js":
  40890. /*!*********************************************!*\
  40891. !*** ./src/diagrams/class/classRenderer.js ***!
  40892. \*********************************************/
  40893. /*! exports provided: setConf, draw, default */
  40894. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40895. "use strict";
  40896. __webpack_require__.r(__webpack_exports__);
  40897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  40898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  40899. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  40900. /* harmony import */ var dagre_layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre-layout */ "./node_modules/dagre-layout/dist/dagre-layout.core.js");
  40901. /* harmony import */ var dagre_layout__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre_layout__WEBPACK_IMPORTED_MODULE_1__);
  40902. /* harmony import */ var graphlibrary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! graphlibrary */ "./node_modules/graphlibrary/index.js");
  40903. /* harmony import */ var graphlibrary__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(graphlibrary__WEBPACK_IMPORTED_MODULE_2__);
  40904. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  40905. /* harmony import */ var _classDb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./classDb */ "./src/diagrams/class/classDb.js");
  40906. /* harmony import */ var _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison");
  40907. /* harmony import */ var _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__);
  40908. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].yy = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"];
  40909. const idCache = {};
  40910. let classCnt = 0;
  40911. const conf = {
  40912. dividerMargin: 10,
  40913. padding: 5,
  40914. textHeight: 10 // Todo optimize
  40915. };
  40916. const getGraphId = function (label) {
  40917. const keys = Object.keys(idCache);
  40918. for (let i = 0; i < keys.length; i++) {
  40919. if (idCache[keys[i]].label === label) {
  40920. return keys[i];
  40921. }
  40922. }
  40923. return undefined;
  40924. };
  40925. /**
  40926. * Setup arrow head and define the marker. The result is appended to the svg.
  40927. */
  40928. const insertMarkers = function (elem) {
  40929. elem.append('defs').append('marker').attr('id', 'extensionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');
  40930. elem.append('defs').append('marker').attr('id', 'extensionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead
  40931. elem.append('defs').append('marker').attr('id', 'compositionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
  40932. elem.append('defs').append('marker').attr('id', 'compositionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
  40933. elem.append('defs').append('marker').attr('id', 'aggregationStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
  40934. elem.append('defs').append('marker').attr('id', 'aggregationEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
  40935. elem.append('defs').append('marker').attr('id', 'dependencyStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');
  40936. elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');
  40937. };
  40938. let edgeCount = 0;
  40939. let total = 0;
  40940. const drawEdge = function (elem, path, relation) {
  40941. const getRelationType = function (type) {
  40942. switch (type) {
  40943. case _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].relationType.AGGREGATION:
  40944. return 'aggregation';
  40945. case _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].relationType.EXTENSION:
  40946. return 'extension';
  40947. case _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].relationType.COMPOSITION:
  40948. return 'composition';
  40949. case _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].relationType.DEPENDENCY:
  40950. return 'dependency';
  40951. }
  40952. };
  40953. path.points = path.points.filter(p => !Number.isNaN(p.y)); // The data for our line
  40954. const lineData = path.points; // This is the accessor function we talked about above
  40955. const lineFunction = d3__WEBPACK_IMPORTED_MODULE_0__["line"]().x(function (d) {
  40956. return d.x;
  40957. }).y(function (d) {
  40958. return d.y;
  40959. }).curve(d3__WEBPACK_IMPORTED_MODULE_0__["curveBasis"]);
  40960. const svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'relation');
  40961. let url = '';
  40962. if (conf.arrowMarkerAbsolute) {
  40963. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  40964. url = url.replace(/\(/g, '\\(');
  40965. url = url.replace(/\)/g, '\\)');
  40966. }
  40967. if (relation.relation.type1 !== 'none') {
  40968. svgPath.attr('marker-start', 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')');
  40969. }
  40970. if (relation.relation.type2 !== 'none') {
  40971. svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')');
  40972. }
  40973. let x, y;
  40974. const l = path.points.length;
  40975. if (l % 2 !== 0 && l > 1) {
  40976. const p1 = path.points[Math.floor(l / 2)];
  40977. const p2 = path.points[Math.ceil(l / 2)];
  40978. x = (p1.x + p2.x) / 2;
  40979. y = (p1.y + p2.y) / 2;
  40980. } else {
  40981. const p = path.points[Math.floor(l / 2)];
  40982. x = p.x;
  40983. y = p.y;
  40984. }
  40985. if (typeof relation.title !== 'undefined') {
  40986. const g = elem.append('g').attr('class', 'classLabel');
  40987. const label = g.append('text').attr('class', 'label').attr('x', x).attr('y', y).attr('fill', 'red').attr('text-anchor', 'middle').text(relation.title);
  40988. window.label = label;
  40989. const bounds = label.node().getBBox();
  40990. g.insert('rect', ':first-child').attr('class', 'box').attr('x', bounds.x - conf.padding / 2).attr('y', bounds.y - conf.padding / 2).attr('width', bounds.width + conf.padding).attr('height', bounds.height + conf.padding);
  40991. }
  40992. edgeCount++;
  40993. };
  40994. const drawClass = function (elem, classDef) {
  40995. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Rendering class ' + classDef);
  40996. const addTspan = function (textEl, txt, isFirst) {
  40997. const tSpan = textEl.append('tspan').attr('x', conf.padding).text(txt);
  40998. if (!isFirst) {
  40999. tSpan.attr('dy', conf.textHeight);
  41000. }
  41001. };
  41002. const id = 'classId' + classCnt % total;
  41003. const classInfo = {
  41004. id: id,
  41005. label: classDef.id,
  41006. width: 0,
  41007. height: 0
  41008. };
  41009. const g = elem.append('g').attr('id', id).attr('class', 'classGroup');
  41010. const title = g.append('text').attr('x', conf.padding).attr('y', conf.textHeight + conf.padding).text(classDef.id);
  41011. const titleHeight = title.node().getBBox().height;
  41012. const membersLine = g.append('line') // text label for the x axis
  41013. .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2).attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);
  41014. const members = g.append('text') // text label for the x axis
  41015. .attr('x', conf.padding).attr('y', titleHeight + conf.dividerMargin + conf.textHeight).attr('fill', 'white').attr('class', 'classText');
  41016. let isFirst = true;
  41017. classDef.members.forEach(function (member) {
  41018. addTspan(members, member, isFirst);
  41019. isFirst = false;
  41020. });
  41021. const membersBox = members.node().getBBox();
  41022. const methodsLine = g.append('line') // text label for the x axis
  41023. .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height).attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);
  41024. const methods = g.append('text') // text label for the x axis
  41025. .attr('x', conf.padding).attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight).attr('fill', 'white').attr('class', 'classText');
  41026. isFirst = true;
  41027. classDef.methods.forEach(function (method) {
  41028. addTspan(methods, method, isFirst);
  41029. isFirst = false;
  41030. });
  41031. const classBox = g.node().getBBox();
  41032. g.insert('rect', ':first-child').attr('x', 0).attr('y', 0).attr('width', classBox.width + 2 * conf.padding).attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);
  41033. membersLine.attr('x2', classBox.width + 2 * conf.padding);
  41034. methodsLine.attr('x2', classBox.width + 2 * conf.padding);
  41035. classInfo.width = classBox.width + 2 * conf.padding;
  41036. classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;
  41037. idCache[id] = classInfo;
  41038. classCnt++;
  41039. return classInfo;
  41040. };
  41041. const setConf = function (cnf) {
  41042. const keys = Object.keys(cnf);
  41043. keys.forEach(function (key) {
  41044. conf[key] = cnf[key];
  41045. });
  41046. };
  41047. /**
  41048. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  41049. * @param text
  41050. * @param id
  41051. */
  41052. const draw = function (text, id) {
  41053. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].yy.clear();
  41054. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].parse(text);
  41055. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Rendering diagram ' + text); /// / Fetch the default direction, use TD if none was found
  41056. const diagram = d3__WEBPACK_IMPORTED_MODULE_0__["select"](`[id='${id}']`);
  41057. insertMarkers(diagram); // Layout graph, Create a new directed graph
  41058. const g = new graphlibrary__WEBPACK_IMPORTED_MODULE_2___default.a.Graph({
  41059. multigraph: true
  41060. }); // Set an object for the graph label
  41061. g.setGraph({
  41062. isMultiGraph: true
  41063. }); // Default to assigning a new object as a label for each new edge.
  41064. g.setDefaultEdgeLabel(function () {
  41065. return {};
  41066. });
  41067. const classes = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getClasses();
  41068. const keys = Object.keys(classes);
  41069. total = keys.length;
  41070. for (let i = 0; i < keys.length; i++) {
  41071. const classDef = classes[keys[i]];
  41072. const node = drawClass(diagram, classDef); // Add nodes to the graph. The first argument is the node id. The second is
  41073. // metadata about the node. In this case we're going to add labels to each of
  41074. // our nodes.
  41075. g.setNode(node.id, node);
  41076. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Org height: ' + node.height);
  41077. }
  41078. const relations = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getRelations();
  41079. relations.forEach(function (relation) {
  41080. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation));
  41081. g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {
  41082. relation: relation
  41083. });
  41084. });
  41085. dagre_layout__WEBPACK_IMPORTED_MODULE_1___default.a.layout(g);
  41086. g.nodes().forEach(function (v) {
  41087. if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {
  41088. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));
  41089. d3__WEBPACK_IMPORTED_MODULE_0__["select"]('#' + v).attr('transform', 'translate(' + (g.node(v).x - g.node(v).width / 2) + ',' + (g.node(v).y - g.node(v).height / 2) + ' )');
  41090. }
  41091. });
  41092. g.edges().forEach(function (e) {
  41093. if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {
  41094. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));
  41095. drawEdge(diagram, g.edge(e), g.edge(e).relation);
  41096. }
  41097. });
  41098. diagram.attr('height', '100%');
  41099. diagram.attr('width', '100%');
  41100. diagram.attr('viewBox', '0 0 ' + (g.graph().width + 20) + ' ' + (g.graph().height + 20));
  41101. };
  41102. /* harmony default export */ __webpack_exports__["default"] = ({
  41103. setConf,
  41104. draw
  41105. });
  41106. /***/ }),
  41107. /***/ "./src/diagrams/class/parser/classDiagram.jison":
  41108. /*!******************************************************!*\
  41109. !*** ./src/diagrams/class/parser/classDiagram.jison ***!
  41110. \******************************************************/
  41111. /*! no static exports found */
  41112. /***/ (function(module, exports, __webpack_require__) {
  41113. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  41114. /*
  41115. Returns a Parser object of the following structure:
  41116. Parser: {
  41117. yy: {}
  41118. }
  41119. Parser.prototype: {
  41120. yy: {},
  41121. trace: function(),
  41122. symbols_: {associative list: name ==> number},
  41123. terminals_: {associative list: number ==> name},
  41124. productions_: [...],
  41125. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  41126. table: [...],
  41127. defaultActions: {...},
  41128. parseError: function(str, hash),
  41129. parse: function(input),
  41130. lexer: {
  41131. EOF: 1,
  41132. parseError: function(str, hash),
  41133. setInput: function(input),
  41134. input: function(),
  41135. unput: function(str),
  41136. more: function(),
  41137. less: function(n),
  41138. pastInput: function(),
  41139. upcomingInput: function(),
  41140. showPosition: function(),
  41141. test_match: function(regex_match_array, rule_index),
  41142. next: function(),
  41143. lex: function(),
  41144. begin: function(condition),
  41145. popState: function(),
  41146. _currentRules: function(),
  41147. topState: function(),
  41148. pushState: function(condition),
  41149. options: {
  41150. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  41151. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  41152. backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
  41153. },
  41154. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  41155. rules: [...],
  41156. conditions: {associative list: name ==> set},
  41157. }
  41158. }
  41159. token location info (@$, _$, etc.): {
  41160. first_line: n,
  41161. last_line: n,
  41162. first_column: n,
  41163. last_column: n,
  41164. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  41165. }
  41166. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  41167. text: (matched text)
  41168. token: (the produced terminal token, if any)
  41169. line: (yylineno)
  41170. }
  41171. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  41172. loc: (yylloc)
  41173. expected: (string describing the set of expected tokens)
  41174. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  41175. }
  41176. */
  41177. var parser = (function(){
  41178. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,11],$V1=[1,12],$V2=[1,13],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[6,8],$V7=[1,26],$V8=[1,27],$V9=[1,28],$Va=[1,29],$Vb=[1,30],$Vc=[1,31],$Vd=[6,8,13,17,23,26,27,28,29,30,31],$Ve=[6,8,13,17,23,26,27,28,29,30,31,45,46,47],$Vf=[23,45,46,47],$Vg=[23,30,31,45,46,47],$Vh=[23,26,27,28,29,45,46,47],$Vi=[6,8,13],$Vj=[1,46];
  41179. var parser = {trace: function trace () { },
  41180. yy: {},
  41181. symbols_: {"error":2,"mermaidDoc":3,"graphConfig":4,"CLASS_DIAGRAM":5,"NEWLINE":6,"statements":7,"EOF":8,"statement":9,"className":10,"alphaNumToken":11,"relationStatement":12,"LABEL":13,"classStatement":14,"methodStatement":15,"CLASS":16,"STRUCT_START":17,"members":18,"STRUCT_STOP":19,"MEMBER":20,"SEPARATOR":21,"relation":22,"STR":23,"relationType":24,"lineType":25,"AGGREGATION":26,"EXTENSION":27,"COMPOSITION":28,"DEPENDENCY":29,"LINE":30,"DOTTED_LINE":31,"commentToken":32,"textToken":33,"graphCodeTokens":34,"textNoTagsToken":35,"TAGSTART":36,"TAGEND":37,"==":38,"--":39,"PCT":40,"DEFAULT":41,"SPACE":42,"MINUS":43,"keywords":44,"UNICODE_TEXT":45,"NUM":46,"ALPHA":47,"$accept":0,"$end":1},
  41182. terminals_: {2:"error",5:"CLASS_DIAGRAM",6:"NEWLINE",8:"EOF",13:"LABEL",16:"CLASS",17:"STRUCT_START",19:"STRUCT_STOP",20:"MEMBER",21:"SEPARATOR",23:"STR",26:"AGGREGATION",27:"EXTENSION",28:"COMPOSITION",29:"DEPENDENCY",30:"LINE",31:"DOTTED_LINE",34:"graphCodeTokens",36:"TAGSTART",37:"TAGEND",38:"==",39:"--",40:"PCT",41:"DEFAULT",42:"SPACE",43:"MINUS",44:"keywords",45:"UNICODE_TEXT",46:"NUM",47:"ALPHA"},
  41183. productions_: [0,[3,1],[4,4],[7,1],[7,2],[7,3],[10,2],[10,1],[9,1],[9,2],[9,1],[9,1],[14,2],[14,5],[18,1],[18,2],[15,1],[15,2],[15,1],[15,1],[12,3],[12,4],[12,4],[12,5],[22,3],[22,2],[22,2],[22,1],[24,1],[24,1],[24,1],[24,1],[25,1],[25,1],[32,1],[32,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[35,1],[35,1],[35,1],[35,1],[11,1],[11,1],[11,1]],
  41184. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  41185. /* this == yyval */
  41186. var $0 = $$.length - 1;
  41187. switch (yystate) {
  41188. case 6:
  41189. this.$=$$[$0-1]+$$[$0];
  41190. break;
  41191. case 7:
  41192. this.$=$$[$0];
  41193. break;
  41194. case 8:
  41195. yy.addRelation($$[$0]);
  41196. break;
  41197. case 9:
  41198. $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]);
  41199. break;
  41200. case 12:
  41201. yy.addClass($$[$0]);
  41202. break;
  41203. case 13:
  41204. /*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);
  41205. break;
  41206. case 14:
  41207. this.$ = [$$[$0]];
  41208. break;
  41209. case 15:
  41210. $$[$0].push($$[$0-1]);this.$=$$[$0];
  41211. break;
  41212. case 16:
  41213. /*console.log('Rel found',$$[$0]);*/
  41214. break;
  41215. case 17:
  41216. yy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));
  41217. break;
  41218. case 18:
  41219. console.warn('Member',$$[$0]);
  41220. break;
  41221. case 19:
  41222. /*console.log('sep found',$$[$0]);*/
  41223. break;
  41224. case 20:
  41225. this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'};
  41226. break;
  41227. case 21:
  41228. this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}
  41229. break;
  41230. case 22:
  41231. this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]};
  41232. break;
  41233. case 23:
  41234. this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]}
  41235. break;
  41236. case 24:
  41237. this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]};
  41238. break;
  41239. case 25:
  41240. this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]};
  41241. break;
  41242. case 26:
  41243. this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]};
  41244. break;
  41245. case 27:
  41246. this.$={type1:'none',type2:'none',lineType:$$[$0]};
  41247. break;
  41248. case 28:
  41249. this.$=yy.relationType.AGGREGATION;
  41250. break;
  41251. case 29:
  41252. this.$=yy.relationType.EXTENSION;
  41253. break;
  41254. case 30:
  41255. this.$=yy.relationType.COMPOSITION;
  41256. break;
  41257. case 31:
  41258. this.$=yy.relationType.DEPENDENCY;
  41259. break;
  41260. case 32:
  41261. this.$=yy.lineType.LINE;
  41262. break;
  41263. case 33:
  41264. this.$=yy.lineType.DOTTED_LINE;
  41265. break;
  41266. }
  41267. },
  41268. table: [{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:10,11:14,12:7,14:8,15:9,16:$V0,20:$V1,21:$V2,45:$V3,46:$V4,47:$V5},{8:[1,18]},{6:[1,19],8:[2,3]},o($V6,[2,8],{13:[1,20]}),o($V6,[2,10]),o($V6,[2,11]),o($V6,[2,16],{22:21,24:24,25:25,13:[1,23],23:[1,22],26:$V7,27:$V8,28:$V9,29:$Va,30:$Vb,31:$Vc}),{10:32,11:14,45:$V3,46:$V4,47:$V5},o($V6,[2,18]),o($V6,[2,19]),o($Vd,[2,7],{11:14,10:33,45:$V3,46:$V4,47:$V5}),o($Ve,[2,47]),o($Ve,[2,48]),o($Ve,[2,49]),{1:[2,2]},{7:34,8:[2,4],9:6,10:10,11:14,12:7,14:8,15:9,16:$V0,20:$V1,21:$V2,45:$V3,46:$V4,47:$V5},o($V6,[2,9]),{10:35,11:14,23:[1,36],45:$V3,46:$V4,47:$V5},{22:37,24:24,25:25,26:$V7,27:$V8,28:$V9,29:$Va,30:$Vb,31:$Vc},o($V6,[2,17]),{25:38,30:$Vb,31:$Vc},o($Vf,[2,27],{24:39,26:$V7,27:$V8,28:$V9,29:$Va}),o($Vg,[2,28]),o($Vg,[2,29]),o($Vg,[2,30]),o($Vg,[2,31]),o($Vh,[2,32]),o($Vh,[2,33]),o($V6,[2,12],{17:[1,40]}),o($Vd,[2,6]),{8:[2,5]},o($Vi,[2,20]),{10:41,11:14,45:$V3,46:$V4,47:$V5},{10:42,11:14,23:[1,43],45:$V3,46:$V4,47:$V5},o($Vf,[2,26],{24:44,26:$V7,27:$V8,28:$V9,29:$Va}),o($Vf,[2,25]),{18:45,20:$Vj},o($Vi,[2,22]),o($Vi,[2,21]),{10:47,11:14,45:$V3,46:$V4,47:$V5},o($Vf,[2,24]),{19:[1,48]},{18:49,19:[2,14],20:$Vj},o($Vi,[2,23]),o($V6,[2,13]),{19:[2,15]}],
  41269. defaultActions: {2:[2,1],18:[2,2],34:[2,5],49:[2,15]},
  41270. parseError: function parseError (str, hash) {
  41271. if (hash.recoverable) {
  41272. this.trace(str);
  41273. } else {
  41274. var error = new Error(str);
  41275. error.hash = hash;
  41276. throw error;
  41277. }
  41278. },
  41279. parse: function parse(input) {
  41280. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  41281. var args = lstack.slice.call(arguments, 1);
  41282. var lexer = Object.create(this.lexer);
  41283. var sharedState = { yy: {} };
  41284. for (var k in this.yy) {
  41285. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  41286. sharedState.yy[k] = this.yy[k];
  41287. }
  41288. }
  41289. lexer.setInput(input, sharedState.yy);
  41290. sharedState.yy.lexer = lexer;
  41291. sharedState.yy.parser = this;
  41292. if (typeof lexer.yylloc == 'undefined') {
  41293. lexer.yylloc = {};
  41294. }
  41295. var yyloc = lexer.yylloc;
  41296. lstack.push(yyloc);
  41297. var ranges = lexer.options && lexer.options.ranges;
  41298. if (typeof sharedState.yy.parseError === 'function') {
  41299. this.parseError = sharedState.yy.parseError;
  41300. } else {
  41301. this.parseError = Object.getPrototypeOf(this).parseError;
  41302. }
  41303. function popStack(n) {
  41304. stack.length = stack.length - 2 * n;
  41305. vstack.length = vstack.length - n;
  41306. lstack.length = lstack.length - n;
  41307. }
  41308. function lex() {
  41309. var token;
  41310. token = tstack.pop() || lexer.lex() || EOF;
  41311. if (typeof token !== 'number') {
  41312. if (token instanceof Array) {
  41313. tstack = token;
  41314. token = tstack.pop();
  41315. }
  41316. token = self.symbols_[token] || token;
  41317. }
  41318. return token;
  41319. }
  41320. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  41321. while (true) {
  41322. state = stack[stack.length - 1];
  41323. if (this.defaultActions[state]) {
  41324. action = this.defaultActions[state];
  41325. } else {
  41326. if (symbol === null || typeof symbol == 'undefined') {
  41327. symbol = lex();
  41328. }
  41329. action = table[state] && table[state][symbol];
  41330. }
  41331. if (typeof action === 'undefined' || !action.length || !action[0]) {
  41332. var errStr = '';
  41333. expected = [];
  41334. for (p in table[state]) {
  41335. if (this.terminals_[p] && p > TERROR) {
  41336. expected.push('\'' + this.terminals_[p] + '\'');
  41337. }
  41338. }
  41339. if (lexer.showPosition) {
  41340. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  41341. } else {
  41342. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  41343. }
  41344. this.parseError(errStr, {
  41345. text: lexer.match,
  41346. token: this.terminals_[symbol] || symbol,
  41347. line: lexer.yylineno,
  41348. loc: yyloc,
  41349. expected: expected
  41350. });
  41351. }
  41352. if (action[0] instanceof Array && action.length > 1) {
  41353. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  41354. }
  41355. switch (action[0]) {
  41356. case 1:
  41357. stack.push(symbol);
  41358. vstack.push(lexer.yytext);
  41359. lstack.push(lexer.yylloc);
  41360. stack.push(action[1]);
  41361. symbol = null;
  41362. if (!preErrorSymbol) {
  41363. yyleng = lexer.yyleng;
  41364. yytext = lexer.yytext;
  41365. yylineno = lexer.yylineno;
  41366. yyloc = lexer.yylloc;
  41367. if (recovering > 0) {
  41368. recovering--;
  41369. }
  41370. } else {
  41371. symbol = preErrorSymbol;
  41372. preErrorSymbol = null;
  41373. }
  41374. break;
  41375. case 2:
  41376. len = this.productions_[action[1]][1];
  41377. yyval.$ = vstack[vstack.length - len];
  41378. yyval._$ = {
  41379. first_line: lstack[lstack.length - (len || 1)].first_line,
  41380. last_line: lstack[lstack.length - 1].last_line,
  41381. first_column: lstack[lstack.length - (len || 1)].first_column,
  41382. last_column: lstack[lstack.length - 1].last_column
  41383. };
  41384. if (ranges) {
  41385. yyval._$.range = [
  41386. lstack[lstack.length - (len || 1)].range[0],
  41387. lstack[lstack.length - 1].range[1]
  41388. ];
  41389. }
  41390. r = this.performAction.apply(yyval, [
  41391. yytext,
  41392. yyleng,
  41393. yylineno,
  41394. sharedState.yy,
  41395. action[1],
  41396. vstack,
  41397. lstack
  41398. ].concat(args));
  41399. if (typeof r !== 'undefined') {
  41400. return r;
  41401. }
  41402. if (len) {
  41403. stack = stack.slice(0, -1 * len * 2);
  41404. vstack = vstack.slice(0, -1 * len);
  41405. lstack = lstack.slice(0, -1 * len);
  41406. }
  41407. stack.push(this.productions_[action[1]][0]);
  41408. vstack.push(yyval.$);
  41409. lstack.push(yyval._$);
  41410. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  41411. stack.push(newState);
  41412. break;
  41413. case 3:
  41414. return true;
  41415. }
  41416. }
  41417. return true;
  41418. }};
  41419. /* generated by jison-lex 0.3.4 */
  41420. var lexer = (function(){
  41421. var lexer = ({
  41422. EOF:1,
  41423. parseError:function parseError(str, hash) {
  41424. if (this.yy.parser) {
  41425. this.yy.parser.parseError(str, hash);
  41426. } else {
  41427. throw new Error(str);
  41428. }
  41429. },
  41430. // resets the lexer, sets new input
  41431. setInput:function (input, yy) {
  41432. this.yy = yy || this.yy || {};
  41433. this._input = input;
  41434. this._more = this._backtrack = this.done = false;
  41435. this.yylineno = this.yyleng = 0;
  41436. this.yytext = this.matched = this.match = '';
  41437. this.conditionStack = ['INITIAL'];
  41438. this.yylloc = {
  41439. first_line: 1,
  41440. first_column: 0,
  41441. last_line: 1,
  41442. last_column: 0
  41443. };
  41444. if (this.options.ranges) {
  41445. this.yylloc.range = [0,0];
  41446. }
  41447. this.offset = 0;
  41448. return this;
  41449. },
  41450. // consumes and returns one char from the input
  41451. input:function () {
  41452. var ch = this._input[0];
  41453. this.yytext += ch;
  41454. this.yyleng++;
  41455. this.offset++;
  41456. this.match += ch;
  41457. this.matched += ch;
  41458. var lines = ch.match(/(?:\r\n?|\n).*/g);
  41459. if (lines) {
  41460. this.yylineno++;
  41461. this.yylloc.last_line++;
  41462. } else {
  41463. this.yylloc.last_column++;
  41464. }
  41465. if (this.options.ranges) {
  41466. this.yylloc.range[1]++;
  41467. }
  41468. this._input = this._input.slice(1);
  41469. return ch;
  41470. },
  41471. // unshifts one char (or a string) into the input
  41472. unput:function (ch) {
  41473. var len = ch.length;
  41474. var lines = ch.split(/(?:\r\n?|\n)/g);
  41475. this._input = ch + this._input;
  41476. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  41477. //this.yyleng -= len;
  41478. this.offset -= len;
  41479. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  41480. this.match = this.match.substr(0, this.match.length - 1);
  41481. this.matched = this.matched.substr(0, this.matched.length - 1);
  41482. if (lines.length - 1) {
  41483. this.yylineno -= lines.length - 1;
  41484. }
  41485. var r = this.yylloc.range;
  41486. this.yylloc = {
  41487. first_line: this.yylloc.first_line,
  41488. last_line: this.yylineno + 1,
  41489. first_column: this.yylloc.first_column,
  41490. last_column: lines ?
  41491. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  41492. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  41493. this.yylloc.first_column - len
  41494. };
  41495. if (this.options.ranges) {
  41496. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  41497. }
  41498. this.yyleng = this.yytext.length;
  41499. return this;
  41500. },
  41501. // When called from action, caches matched text and appends it on next action
  41502. more:function () {
  41503. this._more = true;
  41504. return this;
  41505. },
  41506. // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
  41507. reject:function () {
  41508. if (this.options.backtrack_lexer) {
  41509. this._backtrack = true;
  41510. } else {
  41511. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
  41512. text: "",
  41513. token: null,
  41514. line: this.yylineno
  41515. });
  41516. }
  41517. return this;
  41518. },
  41519. // retain first n characters of the match
  41520. less:function (n) {
  41521. this.unput(this.match.slice(n));
  41522. },
  41523. // displays already matched input, i.e. for error messages
  41524. pastInput:function () {
  41525. var past = this.matched.substr(0, this.matched.length - this.match.length);
  41526. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  41527. },
  41528. // displays upcoming input, i.e. for error messages
  41529. upcomingInput:function () {
  41530. var next = this.match;
  41531. if (next.length < 20) {
  41532. next += this._input.substr(0, 20-next.length);
  41533. }
  41534. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  41535. },
  41536. // displays the character position where the lexing error occurred, i.e. for error messages
  41537. showPosition:function () {
  41538. var pre = this.pastInput();
  41539. var c = new Array(pre.length + 1).join("-");
  41540. return pre + this.upcomingInput() + "\n" + c + "^";
  41541. },
  41542. // test the lexed token: return FALSE when not a match, otherwise return token
  41543. test_match:function(match, indexed_rule) {
  41544. var token,
  41545. lines,
  41546. backup;
  41547. if (this.options.backtrack_lexer) {
  41548. // save context
  41549. backup = {
  41550. yylineno: this.yylineno,
  41551. yylloc: {
  41552. first_line: this.yylloc.first_line,
  41553. last_line: this.last_line,
  41554. first_column: this.yylloc.first_column,
  41555. last_column: this.yylloc.last_column
  41556. },
  41557. yytext: this.yytext,
  41558. match: this.match,
  41559. matches: this.matches,
  41560. matched: this.matched,
  41561. yyleng: this.yyleng,
  41562. offset: this.offset,
  41563. _more: this._more,
  41564. _input: this._input,
  41565. yy: this.yy,
  41566. conditionStack: this.conditionStack.slice(0),
  41567. done: this.done
  41568. };
  41569. if (this.options.ranges) {
  41570. backup.yylloc.range = this.yylloc.range.slice(0);
  41571. }
  41572. }
  41573. lines = match[0].match(/(?:\r\n?|\n).*/g);
  41574. if (lines) {
  41575. this.yylineno += lines.length;
  41576. }
  41577. this.yylloc = {
  41578. first_line: this.yylloc.last_line,
  41579. last_line: this.yylineno + 1,
  41580. first_column: this.yylloc.last_column,
  41581. last_column: lines ?
  41582. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  41583. this.yylloc.last_column + match[0].length
  41584. };
  41585. this.yytext += match[0];
  41586. this.match += match[0];
  41587. this.matches = match;
  41588. this.yyleng = this.yytext.length;
  41589. if (this.options.ranges) {
  41590. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  41591. }
  41592. this._more = false;
  41593. this._backtrack = false;
  41594. this._input = this._input.slice(match[0].length);
  41595. this.matched += match[0];
  41596. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  41597. if (this.done && this._input) {
  41598. this.done = false;
  41599. }
  41600. if (token) {
  41601. return token;
  41602. } else if (this._backtrack) {
  41603. // recover context
  41604. for (var k in backup) {
  41605. this[k] = backup[k];
  41606. }
  41607. return false; // rule action called reject() implying the next rule should be tested instead.
  41608. }
  41609. return false;
  41610. },
  41611. // return next match in input
  41612. next:function () {
  41613. if (this.done) {
  41614. return this.EOF;
  41615. }
  41616. if (!this._input) {
  41617. this.done = true;
  41618. }
  41619. var token,
  41620. match,
  41621. tempMatch,
  41622. index;
  41623. if (!this._more) {
  41624. this.yytext = '';
  41625. this.match = '';
  41626. }
  41627. var rules = this._currentRules();
  41628. for (var i = 0; i < rules.length; i++) {
  41629. tempMatch = this._input.match(this.rules[rules[i]]);
  41630. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  41631. match = tempMatch;
  41632. index = i;
  41633. if (this.options.backtrack_lexer) {
  41634. token = this.test_match(tempMatch, rules[i]);
  41635. if (token !== false) {
  41636. return token;
  41637. } else if (this._backtrack) {
  41638. match = false;
  41639. continue; // rule action called reject() implying a rule MISmatch.
  41640. } else {
  41641. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  41642. return false;
  41643. }
  41644. } else if (!this.options.flex) {
  41645. break;
  41646. }
  41647. }
  41648. }
  41649. if (match) {
  41650. token = this.test_match(match, rules[index]);
  41651. if (token !== false) {
  41652. return token;
  41653. }
  41654. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  41655. return false;
  41656. }
  41657. if (this._input === "") {
  41658. return this.EOF;
  41659. } else {
  41660. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  41661. text: "",
  41662. token: null,
  41663. line: this.yylineno
  41664. });
  41665. }
  41666. },
  41667. // return next match that has a token
  41668. lex:function lex () {
  41669. var r = this.next();
  41670. if (r) {
  41671. return r;
  41672. } else {
  41673. return this.lex();
  41674. }
  41675. },
  41676. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  41677. begin:function begin (condition) {
  41678. this.conditionStack.push(condition);
  41679. },
  41680. // pop the previously active lexer condition state off the condition stack
  41681. popState:function popState () {
  41682. var n = this.conditionStack.length - 1;
  41683. if (n > 0) {
  41684. return this.conditionStack.pop();
  41685. } else {
  41686. return this.conditionStack[0];
  41687. }
  41688. },
  41689. // produce the lexer rule set which is active for the currently active lexer condition state
  41690. _currentRules:function _currentRules () {
  41691. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  41692. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  41693. } else {
  41694. return this.conditions["INITIAL"].rules;
  41695. }
  41696. },
  41697. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  41698. topState:function topState (n) {
  41699. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  41700. if (n >= 0) {
  41701. return this.conditionStack[n];
  41702. } else {
  41703. return "INITIAL";
  41704. }
  41705. },
  41706. // alias for begin(condition)
  41707. pushState:function pushState (condition) {
  41708. this.begin(condition);
  41709. },
  41710. // return the number of states currently on the stack
  41711. stateStackSize:function stateStackSize() {
  41712. return this.conditionStack.length;
  41713. },
  41714. options: {},
  41715. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  41716. var YYSTATE=YY_START;
  41717. switch($avoiding_name_collisions) {
  41718. case 0:/* do nothing */
  41719. break;
  41720. case 1:return 6;
  41721. break;
  41722. case 2:/* skip whitespace */
  41723. break;
  41724. case 3:return 5;
  41725. break;
  41726. case 4: this.begin("struct"); /*console.log('Starting struct');*/return 17;
  41727. break;
  41728. case 5: /*console.log('Ending struct');*/this.popState(); return 19;
  41729. break;
  41730. case 6:/* nothing */
  41731. break;
  41732. case 7: /*console.log('lex-member: ' + yy_.yytext);*/ return "MEMBER";
  41733. break;
  41734. case 8:return 16;
  41735. break;
  41736. case 9:this.begin("string");
  41737. break;
  41738. case 10:this.popState();
  41739. break;
  41740. case 11:return "STR";
  41741. break;
  41742. case 12:return 27;
  41743. break;
  41744. case 13:return 27;
  41745. break;
  41746. case 14:return 29;
  41747. break;
  41748. case 15:return 29;
  41749. break;
  41750. case 16:return 28;
  41751. break;
  41752. case 17:return 26;
  41753. break;
  41754. case 18:return 30;
  41755. break;
  41756. case 19:return 31;
  41757. break;
  41758. case 20:return 13;
  41759. break;
  41760. case 21:return 43;
  41761. break;
  41762. case 22:return 'DOT';
  41763. break;
  41764. case 23:return 'PLUS';
  41765. break;
  41766. case 24:return 40;
  41767. break;
  41768. case 25:return 'EQUALS';
  41769. break;
  41770. case 26:return 'EQUALS';
  41771. break;
  41772. case 27:return 47;
  41773. break;
  41774. case 28:return 'PUNCTUATION';
  41775. break;
  41776. case 29:return 46;
  41777. break;
  41778. case 30:return 45;
  41779. break;
  41780. case 31:return 42;
  41781. break;
  41782. case 32:return 8;
  41783. break;
  41784. }
  41785. },
  41786. rules: [/^(?:%%[^\n]*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^#\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:[A-Za-z]+)/,/^(?:[!"#$%&'*+,-.`?\\_\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],
  41787. conditions: {"string":{"rules":[10,11],"inclusive":false},"struct":{"rules":[5,6,7],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,8,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"inclusive":true}}
  41788. });
  41789. return lexer;
  41790. })();
  41791. parser.lexer = lexer;
  41792. function Parser () {
  41793. this.yy = {};
  41794. }
  41795. Parser.prototype = parser;parser.Parser = Parser;
  41796. return new Parser;
  41797. })();
  41798. if (true) {
  41799. exports.parser = parser;
  41800. exports.Parser = parser.Parser;
  41801. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  41802. exports.main = function commonjsMain (args) {
  41803. if (!args[1]) {
  41804. console.log('Usage: '+args[0]+' FILE');
  41805. process.exit(1);
  41806. }
  41807. var source = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js").readFileSync(__webpack_require__(/*! path */ "./node_modules/path-browserify/index.js").normalize(args[1]), "utf8");
  41808. return exports.parser.parse(source);
  41809. };
  41810. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  41811. exports.main(process.argv.slice(1));
  41812. }
  41813. }
  41814. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  41815. /***/ }),
  41816. /***/ "./src/diagrams/flowchart/flowDb.js":
  41817. /*!******************************************!*\
  41818. !*** ./src/diagrams/flowchart/flowDb.js ***!
  41819. \******************************************/
  41820. /*! exports provided: addVertex, addLink, updateLinkInterpolate, updateLink, addClass, setDirection, setClass, setLink, getTooltip, setClickEvent, bindFunctions, getDirection, getVertices, getEdges, getClasses, clear, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getSubGraphs, default */
  41821. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41822. "use strict";
  41823. __webpack_require__.r(__webpack_exports__);
  41824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addVertex", function() { return addVertex; });
  41825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addLink", function() { return addLink; });
  41826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateLinkInterpolate", function() { return updateLinkInterpolate; });
  41827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateLink", function() { return updateLink; });
  41828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
  41829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDirection", function() { return setDirection; });
  41830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClass", function() { return setClass; });
  41831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLink", function() { return setLink; });
  41832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTooltip", function() { return getTooltip; });
  41833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClickEvent", function() { return setClickEvent; });
  41834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindFunctions", function() { return bindFunctions; });
  41835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDirection", function() { return getDirection; });
  41836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVertices", function() { return getVertices; });
  41837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEdges", function() { return getEdges; });
  41838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  41839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  41840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultStyle", function() { return defaultStyle; });
  41841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSubGraph", function() { return addSubGraph; });
  41842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDepthFirstPos", function() { return getDepthFirstPos; });
  41843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indexNodes", function() { return indexNodes; });
  41844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSubGraphs", function() { return getSubGraphs; });
  41845. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  41846. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @braintree/sanitize-url */ "./node_modules/@braintree/sanitize-url/index.js");
  41847. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__);
  41848. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  41849. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  41850. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  41851. const config = Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])();
  41852. let vertices = {};
  41853. let edges = [];
  41854. let classes = [];
  41855. let subGraphs = [];
  41856. let subGraphLookup = {};
  41857. let tooltips = {};
  41858. let subCount = 0;
  41859. let direction; // Functions to be run after graph rendering
  41860. let funs = [];
  41861. const sanitize = text => {
  41862. let txt = text;
  41863. if (config.securityLevel !== 'loose') {
  41864. txt = txt.replace(/<br>/g, '#br#');
  41865. txt = txt.replace(/<br\S*?\/>/g, '#br#');
  41866. txt = txt.replace(/</g, '&lt;').replace(/>/g, '&gt;');
  41867. txt = txt.replace(/=/g, '&equals;');
  41868. txt = txt.replace(/#br#/g, '<br/>');
  41869. }
  41870. return txt;
  41871. };
  41872. /**
  41873. * Function called by parser when a node definition has been found
  41874. * @param id
  41875. * @param text
  41876. * @param type
  41877. * @param style
  41878. * @param classes
  41879. */
  41880. const addVertex = function (_id, text, type, style, classes) {
  41881. let txt;
  41882. let id = _id;
  41883. if (typeof id === 'undefined') {
  41884. return;
  41885. }
  41886. if (id.trim().length === 0) {
  41887. return;
  41888. }
  41889. if (id[0].match(/\d/)) id = 's' + id;
  41890. if (typeof vertices[id] === 'undefined') {
  41891. vertices[id] = {
  41892. id: id,
  41893. styles: [],
  41894. classes: []
  41895. };
  41896. }
  41897. if (typeof text !== 'undefined') {
  41898. txt = sanitize(text.trim()); // strip quotes if string starts and exnds with a quote
  41899. if (txt[0] === '"' && txt[txt.length - 1] === '"') {
  41900. txt = txt.substring(1, txt.length - 1);
  41901. }
  41902. vertices[id].text = txt;
  41903. }
  41904. if (typeof type !== 'undefined') {
  41905. vertices[id].type = type;
  41906. }
  41907. if (typeof style !== 'undefined') {
  41908. if (style !== null) {
  41909. style.forEach(function (s) {
  41910. vertices[id].styles.push(s);
  41911. });
  41912. }
  41913. }
  41914. if (typeof classes !== 'undefined') {
  41915. if (classes !== null) {
  41916. classes.forEach(function (s) {
  41917. vertices[id].classes.push(s);
  41918. });
  41919. }
  41920. }
  41921. };
  41922. /**
  41923. * Function called by parser when a link/edge definition has been found
  41924. * @param start
  41925. * @param end
  41926. * @param type
  41927. * @param linktext
  41928. */
  41929. const addLink = function (_start, _end, type, linktext) {
  41930. let start = _start;
  41931. let end = _end;
  41932. if (start[0].match(/\d/)) start = 's' + start;
  41933. if (end[0].match(/\d/)) end = 's' + end;
  41934. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].info('Got edge...', start, end);
  41935. const edge = {
  41936. start: start,
  41937. end: end,
  41938. type: undefined,
  41939. text: ''
  41940. };
  41941. linktext = type.text;
  41942. if (typeof linktext !== 'undefined') {
  41943. edge.text = sanitize(linktext.trim()); // strip quotes if string starts and exnds with a quote
  41944. if (edge.text[0] === '"' && edge.text[edge.text.length - 1] === '"') {
  41945. edge.text = edge.text.substring(1, edge.text.length - 1);
  41946. }
  41947. }
  41948. if (typeof type !== 'undefined') {
  41949. edge.type = type.type;
  41950. edge.stroke = type.stroke;
  41951. }
  41952. edges.push(edge);
  41953. };
  41954. /**
  41955. * Updates a link's line interpolation algorithm
  41956. * @param pos
  41957. * @param interpolate
  41958. */
  41959. const updateLinkInterpolate = function (positions, interp) {
  41960. positions.forEach(function (pos) {
  41961. if (pos === 'default') {
  41962. edges.defaultInterpolate = interp;
  41963. } else {
  41964. edges[pos].interpolate = interp;
  41965. }
  41966. });
  41967. };
  41968. /**
  41969. * Updates a link with a style
  41970. * @param pos
  41971. * @param style
  41972. */
  41973. const updateLink = function (positions, style) {
  41974. positions.forEach(function (pos) {
  41975. if (pos === 'default') {
  41976. edges.defaultStyle = style;
  41977. } else {
  41978. if (_utils__WEBPACK_IMPORTED_MODULE_3__["default"].isSubstringInArray('fill', style) === -1) {
  41979. style.push('fill:none');
  41980. }
  41981. edges[pos].style = style;
  41982. }
  41983. });
  41984. };
  41985. const addClass = function (id, style) {
  41986. if (typeof classes[id] === 'undefined') {
  41987. classes[id] = {
  41988. id: id,
  41989. styles: []
  41990. };
  41991. }
  41992. if (typeof style !== 'undefined') {
  41993. if (style !== null) {
  41994. style.forEach(function (s) {
  41995. classes[id].styles.push(s);
  41996. });
  41997. }
  41998. }
  41999. };
  42000. /**
  42001. * Called by parser when a graph definition is found, stores the direction of the chart.
  42002. * @param dir
  42003. */
  42004. const setDirection = function (dir) {
  42005. direction = dir;
  42006. };
  42007. /**
  42008. * Called by parser when a special node is found, e.g. a clickable element.
  42009. * @param ids Comma separated list of ids
  42010. * @param className Class to add
  42011. */
  42012. const setClass = function (ids, className) {
  42013. ids.split(',').forEach(function (id) {
  42014. if (typeof vertices[id] !== 'undefined') {
  42015. vertices[id].classes.push(className);
  42016. }
  42017. if (typeof subGraphLookup[id] !== 'undefined') {
  42018. subGraphLookup[id].classes.push(className);
  42019. }
  42020. });
  42021. };
  42022. const setTooltip = function (ids, tooltip) {
  42023. ids.split(',').forEach(function (id) {
  42024. if (typeof tooltip !== 'undefined') {
  42025. tooltips[id] = sanitize(tooltip);
  42026. }
  42027. });
  42028. };
  42029. const setClickFun = function (id, functionName) {
  42030. if (config.securityLevel !== 'loose') {
  42031. return;
  42032. }
  42033. if (typeof functionName === 'undefined') {
  42034. return;
  42035. }
  42036. if (typeof vertices[id] !== 'undefined') {
  42037. funs.push(function (element) {
  42038. const elem = document.querySelector(`[id="${id}"]`);
  42039. if (elem !== null) {
  42040. elem.addEventListener('click', function () {
  42041. window[functionName](id);
  42042. }, false);
  42043. }
  42044. });
  42045. }
  42046. };
  42047. /**
  42048. * Called by parser when a link is found. Adds the URL to the vertex data.
  42049. * @param ids Comma separated list of ids
  42050. * @param linkStr URL to create a link for
  42051. * @param tooltip Tooltip for the clickable element
  42052. */
  42053. const setLink = function (ids, linkStr, tooltip) {
  42054. ids.split(',').forEach(function (id) {
  42055. if (typeof vertices[id] !== 'undefined') {
  42056. if (config.securityLevel !== 'loose') {
  42057. vertices[id].link = Object(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__["sanitizeUrl"])(linkStr); // .replace(/javascript:.*/g, '')
  42058. } else {
  42059. vertices[id].link = linkStr;
  42060. }
  42061. }
  42062. });
  42063. setTooltip(ids, tooltip);
  42064. setClass(ids, 'clickable');
  42065. };
  42066. const getTooltip = function (id) {
  42067. return tooltips[id];
  42068. };
  42069. /**
  42070. * Called by parser when a click definition is found. Registers an event handler.
  42071. * @param ids Comma separated list of ids
  42072. * @param functionName Function to be called on click
  42073. * @param tooltip Tooltip for the clickable element
  42074. */
  42075. const setClickEvent = function (ids, functionName, tooltip) {
  42076. ids.split(',').forEach(function (id) {
  42077. setClickFun(id, functionName);
  42078. });
  42079. setTooltip(ids, tooltip);
  42080. setClass(ids, 'clickable');
  42081. };
  42082. const bindFunctions = function (element) {
  42083. funs.forEach(function (fun) {
  42084. fun(element);
  42085. });
  42086. };
  42087. const getDirection = function () {
  42088. return direction;
  42089. };
  42090. /**
  42091. * Retrieval function for fetching the found nodes after parsing has completed.
  42092. * @returns {{}|*|vertices}
  42093. */
  42094. const getVertices = function () {
  42095. return vertices;
  42096. };
  42097. /**
  42098. * Retrieval function for fetching the found links after parsing has completed.
  42099. * @returns {{}|*|edges}
  42100. */
  42101. const getEdges = function () {
  42102. return edges;
  42103. };
  42104. /**
  42105. * Retrieval function for fetching the found class definitions after parsing has completed.
  42106. * @returns {{}|*|classes}
  42107. */
  42108. const getClasses = function () {
  42109. return classes;
  42110. };
  42111. const setupToolTips = function (element) {
  42112. let tooltipElem = d3__WEBPACK_IMPORTED_MODULE_0__["select"]('.mermaidTooltip');
  42113. if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
  42114. tooltipElem = d3__WEBPACK_IMPORTED_MODULE_0__["select"]('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);
  42115. }
  42116. const svg = d3__WEBPACK_IMPORTED_MODULE_0__["select"](element).select('svg');
  42117. const nodes = svg.selectAll('g.node');
  42118. nodes.on('mouseover', function () {
  42119. const el = d3__WEBPACK_IMPORTED_MODULE_0__["select"](this);
  42120. const title = el.attr('title'); // Dont try to draw a tooltip if no data is provided
  42121. if (title === null) {
  42122. return;
  42123. }
  42124. const rect = this.getBoundingClientRect();
  42125. tooltipElem.transition().duration(200).style('opacity', '.9');
  42126. tooltipElem.html(el.attr('title')).style('left', rect.left + (rect.right - rect.left) / 2 + 'px').style('top', rect.top - 14 + document.body.scrollTop + 'px');
  42127. el.classed('hover', true);
  42128. }).on('mouseout', function () {
  42129. tooltipElem.transition().duration(500).style('opacity', 0);
  42130. const el = d3__WEBPACK_IMPORTED_MODULE_0__["select"](this);
  42131. el.classed('hover', false);
  42132. });
  42133. };
  42134. funs.push(setupToolTips);
  42135. /**
  42136. * Clears the internal graph db so that a new graph can be parsed.
  42137. */
  42138. const clear = function () {
  42139. vertices = {};
  42140. classes = {};
  42141. edges = [];
  42142. funs = [];
  42143. funs.push(setupToolTips);
  42144. subGraphs = [];
  42145. subGraphLookup = {};
  42146. subCount = 0;
  42147. tooltips = [];
  42148. };
  42149. /**
  42150. *
  42151. * @returns {string}
  42152. */
  42153. const defaultStyle = function () {
  42154. return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';
  42155. };
  42156. /**
  42157. * Clears the internal graph db so that a new graph can be parsed.
  42158. */
  42159. const addSubGraph = function (_id, list, _title) {
  42160. let id = _id;
  42161. let title = _title;
  42162. if (_id === _title && _title.match(/\s/)) {
  42163. id = undefined;
  42164. }
  42165. function uniq(a) {
  42166. const prims = {
  42167. 'boolean': {},
  42168. 'number': {},
  42169. 'string': {}
  42170. };
  42171. const objs = [];
  42172. return a.filter(function (item) {
  42173. const type = typeof item;
  42174. if (item.trim() === '') {
  42175. return false;
  42176. }
  42177. if (type in prims) {
  42178. return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true;
  42179. } else {
  42180. return objs.indexOf(item) >= 0 ? false : objs.push(item);
  42181. }
  42182. });
  42183. }
  42184. let nodeList = [];
  42185. nodeList = uniq(nodeList.concat.apply(nodeList, list));
  42186. id = id || 'subGraph' + subCount;
  42187. if (id[0].match(/\d/)) id = 's' + id;
  42188. title = title || '';
  42189. title = sanitize(title);
  42190. subCount = subCount + 1;
  42191. const subGraph = {
  42192. id: id,
  42193. nodes: nodeList,
  42194. title: title.trim(),
  42195. classes: []
  42196. };
  42197. subGraphs.push(subGraph);
  42198. subGraphLookup[id] = subGraph;
  42199. return id;
  42200. };
  42201. const getPosForId = function (id) {
  42202. for (let i = 0; i < subGraphs.length; i++) {
  42203. if (subGraphs[i].id === id) {
  42204. return i;
  42205. }
  42206. }
  42207. return -1;
  42208. };
  42209. let secCount = -1;
  42210. const posCrossRef = [];
  42211. const indexNodes2 = function (id, pos) {
  42212. const nodes = subGraphs[pos].nodes;
  42213. secCount = secCount + 1;
  42214. if (secCount > 2000) {
  42215. return;
  42216. }
  42217. posCrossRef[secCount] = pos; // Check if match
  42218. if (subGraphs[pos].id === id) {
  42219. return {
  42220. result: true,
  42221. count: 0
  42222. };
  42223. }
  42224. let count = 0;
  42225. let posCount = 1;
  42226. while (count < nodes.length) {
  42227. const childPos = getPosForId(nodes[count]); // Ignore regular nodes (pos will be -1)
  42228. if (childPos >= 0) {
  42229. const res = indexNodes2(id, childPos);
  42230. if (res.result) {
  42231. return {
  42232. result: true,
  42233. count: posCount + res.count
  42234. };
  42235. } else {
  42236. posCount = posCount + res.count;
  42237. }
  42238. }
  42239. count = count + 1;
  42240. }
  42241. return {
  42242. result: false,
  42243. count: posCount
  42244. };
  42245. };
  42246. const getDepthFirstPos = function (pos) {
  42247. return posCrossRef[pos];
  42248. };
  42249. const indexNodes = function () {
  42250. secCount = -1;
  42251. if (subGraphs.length > 0) {
  42252. indexNodes2('none', subGraphs.length - 1, 0);
  42253. }
  42254. };
  42255. const getSubGraphs = function () {
  42256. return subGraphs;
  42257. };
  42258. /* harmony default export */ __webpack_exports__["default"] = ({
  42259. addVertex,
  42260. addLink,
  42261. updateLinkInterpolate,
  42262. updateLink,
  42263. addClass,
  42264. setDirection,
  42265. setClass,
  42266. getTooltip,
  42267. setClickEvent,
  42268. setLink,
  42269. bindFunctions,
  42270. getDirection,
  42271. getVertices,
  42272. getEdges,
  42273. getClasses,
  42274. clear,
  42275. defaultStyle,
  42276. addSubGraph,
  42277. getDepthFirstPos,
  42278. indexNodes,
  42279. getSubGraphs
  42280. });
  42281. /***/ }),
  42282. /***/ "./src/diagrams/flowchart/flowRenderer.js":
  42283. /*!************************************************!*\
  42284. !*** ./src/diagrams/flowchart/flowRenderer.js ***!
  42285. \************************************************/
  42286. /*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */
  42287. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42288. "use strict";
  42289. __webpack_require__.r(__webpack_exports__);
  42290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  42291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addVertices", function() { return addVertices; });
  42292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEdges", function() { return addEdges; });
  42293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  42294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  42295. /* harmony import */ var graphlibrary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphlibrary */ "./node_modules/graphlibrary/index.js");
  42296. /* harmony import */ var graphlibrary__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphlibrary__WEBPACK_IMPORTED_MODULE_0__);
  42297. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  42298. /* harmony import */ var _flowDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./flowDb */ "./src/diagrams/flowchart/flowDb.js");
  42299. /* harmony import */ var _parser_flow__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/flow */ "./src/diagrams/flowchart/parser/flow.jison");
  42300. /* harmony import */ var _parser_flow__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_flow__WEBPACK_IMPORTED_MODULE_3__);
  42301. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  42302. /* harmony import */ var dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dagre-d3-renderer */ "./node_modules/dagre-d3-renderer/dist/dagre-d3.core.js");
  42303. /* harmony import */ var dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5__);
  42304. /* harmony import */ var dagre_d3_renderer_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dagre-d3-renderer/lib/label/add-html-label.js */ "./node_modules/dagre-d3-renderer/lib/label/add-html-label.js");
  42305. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  42306. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  42307. const conf = {};
  42308. const setConf = function (cnf) {
  42309. const keys = Object.keys(cnf);
  42310. for (let i = 0; i < keys.length; i++) {
  42311. conf[keys[i]] = cnf[keys[i]];
  42312. }
  42313. };
  42314. /**
  42315. * Function that adds the vertices found in the graph definition to the graph to be rendered.
  42316. * @param vert Object containing the vertices.
  42317. * @param g The graph that is to be drawn.
  42318. */
  42319. const addVertices = function (vert, g, svgId) {
  42320. const svg = d3__WEBPACK_IMPORTED_MODULE_1__["select"](`[id="${svgId}"]`);
  42321. const keys = Object.keys(vert);
  42322. const styleFromStyleArr = function (styleStr, arr) {
  42323. // Create a compound style definition from the style definitions found for the node in the graph definition
  42324. for (let i = 0; i < arr.length; i++) {
  42325. if (typeof arr[i] !== 'undefined') {
  42326. styleStr = styleStr + arr[i] + ';';
  42327. }
  42328. }
  42329. return styleStr;
  42330. }; // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition
  42331. keys.forEach(function (id) {
  42332. const vertex = vert[id];
  42333. /**
  42334. * Variable for storing the classes for the vertex
  42335. * @type {string}
  42336. */
  42337. let classStr = '';
  42338. if (vertex.classes.length > 0) {
  42339. classStr = vertex.classes.join(' ');
  42340. }
  42341. /**
  42342. * Variable for storing the extracted style for the vertex
  42343. * @type {string}
  42344. */
  42345. let style = ''; // Create a compound style definition from the style definitions found for the node in the graph definition
  42346. style = styleFromStyleArr(style, vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition
  42347. let vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually
  42348. let vertexNode;
  42349. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  42350. // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?
  42351. const node = {
  42352. label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, s => `<i class='${s.replace(':', ' ')}'></i>`)
  42353. };
  42354. vertexNode = Object(dagre_d3_renderer_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6__["default"])(svg, node).node();
  42355. vertexNode.parentNode.removeChild(vertexNode);
  42356. } else {
  42357. const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  42358. const rows = vertexText.split(/<br[/]{0,1}>/);
  42359. for (let j = 0; j < rows.length; j++) {
  42360. const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
  42361. tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
  42362. tspan.setAttribute('dy', '1em');
  42363. tspan.setAttribute('x', '1');
  42364. tspan.textContent = rows[j];
  42365. svgLabel.appendChild(tspan);
  42366. }
  42367. vertexNode = svgLabel;
  42368. } // If the node has a link, we wrap it in a SVG link
  42369. if (vertex.link) {
  42370. const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');
  42371. link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);
  42372. link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');
  42373. link.appendChild(vertexNode);
  42374. vertexNode = link;
  42375. }
  42376. let radious = 0;
  42377. let _shape = ''; // Set the shape based parameters
  42378. switch (vertex.type) {
  42379. case 'round':
  42380. radious = 5;
  42381. _shape = 'rect';
  42382. break;
  42383. case 'square':
  42384. _shape = 'rect';
  42385. break;
  42386. case 'diamond':
  42387. _shape = 'question';
  42388. break;
  42389. case 'odd':
  42390. _shape = 'rect_left_inv_arrow';
  42391. break;
  42392. case 'lean_right':
  42393. _shape = 'lean_right';
  42394. break;
  42395. case 'lean_left':
  42396. _shape = 'lean_left';
  42397. break;
  42398. case 'trapezoid':
  42399. _shape = 'trapezoid';
  42400. break;
  42401. case 'inv_trapezoid':
  42402. _shape = 'inv_trapezoid';
  42403. break;
  42404. case 'odd_right':
  42405. _shape = 'rect_left_inv_arrow';
  42406. break;
  42407. case 'circle':
  42408. _shape = 'circle';
  42409. break;
  42410. case 'ellipse':
  42411. _shape = 'ellipse';
  42412. break;
  42413. case 'group':
  42414. _shape = 'rect';
  42415. break;
  42416. default:
  42417. _shape = 'rect';
  42418. } // Add the node
  42419. g.setNode(vertex.id, {
  42420. labelType: 'svg',
  42421. shape: _shape,
  42422. label: vertexNode,
  42423. rx: radious,
  42424. ry: radious,
  42425. 'class': classStr,
  42426. style: style,
  42427. id: vertex.id
  42428. });
  42429. });
  42430. };
  42431. /**
  42432. * Add edges to graph based on parsed graph defninition
  42433. * @param {Object} edges The edges to add to the graph
  42434. * @param {Object} g The graph object
  42435. */
  42436. const addEdges = function (edges, g) {
  42437. let cnt = 0;
  42438. let defaultStyle;
  42439. if (typeof edges.defaultStyle !== 'undefined') {
  42440. defaultStyle = edges.defaultStyle.toString().replace(/,/g, ';');
  42441. }
  42442. edges.forEach(function (edge) {
  42443. cnt++;
  42444. const edgeData = {}; // Set link type for rendering
  42445. if (edge.type === 'arrow_open') {
  42446. edgeData.arrowhead = 'none';
  42447. } else {
  42448. edgeData.arrowhead = 'normal';
  42449. }
  42450. let style = '';
  42451. if (typeof edge.style !== 'undefined') {
  42452. edge.style.forEach(function (s) {
  42453. style = style + s + ';';
  42454. });
  42455. } else {
  42456. switch (edge.stroke) {
  42457. case 'normal':
  42458. style = 'fill:none';
  42459. if (typeof defaultStyle !== 'undefined') {
  42460. style = defaultStyle;
  42461. }
  42462. break;
  42463. case 'dotted':
  42464. style = 'stroke: #333; fill:none;stroke-width:2px;stroke-dasharray:3;';
  42465. break;
  42466. case 'thick':
  42467. style = 'stroke: #333; stroke-width: 3.5px;fill:none';
  42468. break;
  42469. }
  42470. }
  42471. edgeData.style = style;
  42472. if (typeof edge.interpolate !== 'undefined') {
  42473. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["interpolateToCurve"])(edge.interpolate, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  42474. } else if (typeof edges.defaultInterpolate !== 'undefined') {
  42475. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["interpolateToCurve"])(edges.defaultInterpolate, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  42476. } else {
  42477. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["interpolateToCurve"])(conf.curve, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  42478. }
  42479. if (typeof edge.text === 'undefined') {
  42480. if (typeof edge.style !== 'undefined') {
  42481. edgeData.arrowheadStyle = 'fill: #333';
  42482. }
  42483. } else {
  42484. edgeData.arrowheadStyle = 'fill: #333';
  42485. if (typeof edge.style === 'undefined') {
  42486. edgeData.labelpos = 'c';
  42487. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  42488. edgeData.labelType = 'html';
  42489. edgeData.label = '<span class="edgeLabel">' + edge.text + '</span>';
  42490. } else {
  42491. edgeData.labelType = 'text';
  42492. edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';
  42493. edgeData.label = edge.text.replace(/<br>/g, '\n');
  42494. }
  42495. } else {
  42496. edgeData.label = edge.text.replace(/<br>/g, '\n');
  42497. }
  42498. } // Add the edge to the graph
  42499. g.setEdge(edge.start, edge.end, edgeData, cnt);
  42500. });
  42501. };
  42502. /**
  42503. * Returns the all the styles from classDef statements in the graph definition.
  42504. * @returns {object} classDef styles
  42505. */
  42506. const getClasses = function (text) {
  42507. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Extracting classes');
  42508. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  42509. const parser = _parser_flow__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  42510. parser.yy = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition
  42511. parser.parse(text);
  42512. return _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getClasses();
  42513. };
  42514. /**
  42515. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  42516. * @param text
  42517. * @param id
  42518. */
  42519. const draw = function (text, id) {
  42520. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Drawing flowchart');
  42521. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  42522. const parser = _parser_flow__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  42523. parser.yy = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition
  42524. try {
  42525. parser.parse(text);
  42526. } catch (err) {
  42527. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].debug('Parsing failed');
  42528. } // Fetch the default direction, use TD if none was found
  42529. let dir = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getDirection();
  42530. if (typeof dir === 'undefined') {
  42531. dir = 'TD';
  42532. } // Create the input mermaid.graph
  42533. const g = new graphlibrary__WEBPACK_IMPORTED_MODULE_0___default.a.Graph({
  42534. multigraph: true,
  42535. compound: true
  42536. }).setGraph({
  42537. rankdir: dir,
  42538. marginx: 20,
  42539. marginy: 20
  42540. }).setDefaultEdgeLabel(function () {
  42541. return {};
  42542. });
  42543. let subG;
  42544. const subGraphs = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getSubGraphs();
  42545. for (let i = subGraphs.length - 1; i >= 0; i--) {
  42546. subG = subGraphs[i];
  42547. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].addVertex(subG.id, subG.title, 'group', undefined, subG.classes);
  42548. } // Fetch the verices/nodes and edges/links from the parsed graph definition
  42549. const vert = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getVertices();
  42550. const edges = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getEdges();
  42551. let i = 0;
  42552. for (i = subGraphs.length - 1; i >= 0; i--) {
  42553. subG = subGraphs[i];
  42554. d3__WEBPACK_IMPORTED_MODULE_1__["selectAll"]('cluster').append('text');
  42555. for (let j = 0; j < subG.nodes.length; j++) {
  42556. g.setParent(subG.nodes[j], subG.id);
  42557. }
  42558. }
  42559. addVertices(vert, g, id);
  42560. addEdges(edges, g); // Create the renderer
  42561. const Render = dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.render;
  42562. const render = new Render(); // Add custom shape for rhombus type of boc (decision)
  42563. render.shapes().question = function (parent, bbox, node) {
  42564. const w = bbox.width;
  42565. const h = bbox.height;
  42566. const s = (w + h) * 0.9;
  42567. const points = [{
  42568. x: s / 2,
  42569. y: 0
  42570. }, {
  42571. x: s,
  42572. y: -s / 2
  42573. }, {
  42574. x: s / 2,
  42575. y: -s
  42576. }, {
  42577. x: 0,
  42578. y: -s / 2
  42579. }];
  42580. const shapeSvg = parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42581. return d.x + ',' + d.y;
  42582. }).join(' ')).attr('rx', 5).attr('ry', 5).attr('transform', 'translate(' + -s / 2 + ',' + s * 2 / 4 + ')');
  42583. node.intersect = function (point) {
  42584. return dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.intersect.polygon(node, points, point);
  42585. };
  42586. return shapeSvg;
  42587. }; // Add custom shape for box with inverted arrow on left side
  42588. render.shapes().rect_left_inv_arrow = function (parent, bbox, node) {
  42589. const w = bbox.width;
  42590. const h = bbox.height;
  42591. const points = [{
  42592. x: -h / 2,
  42593. y: 0
  42594. }, {
  42595. x: w,
  42596. y: 0
  42597. }, {
  42598. x: w,
  42599. y: -h
  42600. }, {
  42601. x: -h / 2,
  42602. y: -h
  42603. }, {
  42604. x: 0,
  42605. y: -h / 2
  42606. }];
  42607. const shapeSvg = parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42608. return d.x + ',' + d.y;
  42609. }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h * 2 / 4 + ')');
  42610. node.intersect = function (point) {
  42611. return dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.intersect.polygon(node, points, point);
  42612. };
  42613. return shapeSvg;
  42614. }; // Add custom shape for box with inverted arrow on left side
  42615. render.shapes().lean_right = function (parent, bbox, node) {
  42616. const w = bbox.width;
  42617. const h = bbox.height;
  42618. const points = [{
  42619. x: -2 * h / 6,
  42620. y: 0
  42621. }, {
  42622. x: w - h / 6,
  42623. y: 0
  42624. }, {
  42625. x: w + 2 * h / 6,
  42626. y: -h
  42627. }, {
  42628. x: h / 6,
  42629. y: -h
  42630. }];
  42631. const shapeSvg = parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42632. return d.x + ',' + d.y;
  42633. }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h * 2 / 4 + ')');
  42634. node.intersect = function (point) {
  42635. return dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.intersect.polygon(node, points, point);
  42636. };
  42637. return shapeSvg;
  42638. }; // Add custom shape for box with inverted arrow on left side
  42639. render.shapes().lean_left = function (parent, bbox, node) {
  42640. const w = bbox.width;
  42641. const h = bbox.height;
  42642. const points = [{
  42643. x: 2 * h / 6,
  42644. y: 0
  42645. }, {
  42646. x: w + h / 6,
  42647. y: 0
  42648. }, {
  42649. x: w - 2 * h / 6,
  42650. y: -h
  42651. }, {
  42652. x: -h / 6,
  42653. y: -h
  42654. }];
  42655. const shapeSvg = parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42656. return d.x + ',' + d.y;
  42657. }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h * 2 / 4 + ')');
  42658. node.intersect = function (point) {
  42659. return dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.intersect.polygon(node, points, point);
  42660. };
  42661. return shapeSvg;
  42662. }; // Add custom shape for box with inverted arrow on left side
  42663. render.shapes().trapezoid = function (parent, bbox, node) {
  42664. const w = bbox.width;
  42665. const h = bbox.height;
  42666. const points = [{
  42667. x: -2 * h / 6,
  42668. y: 0
  42669. }, {
  42670. x: w + 2 * h / 6,
  42671. y: 0
  42672. }, {
  42673. x: w - h / 6,
  42674. y: -h
  42675. }, {
  42676. x: h / 6,
  42677. y: -h
  42678. }];
  42679. const shapeSvg = parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42680. return d.x + ',' + d.y;
  42681. }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h * 2 / 4 + ')');
  42682. node.intersect = function (point) {
  42683. return dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.intersect.polygon(node, points, point);
  42684. };
  42685. return shapeSvg;
  42686. }; // Add custom shape for box with inverted arrow on left side
  42687. render.shapes().inv_trapezoid = function (parent, bbox, node) {
  42688. const w = bbox.width;
  42689. const h = bbox.height;
  42690. const points = [{
  42691. x: h / 6,
  42692. y: 0
  42693. }, {
  42694. x: w - h / 6,
  42695. y: 0
  42696. }, {
  42697. x: w + 2 * h / 6,
  42698. y: -h
  42699. }, {
  42700. x: -2 * h / 6,
  42701. y: -h
  42702. }];
  42703. const shapeSvg = parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42704. return d.x + ',' + d.y;
  42705. }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h * 2 / 4 + ')');
  42706. node.intersect = function (point) {
  42707. return dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.intersect.polygon(node, points, point);
  42708. };
  42709. return shapeSvg;
  42710. }; // Add custom shape for box with inverted arrow on right side
  42711. render.shapes().rect_right_inv_arrow = function (parent, bbox, node) {
  42712. const w = bbox.width;
  42713. const h = bbox.height;
  42714. const points = [{
  42715. x: 0,
  42716. y: 0
  42717. }, {
  42718. x: w + h / 2,
  42719. y: 0
  42720. }, {
  42721. x: w,
  42722. y: -h / 2
  42723. }, {
  42724. x: w + h / 2,
  42725. y: -h
  42726. }, {
  42727. x: 0,
  42728. y: -h
  42729. }];
  42730. const shapeSvg = parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42731. return d.x + ',' + d.y;
  42732. }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h * 2 / 4 + ')');
  42733. node.intersect = function (point) {
  42734. return dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.intersect.polygon(node, points, point);
  42735. };
  42736. return shapeSvg;
  42737. }; // Add our custom arrow - an empty arrowhead
  42738. render.arrows().none = function normal(parent, id, edge, type) {
  42739. const marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');
  42740. const path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');
  42741. dagre_d3_renderer__WEBPACK_IMPORTED_MODULE_5___default.a.util.applyStyle(path, edge[type + 'Style']);
  42742. }; // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.
  42743. render.arrows().normal = function normal(parent, id, edge, type) {
  42744. const marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');
  42745. marker.append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowheadPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');
  42746. }; // Set up an SVG group so that we can translate the final graph.
  42747. const svg = d3__WEBPACK_IMPORTED_MODULE_1__["select"](`[id="${id}"]`); // Run the renderer. This is what draws the final graph.
  42748. const element = d3__WEBPACK_IMPORTED_MODULE_1__["select"]('#' + id + ' g');
  42749. render(element, g);
  42750. element.selectAll('g.node').attr('title', function () {
  42751. return _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getTooltip(this.id);
  42752. });
  42753. const padding = 8;
  42754. const width = g.maxX - g.minX + padding * 2;
  42755. const height = g.maxY - g.minY + padding * 2;
  42756. svg.attr('width', '100%');
  42757. svg.attr('style', `max-width: ${width}px;`);
  42758. svg.attr('viewBox', `0 0 ${width} ${height}`);
  42759. svg.select('g').attr('transform', `translate(${padding - g.minX}, ${padding - g.minY})`); // Index nodes
  42760. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].indexNodes('subGraph' + i); // reposition labels
  42761. for (i = 0; i < subGraphs.length; i++) {
  42762. subG = subGraphs[i];
  42763. if (subG.title !== 'undefined') {
  42764. const clusterRects = document.querySelectorAll('#' + id + ' #' + subG.id + ' rect');
  42765. const clusterEl = document.querySelectorAll('#' + id + ' #' + subG.id);
  42766. const xPos = clusterRects[0].x.baseVal.value;
  42767. const yPos = clusterRects[0].y.baseVal.value;
  42768. const width = clusterRects[0].width.baseVal.value;
  42769. const cluster = d3__WEBPACK_IMPORTED_MODULE_1__["select"](clusterEl[0]);
  42770. const te = cluster.select('.label');
  42771. te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);
  42772. te.attr('id', id + 'Text');
  42773. }
  42774. } // Add label rects for non html labels
  42775. if (!Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  42776. const labels = document.querySelectorAll('#' + id + ' .edgeLabel .label');
  42777. for (let k = 0; k < labels.length; k++) {
  42778. const label = labels[k]; // Get dimensions of label
  42779. const dim = label.getBBox();
  42780. const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
  42781. rect.setAttribute('rx', 0);
  42782. rect.setAttribute('ry', 0);
  42783. rect.setAttribute('width', dim.width);
  42784. rect.setAttribute('height', dim.height);
  42785. rect.setAttribute('style', 'fill:#e8e8e8;');
  42786. label.insertBefore(rect, label.firstChild);
  42787. }
  42788. }
  42789. };
  42790. /* harmony default export */ __webpack_exports__["default"] = ({
  42791. setConf,
  42792. addVertices,
  42793. addEdges,
  42794. getClasses,
  42795. draw
  42796. });
  42797. /***/ }),
  42798. /***/ "./src/diagrams/flowchart/parser/flow.jison":
  42799. /*!**************************************************!*\
  42800. !*** ./src/diagrams/flowchart/parser/flow.jison ***!
  42801. \**************************************************/
  42802. /*! no static exports found */
  42803. /***/ (function(module, exports, __webpack_require__) {
  42804. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  42805. /*
  42806. Returns a Parser object of the following structure:
  42807. Parser: {
  42808. yy: {}
  42809. }
  42810. Parser.prototype: {
  42811. yy: {},
  42812. trace: function(),
  42813. symbols_: {associative list: name ==> number},
  42814. terminals_: {associative list: number ==> name},
  42815. productions_: [...],
  42816. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  42817. table: [...],
  42818. defaultActions: {...},
  42819. parseError: function(str, hash),
  42820. parse: function(input),
  42821. lexer: {
  42822. EOF: 1,
  42823. parseError: function(str, hash),
  42824. setInput: function(input),
  42825. input: function(),
  42826. unput: function(str),
  42827. more: function(),
  42828. less: function(n),
  42829. pastInput: function(),
  42830. upcomingInput: function(),
  42831. showPosition: function(),
  42832. test_match: function(regex_match_array, rule_index),
  42833. next: function(),
  42834. lex: function(),
  42835. begin: function(condition),
  42836. popState: function(),
  42837. _currentRules: function(),
  42838. topState: function(),
  42839. pushState: function(condition),
  42840. options: {
  42841. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  42842. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  42843. backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
  42844. },
  42845. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  42846. rules: [...],
  42847. conditions: {associative list: name ==> set},
  42848. }
  42849. }
  42850. token location info (@$, _$, etc.): {
  42851. first_line: n,
  42852. last_line: n,
  42853. first_column: n,
  42854. last_column: n,
  42855. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  42856. }
  42857. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  42858. text: (matched text)
  42859. token: (the produced terminal token, if any)
  42860. line: (yylineno)
  42861. }
  42862. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  42863. loc: (yylloc)
  42864. expected: (string describing the set of expected tokens)
  42865. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  42866. }
  42867. */
  42868. var parser = (function(){
  42869. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,3],$V2=[1,5],$V3=[1,8,9,10,11,18,30,91,92,93,94,95,106,107,110,111,112,114,120,121,122,123,124],$V4=[2,2],$V5=[1,12],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,39],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,34],$Vh=[1,36],$Vi=[1,31],$Vj=[1,35],$Vk=[1,38],$Vl=[1,42],$Vm=[1,33],$Vn=[1,37],$Vo=[1,40],$Vp=[1,41],$Vq=[1,32],$Vr=[1,8,9,10,11,18,30,34,91,92,93,94,95,106,107,110,111,112,114,120,121,122,123,124],$Vs=[1,50],$Vt=[1,49],$Vu=[1,51],$Vv=[8,9,11],$Vw=[1,62],$Vx=[1,74],$Vy=[1,63],$Vz=[1,76],$VA=[1,64],$VB=[1,78],$VC=[1,65],$VD=[1,80],$VE=[1,66],$VF=[1,81],$VG=[1,67],$VH=[1,83],$VI=[1,68],$VJ=[1,85],$VK=[1,69],$VL=[1,87],$VM=[1,70],$VN=[1,88],$VO=[1,71],$VP=[1,90],$VQ=[1,72],$VR=[1,92],$VS=[1,73],$VT=[1,94],$VU=[1,75],$VV=[1,77],$VW=[1,79],$VX=[1,82],$VY=[1,84],$VZ=[1,86],$V_=[1,89],$V$=[1,91],$V01=[1,93],$V11=[8,9,11,37,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],$V21=[1,109],$V31=[8,9,10,11,15,18,32,37,39,41,43,45,47,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,106,107,110,111,112,114,120,121,122,123,124],$V41=[1,111],$V51=[1,112],$V61=[1,129],$V71=[1,148],$V81=[1,149],$V91=[1,123],$Va1=[1,122],$Vb1=[1,153],$Vc1=[1,152],$Vd1=[1,150],$Ve1=[1,151],$Vf1=[1,141],$Vg1=[1,125],$Vh1=[1,124],$Vi1=[1,120],$Vj1=[1,143],$Vk1=[1,144],$Vl1=[1,145],$Vm1=[1,146],$Vn1=[1,147],$Vo1=[1,127],$Vp1=[1,126],$Vq1=[1,134],$Vr1=[1,137],$Vs1=[1,135],$Vt1=[1,136],$Vu1=[1,130],$Vv1=[1,142],$Vw1=[1,132],$Vx1=[1,133],$Vy1=[1,138],$Vz1=[1,139],$VA1=[1,140],$VB1=[8,9,10,11,18,30,34,91,92,93,94,95,106,107,110,111,112,114,120,121,122,123,124],$VC1=[18,106,107,110,111,112,114,120,121,122,123,124],$VD1=[18,51,85,106,107,110,111,112,114,120,121,122,123,124],$VE1=[1,175],$VF1=[1,177],$VG1=[1,178],$VH1=[8,9,10,11,12,13,15,16,17,18,30,32,33,34,37,40,42,44,46,48,52,53,55,57,59,61,63,65,67,68,69,71,73,75,85,91,92,93,94,95,98,105,106,107,110,111,112,114,119,120,121,122,123],$VI1=[8,9,10,11,13,18,37,106,107,110,111,112,114,119,120,121,122,123],$VJ1=[10,107],$VK1=[1,259],$VL1=[1,262],$VM1=[1,263],$VN1=[1,260],$VO1=[1,264],$VP1=[1,257],$VQ1=[1,254],$VR1=[1,255],$VS1=[1,256],$VT1=[1,258],$VU1=[1,261],$VV1=[1,289],$VW1=[8,9,11,107],$VX1=[8,9,10,11,37,91,101,105,106,107,110,111,112,113,114];
  42870. var parser = {trace: function trace () { },
  42871. yy: {},
  42872. symbols_: {"error":2,"mermaidDoc":3,"graphConfig":4,"document":5,"line":6,"statement":7,"SEMI":8,"NEWLINE":9,"SPACE":10,"EOF":11,"GRAPH":12,"DIR":13,"FirstStmtSeperator":14,"TAGEND":15,"TAGSTART":16,"UP":17,"DOWN":18,"ending":19,"endToken":20,"spaceList":21,"spaceListNewline":22,"verticeStatement":23,"separator":24,"styleStatement":25,"linkStyleStatement":26,"classDefStatement":27,"classStatement":28,"clickStatement":29,"subgraph":30,"text":31,"SQS":32,"SQE":33,"end":34,"vertex":35,"link":36,"DOT":37,"idString":38,"PS":39,"PE":40,"(-":41,"-)":42,"DIAMOND_START":43,"DIAMOND_STOP":44,"TRAPSTART":45,"TRAPEND":46,"INVTRAPSTART":47,"INVTRAPEND":48,"linkStatement":49,"arrowText":50,"TESTSTR":51,"--":52,"ARROW_POINT":53,"START_DOUBLE_ARROW_POINT":54,"ARROW_CIRCLE":55,"START_DOUBLE_ARROW_CIRCLE":56,"ARROW_CROSS":57,"START_DOUBLE_ARROW_CROSS":58,"ARROW_OPEN":59,"-.":60,"DOTTED_ARROW_POINT":61,"START_DOUBLE_DOTTED_ARROW_POINT":62,"DOTTED_ARROW_CIRCLE":63,"START_DOUBLE_DOTTED_ARROW_CIRCLE":64,"DOTTED_ARROW_CROSS":65,"START_DOUBLE_DOTTED_ARROW_CROSS":66,"DOTTED_ARROW_OPEN":67,"==":68,"THICK_ARROW_POINT":69,"START_DOUBLE_THICK_ARROW_POINT":70,"THICK_ARROW_CIRCLE":71,"START_DOUBLE_THICK_ARROW_CIRCLE":72,"THICK_ARROW_CROSS":73,"START_DOUBLE_THICK_ARROW_CROSS":74,"THICK_ARROW_OPEN":75,"DOUBLE_ARROW_POINT":76,"DOUBLE_ARROW_CIRCLE":77,"DOUBLE_ARROW_CROSS":78,"DOUBLE_DOTTED_ARROW_POINT":79,"DOUBLE_DOTTED_ARROW_CIRCLE":80,"DOUBLE_DOTTED_ARROW_CROSS":81,"DOUBLE_THICK_ARROW_POINT":82,"DOUBLE_THICK_ARROW_CIRCLE":83,"DOUBLE_THICK_ARROW_CROSS":84,"PIPE":85,"textToken":86,"STR":87,"commentText":88,"commentToken":89,"keywords":90,"STYLE":91,"LINKSTYLE":92,"CLASSDEF":93,"CLASS":94,"CLICK":95,"textNoTags":96,"textNoTagsToken":97,"DEFAULT":98,"stylesOpt":99,"alphaNum":100,"HEX":101,"numList":102,"INTERPOLATE":103,"commentStatement":104,"PCT":105,"NUM":106,"COMMA":107,"style":108,"styleComponent":109,"ALPHA":110,"COLON":111,"MINUS":112,"UNIT":113,"BRKT":114,"graphCodeTokens":115,"alphaNumToken":116,"idStringToken":117,"alphaNumStatement":118,"PUNCTUATION":119,"UNICODE_TEXT":120,"PLUS":121,"EQUALS":122,"MULT":123,"UNDERSCORE":124,"QUOTE":125,"$accept":0,"$end":1},
  42873. terminals_: {2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"DIR",15:"TAGEND",16:"TAGSTART",17:"UP",18:"DOWN",30:"subgraph",32:"SQS",33:"SQE",34:"end",37:"DOT",39:"PS",40:"PE",41:"(-",42:"-)",43:"DIAMOND_START",44:"DIAMOND_STOP",45:"TRAPSTART",46:"TRAPEND",47:"INVTRAPSTART",48:"INVTRAPEND",51:"TESTSTR",52:"--",53:"ARROW_POINT",54:"START_DOUBLE_ARROW_POINT",55:"ARROW_CIRCLE",56:"START_DOUBLE_ARROW_CIRCLE",57:"ARROW_CROSS",58:"START_DOUBLE_ARROW_CROSS",59:"ARROW_OPEN",60:"-.",61:"DOTTED_ARROW_POINT",62:"START_DOUBLE_DOTTED_ARROW_POINT",63:"DOTTED_ARROW_CIRCLE",64:"START_DOUBLE_DOTTED_ARROW_CIRCLE",65:"DOTTED_ARROW_CROSS",66:"START_DOUBLE_DOTTED_ARROW_CROSS",67:"DOTTED_ARROW_OPEN",68:"==",69:"THICK_ARROW_POINT",70:"START_DOUBLE_THICK_ARROW_POINT",71:"THICK_ARROW_CIRCLE",72:"START_DOUBLE_THICK_ARROW_CIRCLE",73:"THICK_ARROW_CROSS",74:"START_DOUBLE_THICK_ARROW_CROSS",75:"THICK_ARROW_OPEN",76:"DOUBLE_ARROW_POINT",77:"DOUBLE_ARROW_CIRCLE",78:"DOUBLE_ARROW_CROSS",79:"DOUBLE_DOTTED_ARROW_POINT",80:"DOUBLE_DOTTED_ARROW_CIRCLE",81:"DOUBLE_DOTTED_ARROW_CROSS",82:"DOUBLE_THICK_ARROW_POINT",83:"DOUBLE_THICK_ARROW_CIRCLE",84:"DOUBLE_THICK_ARROW_CROSS",85:"PIPE",87:"STR",91:"STYLE",92:"LINKSTYLE",93:"CLASSDEF",94:"CLASS",95:"CLICK",98:"DEFAULT",101:"HEX",103:"INTERPOLATE",105:"PCT",106:"NUM",107:"COMMA",110:"ALPHA",111:"COLON",112:"MINUS",113:"UNIT",114:"BRKT",119:"PUNCTUATION",120:"UNICODE_TEXT",121:"PLUS",122:"EQUALS",123:"MULT",124:"UNDERSCORE",125:"QUOTE"},
  42874. productions_: [0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,4],[4,4],[4,4],[4,4],[4,4],[19,2],[19,1],[20,1],[20,1],[20,1],[14,1],[14,1],[14,2],[22,2],[22,2],[22,1],[22,1],[21,2],[21,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[24,1],[24,1],[24,1],[23,3],[23,5],[23,5],[23,7],[23,1],[23,3],[35,4],[35,5],[35,6],[35,7],[35,4],[35,5],[35,4],[35,5],[35,4],[35,5],[35,4],[35,5],[35,4],[35,5],[35,4],[35,5],[35,4],[35,5],[35,4],[35,5],[35,1],[35,2],[36,2],[36,3],[36,3],[36,1],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[50,3],[31,1],[31,2],[31,1],[88,1],[88,2],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[96,1],[96,2],[27,5],[27,5],[28,5],[29,5],[29,7],[29,5],[29,7],[25,5],[25,5],[26,5],[26,5],[26,9],[26,9],[26,7],[26,7],[104,3],[102,1],[102,3],[99,1],[99,3],[108,1],[108,2],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[89,1],[89,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[97,1],[97,1],[97,1],[97,1],[38,1],[38,2],[100,1],[100,2],[118,1],[118,1],[118,1],[118,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1]],
  42875. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  42876. /* this == yyval */
  42877. var $0 = $$.length - 1;
  42878. switch (yystate) {
  42879. case 2:
  42880. this.$ = [];
  42881. break;
  42882. case 3:
  42883. if($$[$0] !== []){
  42884. $$[$0-1].push($$[$0]);
  42885. }
  42886. this.$=$$[$0-1];
  42887. break;
  42888. case 4: case 117: case 119: case 120: case 133: case 183: case 185: case 186:
  42889. this.$=$$[$0];
  42890. break;
  42891. case 11:
  42892. yy.setDirection($$[$0-1]);this.$ = $$[$0-1];
  42893. break;
  42894. case 12:
  42895. yy.setDirection("LR");this.$ = $$[$0-1];
  42896. break;
  42897. case 13:
  42898. yy.setDirection("RL");this.$ = $$[$0-1];
  42899. break;
  42900. case 14:
  42901. yy.setDirection("BT");this.$ = $$[$0-1];
  42902. break;
  42903. case 15:
  42904. yy.setDirection("TB");this.$ = $$[$0-1];
  42905. break;
  42906. case 30:
  42907. this.$=$$[$0-1]
  42908. break;
  42909. case 31: case 32: case 33: case 34: case 35:
  42910. this.$=[];
  42911. break;
  42912. case 36:
  42913. this.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);
  42914. break;
  42915. case 37:
  42916. this.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);
  42917. break;
  42918. case 38:
  42919. this.$=yy.addSubGraph(undefined,$$[$0-1],undefined);
  42920. break;
  42921. case 42:
  42922. yy.addLink($$[$0-2],$$[$0],$$[$0-1]);this.$ = [$$[$0-2],$$[$0]];
  42923. break;
  42924. case 43:
  42925. yy.addLink($$[$0-4],$$[$0-2],$$[$0-3]);this.$ = [$$[$0-4],$$[$0-2]];yy.setClass($$[$0-2],$$[$0]);
  42926. break;
  42927. case 44:
  42928. yy.addLink($$[$0-4],$$[$0],$$[$0-1]);this.$ = [$$[$0-4],$$[$0]];yy.setClass($$[$0-4],$$[$0-2]);
  42929. break;
  42930. case 45:
  42931. yy.addLink($$[$0-6],$$[$0-2],$$[$0-3]);this.$ = [$$[$0-6],$$[$0-2]];yy.setClass($$[$0-2],$$[$0]);yy.setClass($$[$0-6],$$[$0-4]);
  42932. break;
  42933. case 46:
  42934. this.$ = [$$[$0]];
  42935. break;
  42936. case 47:
  42937. this.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])
  42938. break;
  42939. case 48:
  42940. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');
  42941. break;
  42942. case 49:
  42943. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'square');
  42944. break;
  42945. case 50:
  42946. this.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');
  42947. break;
  42948. case 51:
  42949. this.$ = $$[$0-6];yy.addVertex($$[$0-6],$$[$0-3],'circle');
  42950. break;
  42951. case 52:
  42952. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');
  42953. break;
  42954. case 53:
  42955. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'ellipse');
  42956. break;
  42957. case 54:
  42958. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');
  42959. break;
  42960. case 55:
  42961. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'round');
  42962. break;
  42963. case 56:
  42964. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');
  42965. break;
  42966. case 57:
  42967. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'diamond');
  42968. break;
  42969. case 58:
  42970. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');
  42971. break;
  42972. case 59:
  42973. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'odd');
  42974. break;
  42975. case 60:
  42976. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');
  42977. break;
  42978. case 61:
  42979. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'trapezoid');
  42980. break;
  42981. case 62:
  42982. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');
  42983. break;
  42984. case 63:
  42985. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'inv_trapezoid');
  42986. break;
  42987. case 64:
  42988. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');
  42989. break;
  42990. case 65:
  42991. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'lean_right');
  42992. break;
  42993. case 66:
  42994. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');
  42995. break;
  42996. case 67:
  42997. this.$ = $$[$0-4];yy.addVertex($$[$0-4],$$[$0-2],'lean_left');
  42998. break;
  42999. case 68:
  43000. this.$ = $$[$0];yy.addVertex($$[$0]);
  43001. break;
  43002. case 69:
  43003. this.$ = $$[$0-1];yy.addVertex($$[$0-1]);
  43004. break;
  43005. case 70:
  43006. $$[$0-1].text = $$[$0];this.$ = $$[$0-1];
  43007. break;
  43008. case 71: case 72:
  43009. $$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];
  43010. break;
  43011. case 73:
  43012. this.$ = $$[$0];
  43013. break;
  43014. case 74:
  43015. this.$ = {"type":"arrow","stroke":"normal","text":$$[$0-1]};
  43016. break;
  43017. case 75:
  43018. this.$ = {"type":"double_arrow_point","stroke":"normal","text":$$[$0-1]};
  43019. break;
  43020. case 76:
  43021. this.$ = {"type":"arrow_circle","stroke":"normal","text":$$[$0-1]};
  43022. break;
  43023. case 77:
  43024. this.$ = {"type":"double_arrow_circle","stroke":"normal","text":$$[$0-1]};
  43025. break;
  43026. case 78:
  43027. this.$ = {"type":"arrow_cross","stroke":"normal","text":$$[$0-1]};
  43028. break;
  43029. case 79:
  43030. this.$ = {"type":"double_arrow_cross","stroke":"normal","text":$$[$0-1]};
  43031. break;
  43032. case 80:
  43033. this.$ = {"type":"arrow_open","stroke":"normal","text":$$[$0-1]};
  43034. break;
  43035. case 81:
  43036. this.$ = {"type":"arrow","stroke":"dotted","text":$$[$0-1]};
  43037. break;
  43038. case 82:
  43039. this.$ = {"type":"double_arrow_point","stroke":"dotted","text":$$[$0-1]};
  43040. break;
  43041. case 83:
  43042. this.$ = {"type":"arrow_circle","stroke":"dotted","text":$$[$0-1]};
  43043. break;
  43044. case 84:
  43045. this.$ = {"type":"double_arrow_circle","stroke":"dotted","text":$$[$0-1]};
  43046. break;
  43047. case 85:
  43048. this.$ = {"type":"arrow_cross","stroke":"dotted","text":$$[$0-1]};
  43049. break;
  43050. case 86:
  43051. this.$ = {"type":"double_arrow_cross","stroke":"dotted","text":$$[$0-1]};
  43052. break;
  43053. case 87:
  43054. this.$ = {"type":"arrow_open","stroke":"dotted","text":$$[$0-1]};
  43055. break;
  43056. case 88:
  43057. this.$ = {"type":"arrow","stroke":"thick","text":$$[$0-1]};
  43058. break;
  43059. case 89:
  43060. this.$ = {"type":"double_arrow_point","stroke":"thick","text":$$[$0-1]};
  43061. break;
  43062. case 90:
  43063. this.$ = {"type":"arrow_circle","stroke":"thick","text":$$[$0-1]};
  43064. break;
  43065. case 91:
  43066. this.$ = {"type":"double_arrow_circle","stroke":"thick","text":$$[$0-1]};
  43067. break;
  43068. case 92:
  43069. this.$ = {"type":"arrow_cross","stroke":"thick","text":$$[$0-1]};
  43070. break;
  43071. case 93:
  43072. this.$ = {"type":"double_arrow_cross","stroke":"thick","text":$$[$0-1]};
  43073. break;
  43074. case 94:
  43075. this.$ = {"type":"arrow_open","stroke":"thick","text":$$[$0-1]};
  43076. break;
  43077. case 95:
  43078. this.$ = {"type":"arrow","stroke":"normal"};
  43079. break;
  43080. case 96:
  43081. this.$ = {"type":"double_arrow_point","stroke":"normal"};
  43082. break;
  43083. case 97:
  43084. this.$ = {"type":"arrow_circle","stroke":"normal"};
  43085. break;
  43086. case 98:
  43087. this.$ = {"type":"double_arrow_circle","stroke":"normal"};
  43088. break;
  43089. case 99:
  43090. this.$ = {"type":"arrow_cross","stroke":"normal"};
  43091. break;
  43092. case 100:
  43093. this.$ = {"type":"double_arrow_cross","stroke":"normal"};
  43094. break;
  43095. case 101:
  43096. this.$ = {"type":"arrow_open","stroke":"normal"};
  43097. break;
  43098. case 102:
  43099. this.$ = {"type":"arrow","stroke":"dotted"};
  43100. break;
  43101. case 103:
  43102. this.$ = {"type":"double_arrow_point","stroke":"dotted"};
  43103. break;
  43104. case 104:
  43105. this.$ = {"type":"arrow_circle","stroke":"dotted"};
  43106. break;
  43107. case 105:
  43108. this.$ = {"type":"double_arrow_circle","stroke":"dotted"};
  43109. break;
  43110. case 106:
  43111. this.$ = {"type":"arrow_cross","stroke":"dotted"};
  43112. break;
  43113. case 107:
  43114. this.$ = {"type":"double_arrow_cross","stroke":"dotted"};
  43115. break;
  43116. case 108:
  43117. this.$ = {"type":"arrow_open","stroke":"dotted"};
  43118. break;
  43119. case 109:
  43120. this.$ = {"type":"arrow","stroke":"thick"};
  43121. break;
  43122. case 110:
  43123. this.$ = {"type":"double_arrow_point","stroke":"thick"};
  43124. break;
  43125. case 111:
  43126. this.$ = {"type":"arrow_circle","stroke":"thick"};
  43127. break;
  43128. case 112:
  43129. this.$ = {"type":"double_arrow_circle","stroke":"thick"};
  43130. break;
  43131. case 113:
  43132. this.$ = {"type":"arrow_cross","stroke":"thick"};
  43133. break;
  43134. case 114:
  43135. this.$ = {"type":"double_arrow_cross","stroke":"thick"};
  43136. break;
  43137. case 115:
  43138. this.$ = {"type":"arrow_open","stroke":"thick"};
  43139. break;
  43140. case 116:
  43141. this.$ = $$[$0-1];
  43142. break;
  43143. case 118: case 121: case 134: case 184:
  43144. this.$=$$[$0-1]+''+$$[$0];
  43145. break;
  43146. case 135: case 136:
  43147. this.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);
  43148. break;
  43149. case 137:
  43150. this.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);
  43151. break;
  43152. case 138:
  43153. this.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);
  43154. break;
  43155. case 139:
  43156. this.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;
  43157. break;
  43158. case 140:
  43159. this.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);
  43160. break;
  43161. case 141:
  43162. this.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );
  43163. break;
  43164. case 142:
  43165. this.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);
  43166. break;
  43167. case 143: case 145:
  43168. this.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);
  43169. break;
  43170. case 144:
  43171. this.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);
  43172. break;
  43173. case 146:
  43174. this.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);
  43175. break;
  43176. case 147:
  43177. this.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);
  43178. break;
  43179. case 148:
  43180. this.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);
  43181. break;
  43182. case 149:
  43183. this.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);
  43184. break;
  43185. case 151: case 153:
  43186. this.$ = [$$[$0]]
  43187. break;
  43188. case 152: case 154:
  43189. $$[$0-2].push($$[$0]);this.$ = $$[$0-2];
  43190. break;
  43191. case 156:
  43192. this.$ = $$[$0-1] + $$[$0];
  43193. break;
  43194. case 181:
  43195. this.$=$$[$0]
  43196. break;
  43197. case 182:
  43198. this.$=$$[$0-1]+''+$$[$0]
  43199. break;
  43200. case 187:
  43201. this.$='v';
  43202. break;
  43203. case 188:
  43204. this.$='-';
  43205. break;
  43206. }
  43207. },
  43208. table: [{3:1,4:2,9:$V0,10:$V1,12:$V2},{1:[3]},o($V3,$V4,{5:6}),{4:7,9:$V0,10:$V1,12:$V2},{4:8,9:$V0,10:$V1,12:$V2},{10:[1,9]},{1:[2,1],6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,18:$V9,23:16,25:17,26:18,27:19,28:20,29:21,30:$Va,35:23,38:29,91:$Vb,92:$Vc,93:$Vd,94:$Ve,95:$Vf,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},o($V3,[2,9]),o($V3,[2,10]),{13:[1,43],15:[1,44],16:[1,45],17:[1,46],18:[1,47]},o($Vr,[2,3]),o($Vr,[2,4]),o($Vr,[2,5]),o($Vr,[2,6]),o($Vr,[2,7]),o($Vr,[2,8]),{8:$Vs,9:$Vt,11:$Vu,24:48},{8:$Vs,9:$Vt,11:$Vu,24:52},{8:$Vs,9:$Vt,11:$Vu,24:53},{8:$Vs,9:$Vt,11:$Vu,24:54},{8:$Vs,9:$Vt,11:$Vu,24:55},{8:$Vs,9:$Vt,11:$Vu,24:56},{8:$Vs,9:$Vt,10:[1,57],11:$Vu,24:58},o($Vv,[2,46],{36:59,49:61,37:[1,60],52:$Vw,53:$Vx,54:$Vy,55:$Vz,56:$VA,57:$VB,58:$VC,59:$VD,60:$VE,61:$VF,62:$VG,63:$VH,64:$VI,65:$VJ,66:$VK,67:$VL,68:$VM,69:$VN,70:$VO,71:$VP,72:$VQ,73:$VR,74:$VS,75:$VT,76:$VU,77:$VV,78:$VW,79:$VX,80:$VY,81:$VZ,82:$V_,83:$V$,84:$V01}),{10:[1,95]},{10:[1,96]},{10:[1,97]},{10:[1,98]},{10:[1,99]},o($V11,[2,68],{21:107,117:108,10:$V21,15:[1,104],18:$V9,32:[1,100],39:[1,101],41:[1,102],43:[1,103],45:[1,105],47:[1,106],106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq}),o($V31,[2,181]),o($V31,[2,200]),o($V31,[2,201]),o($V31,[2,202]),o($V31,[2,203]),o($V31,[2,204]),o($V31,[2,205]),o($V31,[2,206]),o($V31,[2,207]),o($V31,[2,208]),o($V31,[2,209]),o($V31,[2,210]),o($V31,[2,211]),{8:$V41,9:$V51,10:$V21,14:110,21:113},{8:$V41,9:$V51,10:$V21,14:114,21:113},{8:$V41,9:$V51,10:$V21,14:115,21:113},{8:$V41,9:$V51,10:$V21,14:116,21:113},{8:$V41,9:$V51,10:$V21,14:117,21:113},o($Vr,[2,30]),o($Vr,[2,39]),o($Vr,[2,40]),o($Vr,[2,41]),o($Vr,[2,31]),o($Vr,[2,32]),o($Vr,[2,33]),o($Vr,[2,34]),o($Vr,[2,35]),{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:118,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($VB1,$V4,{5:154}),{18:$V9,35:155,38:29,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},{18:$V9,38:156,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},o($VC1,[2,73],{50:157,51:[1,158],85:[1,159]}),{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:160,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:161,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:162,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:163,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:164,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:165,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:166,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:167,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:168,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:169,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:170,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:171,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($VD1,[2,95]),o($VD1,[2,96]),o($VD1,[2,97]),o($VD1,[2,98]),o($VD1,[2,99]),o($VD1,[2,100]),o($VD1,[2,101]),o($VD1,[2,102]),o($VD1,[2,103]),o($VD1,[2,104]),o($VD1,[2,105]),o($VD1,[2,106]),o($VD1,[2,107]),o($VD1,[2,108]),o($VD1,[2,109]),o($VD1,[2,110]),o($VD1,[2,111]),o($VD1,[2,112]),o($VD1,[2,113]),o($VD1,[2,114]),o($VD1,[2,115]),{13:$VE1,18:$VF1,37:$Vf1,100:172,101:[1,173],106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{98:[1,179],102:180,106:[1,181]},{13:$VE1,18:$VF1,37:$Vf1,98:[1,182],100:183,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{13:$VE1,18:$VF1,37:$Vf1,100:184,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{13:$VE1,18:$VF1,37:$Vf1,100:185,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:186,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:188,34:$Ve1,37:$Vf1,39:[1,187],52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:189,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:190,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:191,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:192,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:193,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($V11,[2,69]),o($V31,[2,182]),o($V11,[2,29],{21:194,10:$V21}),o($V3,[2,11]),o($V3,[2,21]),o($V3,[2,22]),{9:[1,195]},o($V3,[2,12]),o($V3,[2,13]),o($V3,[2,14]),o($V3,[2,15]),{8:$Vs,9:$Vt,10:$V61,11:$Vu,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,24:197,30:$Vd1,32:[1,196],34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($VH1,[2,117]),o($VH1,[2,119]),o($VH1,[2,170]),o($VH1,[2,171]),o($VH1,[2,172]),o($VH1,[2,173]),o($VH1,[2,174]),o($VH1,[2,175]),o($VH1,[2,176]),o($VH1,[2,177]),o($VH1,[2,178]),o($VH1,[2,179]),o($VH1,[2,180]),o($VH1,[2,189]),o($VH1,[2,190]),o($VH1,[2,191]),o($VH1,[2,192]),o($VH1,[2,193]),o($VH1,[2,194]),o($VH1,[2,195]),o($VH1,[2,196]),o($VH1,[2,197]),o($VH1,[2,198]),o($VH1,[2,199]),o($VH1,[2,122]),o($VH1,[2,123]),o($VH1,[2,124]),o($VH1,[2,125]),o($VH1,[2,126]),o($VH1,[2,127]),o($VH1,[2,128]),o($VH1,[2,129]),o($VH1,[2,130]),o($VH1,[2,131]),o($VH1,[2,132]),{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,18:$V9,23:16,25:17,26:18,27:19,28:20,29:21,30:$Va,34:[1,199],35:23,38:29,91:$Vb,92:$Vc,93:$Vd,94:$Ve,95:$Vf,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},o($Vv,[2,42],{37:[1,200]}),o($Vv,[2,47],{49:61,117:108,36:201,18:$V9,52:$Vw,53:$Vx,54:$Vy,55:$Vz,56:$VA,57:$VB,58:$VC,59:$VD,60:$VE,61:$VF,62:$VG,63:$VH,64:$VI,65:$VJ,66:$VK,67:$VL,68:$VM,69:$VN,70:$VO,71:$VP,72:$VQ,73:$VR,74:$VS,75:$VT,76:$VU,77:$VV,78:$VW,79:$VX,80:$VY,81:$VZ,82:$V_,83:$V$,84:$V01,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq}),o($VC1,[2,70],{10:[1,202]}),{10:[1,203]},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:204,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,53:[1,205],55:[1,206],57:[1,207],59:[1,208],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,53:[1,209],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,55:[1,210],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,57:[1,211],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,61:[1,212],63:[1,213],65:[1,214],67:[1,215],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,61:[1,216],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,63:[1,217],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,65:[1,218],68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,69:[1,219],71:[1,220],73:[1,221],75:[1,222],86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,69:[1,223],86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,71:[1,224],86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,73:[1,225],86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:[1,226],13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:227,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:[1,228]},o($VI1,[2,183]),o($VI1,[2,185]),o($VI1,[2,186]),o($VI1,[2,187]),o($VI1,[2,188]),{10:[1,229]},{10:[1,230],107:[1,231]},o($VJ1,[2,151]),{10:[1,232]},{10:[1,233],13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:227,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:[1,234],13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:227,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:[1,235],13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:227,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,33:[1,236],34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:237,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,40:[1,238],52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,42:[1,239],52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,44:[1,240],52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,33:[1,241],34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,46:[1,242],48:[1,243],52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,46:[1,245],48:[1,244],52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($V11,[2,28]),o($V3,[2,23]),{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,31:246,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:119,87:$Vi1,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($VB1,$V4,{5:247}),o($VH1,[2,118]),o($Vr,[2,38]),{18:$V9,38:248,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},{18:$V9,35:249,38:29,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},o($VC1,[2,72]),o($VC1,[2,71]),{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,85:[1,250],86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($VC1,[2,74]),o($VC1,[2,76]),o($VC1,[2,78]),o($VC1,[2,80]),o($VC1,[2,75]),o($VC1,[2,77]),o($VC1,[2,79]),o($VC1,[2,81]),o($VC1,[2,83]),o($VC1,[2,85]),o($VC1,[2,87]),o($VC1,[2,82]),o($VC1,[2,84]),o($VC1,[2,86]),o($VC1,[2,88]),o($VC1,[2,90]),o($VC1,[2,92]),o($VC1,[2,94]),o($VC1,[2,89]),o($VC1,[2,91]),o($VC1,[2,93]),{10:$VK1,37:$VL1,91:$VM1,99:251,101:$VN1,105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},o($VI1,[2,184]),{10:$VK1,37:$VL1,91:$VM1,99:265,101:$VN1,105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},{10:$VK1,37:$VL1,91:$VM1,99:266,101:$VN1,103:[1,267],105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},{10:$VK1,37:$VL1,91:$VM1,99:268,101:$VN1,103:[1,269],105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},{106:[1,270]},{10:$VK1,37:$VL1,91:$VM1,99:271,101:$VN1,105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},{10:$VK1,37:$VL1,91:$VM1,99:272,101:$VN1,105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},{13:$VE1,18:$VF1,37:$Vf1,100:273,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{13:$VE1,18:$VF1,37:$Vf1,87:[1,275],100:274,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($V11,[2,48],{21:276,10:$V21}),{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,34:$Ve1,37:$Vf1,40:[1,277],52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},o($V11,[2,54],{21:278,10:$V21}),o($V11,[2,52],{21:279,10:$V21}),o($V11,[2,56],{21:280,10:$V21}),o($V11,[2,58],{21:281,10:$V21}),o($V11,[2,60],{21:282,10:$V21}),o($V11,[2,64],{21:283,10:$V21}),o($V11,[2,62],{21:284,10:$V21}),o($V11,[2,66],{21:285,10:$V21}),{10:$V61,12:$V71,13:$V81,15:$V91,16:$Va1,17:$Vb1,18:$Vc1,30:$Vd1,33:[1,286],34:$Ve1,37:$Vf1,52:$Vg1,68:$Vh1,86:198,90:131,91:$Vj1,92:$Vk1,93:$Vl1,94:$Vm1,95:$Vn1,97:121,98:$Vo1,105:$Vp1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$Vu1,114:$Vv1,116:128,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,18:$V9,23:16,25:17,26:18,27:19,28:20,29:21,30:$Va,34:[1,287],35:23,38:29,91:$Vb,92:$Vc,93:$Vd,94:$Ve,95:$Vf,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},o($Vv,[2,43],{117:108,18:$V9,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq}),o($Vv,[2,44],{37:[1,288]}),o([10,18,106,107,110,111,112,114,120,121,122,123,124],[2,116]),o($Vv,[2,142],{107:$VV1}),o($VW1,[2,153],{109:290,10:$VK1,37:$VL1,91:$VM1,101:$VN1,105:$VO1,106:$VP1,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1}),o($VX1,[2,155]),o($VX1,[2,157]),o($VX1,[2,158]),o($VX1,[2,159]),o($VX1,[2,160]),o($VX1,[2,161]),o($VX1,[2,162]),o($VX1,[2,163]),o($VX1,[2,164]),o($VX1,[2,165]),o($VX1,[2,166]),o($VX1,[2,167]),o($Vv,[2,143],{107:$VV1}),o($Vv,[2,144],{107:$VV1}),{10:[1,291]},o($Vv,[2,145],{107:$VV1}),{10:[1,292]},o($VJ1,[2,152]),o($Vv,[2,135],{107:$VV1}),o($Vv,[2,136],{107:$VV1}),o($Vv,[2,137],{116:176,118:227,13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1}),o($Vv,[2,138],{116:176,118:227,10:[1,293],13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1}),o($Vv,[2,140],{10:[1,294]}),o($V11,[2,49]),{40:[1,295]},o($V11,[2,55]),o($V11,[2,53]),o($V11,[2,57]),o($V11,[2,59]),o($V11,[2,61]),o($V11,[2,65]),o($V11,[2,63]),o($V11,[2,67]),{8:$Vs,9:$Vt,11:$Vu,24:296},o($Vr,[2,37]),{18:$V9,38:297,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},{10:$VK1,37:$VL1,91:$VM1,101:$VN1,105:$VO1,106:$VP1,108:298,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},o($VX1,[2,156]),{13:$VE1,18:$VF1,37:$Vf1,100:299,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{13:$VE1,18:$VF1,37:$Vf1,100:300,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,116:176,118:174,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1},{87:[1,301]},{87:[1,302]},o($V11,[2,50],{21:303,10:$V21}),o($VB1,$V4,{5:304}),o($Vv,[2,45],{117:108,18:$V9,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq}),o($VW1,[2,154],{109:290,10:$VK1,37:$VL1,91:$VM1,101:$VN1,105:$VO1,106:$VP1,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1}),o($Vv,[2,148],{116:176,118:227,10:[1,305],13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1}),o($Vv,[2,149],{116:176,118:227,10:[1,306],13:$VE1,18:$VF1,37:$Vf1,106:$Vq1,107:$Vr1,110:$Vs1,111:$Vt1,112:$VG1,114:$Vv1,119:$Vw1,120:$Vx1,121:$Vy1,122:$Vz1,123:$VA1}),o($Vv,[2,139]),o($Vv,[2,141]),o($V11,[2,51]),{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,18:$V9,23:16,25:17,26:18,27:19,28:20,29:21,30:$Va,34:[1,307],35:23,38:29,91:$Vb,92:$Vc,93:$Vd,94:$Ve,95:$Vf,106:$Vg,107:$Vh,110:$Vi,111:$Vj,112:$Vk,114:$Vl,117:30,120:$Vm,121:$Vn,122:$Vo,123:$Vp,124:$Vq},{10:$VK1,37:$VL1,91:$VM1,99:308,101:$VN1,105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},{10:$VK1,37:$VL1,91:$VM1,99:309,101:$VN1,105:$VO1,106:$VP1,108:252,109:253,110:$VQ1,111:$VR1,112:$VS1,113:$VT1,114:$VU1},o($Vr,[2,36]),o($Vv,[2,146],{107:$VV1}),o($Vv,[2,147],{107:$VV1})],
  43209. defaultActions: {},
  43210. parseError: function parseError (str, hash) {
  43211. if (hash.recoverable) {
  43212. this.trace(str);
  43213. } else {
  43214. var error = new Error(str);
  43215. error.hash = hash;
  43216. throw error;
  43217. }
  43218. },
  43219. parse: function parse(input) {
  43220. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  43221. var args = lstack.slice.call(arguments, 1);
  43222. var lexer = Object.create(this.lexer);
  43223. var sharedState = { yy: {} };
  43224. for (var k in this.yy) {
  43225. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  43226. sharedState.yy[k] = this.yy[k];
  43227. }
  43228. }
  43229. lexer.setInput(input, sharedState.yy);
  43230. sharedState.yy.lexer = lexer;
  43231. sharedState.yy.parser = this;
  43232. if (typeof lexer.yylloc == 'undefined') {
  43233. lexer.yylloc = {};
  43234. }
  43235. var yyloc = lexer.yylloc;
  43236. lstack.push(yyloc);
  43237. var ranges = lexer.options && lexer.options.ranges;
  43238. if (typeof sharedState.yy.parseError === 'function') {
  43239. this.parseError = sharedState.yy.parseError;
  43240. } else {
  43241. this.parseError = Object.getPrototypeOf(this).parseError;
  43242. }
  43243. function popStack(n) {
  43244. stack.length = stack.length - 2 * n;
  43245. vstack.length = vstack.length - n;
  43246. lstack.length = lstack.length - n;
  43247. }
  43248. function lex() {
  43249. var token;
  43250. token = tstack.pop() || lexer.lex() || EOF;
  43251. if (typeof token !== 'number') {
  43252. if (token instanceof Array) {
  43253. tstack = token;
  43254. token = tstack.pop();
  43255. }
  43256. token = self.symbols_[token] || token;
  43257. }
  43258. return token;
  43259. }
  43260. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  43261. while (true) {
  43262. state = stack[stack.length - 1];
  43263. if (this.defaultActions[state]) {
  43264. action = this.defaultActions[state];
  43265. } else {
  43266. if (symbol === null || typeof symbol == 'undefined') {
  43267. symbol = lex();
  43268. }
  43269. action = table[state] && table[state][symbol];
  43270. }
  43271. if (typeof action === 'undefined' || !action.length || !action[0]) {
  43272. var errStr = '';
  43273. expected = [];
  43274. for (p in table[state]) {
  43275. if (this.terminals_[p] && p > TERROR) {
  43276. expected.push('\'' + this.terminals_[p] + '\'');
  43277. }
  43278. }
  43279. if (lexer.showPosition) {
  43280. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  43281. } else {
  43282. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  43283. }
  43284. this.parseError(errStr, {
  43285. text: lexer.match,
  43286. token: this.terminals_[symbol] || symbol,
  43287. line: lexer.yylineno,
  43288. loc: yyloc,
  43289. expected: expected
  43290. });
  43291. }
  43292. if (action[0] instanceof Array && action.length > 1) {
  43293. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  43294. }
  43295. switch (action[0]) {
  43296. case 1:
  43297. stack.push(symbol);
  43298. vstack.push(lexer.yytext);
  43299. lstack.push(lexer.yylloc);
  43300. stack.push(action[1]);
  43301. symbol = null;
  43302. if (!preErrorSymbol) {
  43303. yyleng = lexer.yyleng;
  43304. yytext = lexer.yytext;
  43305. yylineno = lexer.yylineno;
  43306. yyloc = lexer.yylloc;
  43307. if (recovering > 0) {
  43308. recovering--;
  43309. }
  43310. } else {
  43311. symbol = preErrorSymbol;
  43312. preErrorSymbol = null;
  43313. }
  43314. break;
  43315. case 2:
  43316. len = this.productions_[action[1]][1];
  43317. yyval.$ = vstack[vstack.length - len];
  43318. yyval._$ = {
  43319. first_line: lstack[lstack.length - (len || 1)].first_line,
  43320. last_line: lstack[lstack.length - 1].last_line,
  43321. first_column: lstack[lstack.length - (len || 1)].first_column,
  43322. last_column: lstack[lstack.length - 1].last_column
  43323. };
  43324. if (ranges) {
  43325. yyval._$.range = [
  43326. lstack[lstack.length - (len || 1)].range[0],
  43327. lstack[lstack.length - 1].range[1]
  43328. ];
  43329. }
  43330. r = this.performAction.apply(yyval, [
  43331. yytext,
  43332. yyleng,
  43333. yylineno,
  43334. sharedState.yy,
  43335. action[1],
  43336. vstack,
  43337. lstack
  43338. ].concat(args));
  43339. if (typeof r !== 'undefined') {
  43340. return r;
  43341. }
  43342. if (len) {
  43343. stack = stack.slice(0, -1 * len * 2);
  43344. vstack = vstack.slice(0, -1 * len);
  43345. lstack = lstack.slice(0, -1 * len);
  43346. }
  43347. stack.push(this.productions_[action[1]][0]);
  43348. vstack.push(yyval.$);
  43349. lstack.push(yyval._$);
  43350. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  43351. stack.push(newState);
  43352. break;
  43353. case 3:
  43354. return true;
  43355. }
  43356. }
  43357. return true;
  43358. }};
  43359. /* generated by jison-lex 0.3.4 */
  43360. var lexer = (function(){
  43361. var lexer = ({
  43362. EOF:1,
  43363. parseError:function parseError(str, hash) {
  43364. if (this.yy.parser) {
  43365. this.yy.parser.parseError(str, hash);
  43366. } else {
  43367. throw new Error(str);
  43368. }
  43369. },
  43370. // resets the lexer, sets new input
  43371. setInput:function (input, yy) {
  43372. this.yy = yy || this.yy || {};
  43373. this._input = input;
  43374. this._more = this._backtrack = this.done = false;
  43375. this.yylineno = this.yyleng = 0;
  43376. this.yytext = this.matched = this.match = '';
  43377. this.conditionStack = ['INITIAL'];
  43378. this.yylloc = {
  43379. first_line: 1,
  43380. first_column: 0,
  43381. last_line: 1,
  43382. last_column: 0
  43383. };
  43384. if (this.options.ranges) {
  43385. this.yylloc.range = [0,0];
  43386. }
  43387. this.offset = 0;
  43388. return this;
  43389. },
  43390. // consumes and returns one char from the input
  43391. input:function () {
  43392. var ch = this._input[0];
  43393. this.yytext += ch;
  43394. this.yyleng++;
  43395. this.offset++;
  43396. this.match += ch;
  43397. this.matched += ch;
  43398. var lines = ch.match(/(?:\r\n?|\n).*/g);
  43399. if (lines) {
  43400. this.yylineno++;
  43401. this.yylloc.last_line++;
  43402. } else {
  43403. this.yylloc.last_column++;
  43404. }
  43405. if (this.options.ranges) {
  43406. this.yylloc.range[1]++;
  43407. }
  43408. this._input = this._input.slice(1);
  43409. return ch;
  43410. },
  43411. // unshifts one char (or a string) into the input
  43412. unput:function (ch) {
  43413. var len = ch.length;
  43414. var lines = ch.split(/(?:\r\n?|\n)/g);
  43415. this._input = ch + this._input;
  43416. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  43417. //this.yyleng -= len;
  43418. this.offset -= len;
  43419. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  43420. this.match = this.match.substr(0, this.match.length - 1);
  43421. this.matched = this.matched.substr(0, this.matched.length - 1);
  43422. if (lines.length - 1) {
  43423. this.yylineno -= lines.length - 1;
  43424. }
  43425. var r = this.yylloc.range;
  43426. this.yylloc = {
  43427. first_line: this.yylloc.first_line,
  43428. last_line: this.yylineno + 1,
  43429. first_column: this.yylloc.first_column,
  43430. last_column: lines ?
  43431. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  43432. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  43433. this.yylloc.first_column - len
  43434. };
  43435. if (this.options.ranges) {
  43436. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  43437. }
  43438. this.yyleng = this.yytext.length;
  43439. return this;
  43440. },
  43441. // When called from action, caches matched text and appends it on next action
  43442. more:function () {
  43443. this._more = true;
  43444. return this;
  43445. },
  43446. // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
  43447. reject:function () {
  43448. if (this.options.backtrack_lexer) {
  43449. this._backtrack = true;
  43450. } else {
  43451. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
  43452. text: "",
  43453. token: null,
  43454. line: this.yylineno
  43455. });
  43456. }
  43457. return this;
  43458. },
  43459. // retain first n characters of the match
  43460. less:function (n) {
  43461. this.unput(this.match.slice(n));
  43462. },
  43463. // displays already matched input, i.e. for error messages
  43464. pastInput:function () {
  43465. var past = this.matched.substr(0, this.matched.length - this.match.length);
  43466. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  43467. },
  43468. // displays upcoming input, i.e. for error messages
  43469. upcomingInput:function () {
  43470. var next = this.match;
  43471. if (next.length < 20) {
  43472. next += this._input.substr(0, 20-next.length);
  43473. }
  43474. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  43475. },
  43476. // displays the character position where the lexing error occurred, i.e. for error messages
  43477. showPosition:function () {
  43478. var pre = this.pastInput();
  43479. var c = new Array(pre.length + 1).join("-");
  43480. return pre + this.upcomingInput() + "\n" + c + "^";
  43481. },
  43482. // test the lexed token: return FALSE when not a match, otherwise return token
  43483. test_match:function(match, indexed_rule) {
  43484. var token,
  43485. lines,
  43486. backup;
  43487. if (this.options.backtrack_lexer) {
  43488. // save context
  43489. backup = {
  43490. yylineno: this.yylineno,
  43491. yylloc: {
  43492. first_line: this.yylloc.first_line,
  43493. last_line: this.last_line,
  43494. first_column: this.yylloc.first_column,
  43495. last_column: this.yylloc.last_column
  43496. },
  43497. yytext: this.yytext,
  43498. match: this.match,
  43499. matches: this.matches,
  43500. matched: this.matched,
  43501. yyleng: this.yyleng,
  43502. offset: this.offset,
  43503. _more: this._more,
  43504. _input: this._input,
  43505. yy: this.yy,
  43506. conditionStack: this.conditionStack.slice(0),
  43507. done: this.done
  43508. };
  43509. if (this.options.ranges) {
  43510. backup.yylloc.range = this.yylloc.range.slice(0);
  43511. }
  43512. }
  43513. lines = match[0].match(/(?:\r\n?|\n).*/g);
  43514. if (lines) {
  43515. this.yylineno += lines.length;
  43516. }
  43517. this.yylloc = {
  43518. first_line: this.yylloc.last_line,
  43519. last_line: this.yylineno + 1,
  43520. first_column: this.yylloc.last_column,
  43521. last_column: lines ?
  43522. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  43523. this.yylloc.last_column + match[0].length
  43524. };
  43525. this.yytext += match[0];
  43526. this.match += match[0];
  43527. this.matches = match;
  43528. this.yyleng = this.yytext.length;
  43529. if (this.options.ranges) {
  43530. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  43531. }
  43532. this._more = false;
  43533. this._backtrack = false;
  43534. this._input = this._input.slice(match[0].length);
  43535. this.matched += match[0];
  43536. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  43537. if (this.done && this._input) {
  43538. this.done = false;
  43539. }
  43540. if (token) {
  43541. return token;
  43542. } else if (this._backtrack) {
  43543. // recover context
  43544. for (var k in backup) {
  43545. this[k] = backup[k];
  43546. }
  43547. return false; // rule action called reject() implying the next rule should be tested instead.
  43548. }
  43549. return false;
  43550. },
  43551. // return next match in input
  43552. next:function () {
  43553. if (this.done) {
  43554. return this.EOF;
  43555. }
  43556. if (!this._input) {
  43557. this.done = true;
  43558. }
  43559. var token,
  43560. match,
  43561. tempMatch,
  43562. index;
  43563. if (!this._more) {
  43564. this.yytext = '';
  43565. this.match = '';
  43566. }
  43567. var rules = this._currentRules();
  43568. for (var i = 0; i < rules.length; i++) {
  43569. tempMatch = this._input.match(this.rules[rules[i]]);
  43570. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  43571. match = tempMatch;
  43572. index = i;
  43573. if (this.options.backtrack_lexer) {
  43574. token = this.test_match(tempMatch, rules[i]);
  43575. if (token !== false) {
  43576. return token;
  43577. } else if (this._backtrack) {
  43578. match = false;
  43579. continue; // rule action called reject() implying a rule MISmatch.
  43580. } else {
  43581. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  43582. return false;
  43583. }
  43584. } else if (!this.options.flex) {
  43585. break;
  43586. }
  43587. }
  43588. }
  43589. if (match) {
  43590. token = this.test_match(match, rules[index]);
  43591. if (token !== false) {
  43592. return token;
  43593. }
  43594. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  43595. return false;
  43596. }
  43597. if (this._input === "") {
  43598. return this.EOF;
  43599. } else {
  43600. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  43601. text: "",
  43602. token: null,
  43603. line: this.yylineno
  43604. });
  43605. }
  43606. },
  43607. // return next match that has a token
  43608. lex:function lex () {
  43609. var r = this.next();
  43610. if (r) {
  43611. return r;
  43612. } else {
  43613. return this.lex();
  43614. }
  43615. },
  43616. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  43617. begin:function begin (condition) {
  43618. this.conditionStack.push(condition);
  43619. },
  43620. // pop the previously active lexer condition state off the condition stack
  43621. popState:function popState () {
  43622. var n = this.conditionStack.length - 1;
  43623. if (n > 0) {
  43624. return this.conditionStack.pop();
  43625. } else {
  43626. return this.conditionStack[0];
  43627. }
  43628. },
  43629. // produce the lexer rule set which is active for the currently active lexer condition state
  43630. _currentRules:function _currentRules () {
  43631. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  43632. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  43633. } else {
  43634. return this.conditions["INITIAL"].rules;
  43635. }
  43636. },
  43637. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  43638. topState:function topState (n) {
  43639. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  43640. if (n >= 0) {
  43641. return this.conditionStack[n];
  43642. } else {
  43643. return "INITIAL";
  43644. }
  43645. },
  43646. // alias for begin(condition)
  43647. pushState:function pushState (condition) {
  43648. this.begin(condition);
  43649. },
  43650. // return the number of states currently on the stack
  43651. stateStackSize:function stateStackSize() {
  43652. return this.conditionStack.length;
  43653. },
  43654. options: {},
  43655. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  43656. var YYSTATE=YY_START;
  43657. switch($avoiding_name_collisions) {
  43658. case 0:/* do nothing */
  43659. break;
  43660. case 1:this.begin("string");
  43661. break;
  43662. case 2:this.popState();
  43663. break;
  43664. case 3:return "STR";
  43665. break;
  43666. case 4:return 91;
  43667. break;
  43668. case 5:return 98;
  43669. break;
  43670. case 6:return 92;
  43671. break;
  43672. case 7:return 103;
  43673. break;
  43674. case 8:return 93;
  43675. break;
  43676. case 9:return 94;
  43677. break;
  43678. case 10:return 95;
  43679. break;
  43680. case 11:return 12;
  43681. break;
  43682. case 12:return 30;
  43683. break;
  43684. case 13:return 34;
  43685. break;
  43686. case 14:return 13;
  43687. break;
  43688. case 15:return 13;
  43689. break;
  43690. case 16:return 13;
  43691. break;
  43692. case 17:return 13;
  43693. break;
  43694. case 18:return 13;
  43695. break;
  43696. case 19:return 13;
  43697. break;
  43698. case 20:return 106;
  43699. break;
  43700. case 21:return 114;
  43701. break;
  43702. case 22:return 111;
  43703. break;
  43704. case 23:return 8;
  43705. break;
  43706. case 24:return 107;
  43707. break;
  43708. case 25:return 123;
  43709. break;
  43710. case 26:return 57;
  43711. break;
  43712. case 27:return 53;
  43713. break;
  43714. case 28:return 76;
  43715. break;
  43716. case 29:return 78;
  43717. break;
  43718. case 30:return 77;
  43719. break;
  43720. case 31:return 80;
  43721. break;
  43722. case 32:return 82;
  43723. break;
  43724. case 33:return 83;
  43725. break;
  43726. case 34:return 84;
  43727. break;
  43728. case 35:return 81;
  43729. break;
  43730. case 36:return 81;
  43731. break;
  43732. case 37:return 79;
  43733. break;
  43734. case 38:return 79;
  43735. break;
  43736. case 39:return 80;
  43737. break;
  43738. case 40:return 55;
  43739. break;
  43740. case 41:return 59;
  43741. break;
  43742. case 42:return 65;
  43743. break;
  43744. case 43:return 61;
  43745. break;
  43746. case 44:return 63;
  43747. break;
  43748. case 45:return 67;
  43749. break;
  43750. case 46:return 65;
  43751. break;
  43752. case 47:return 61;
  43753. break;
  43754. case 48:return 63;
  43755. break;
  43756. case 49:return 67;
  43757. break;
  43758. case 50:return 73;
  43759. break;
  43760. case 51:return 69;
  43761. break;
  43762. case 52:return 71;
  43763. break;
  43764. case 53:return 75;
  43765. break;
  43766. case 54:return 54;
  43767. break;
  43768. case 55:return 58;
  43769. break;
  43770. case 56:return 56;
  43771. break;
  43772. case 57:return 62;
  43773. break;
  43774. case 58:return 66;
  43775. break;
  43776. case 59:return 64;
  43777. break;
  43778. case 60:return 70;
  43779. break;
  43780. case 61:return 74;
  43781. break;
  43782. case 62:return 72;
  43783. break;
  43784. case 63:return 52;
  43785. break;
  43786. case 64:return 60;
  43787. break;
  43788. case 65:return 68;
  43789. break;
  43790. case 66:return 41;
  43791. break;
  43792. case 67:return 42;
  43793. break;
  43794. case 68:return 112;
  43795. break;
  43796. case 69:return 37;
  43797. break;
  43798. case 70:return 124;
  43799. break;
  43800. case 71:return 121;
  43801. break;
  43802. case 72:return 105;
  43803. break;
  43804. case 73:return 122;
  43805. break;
  43806. case 74:return 122;
  43807. break;
  43808. case 75:return 16;
  43809. break;
  43810. case 76:return 15;
  43811. break;
  43812. case 77:return 17;
  43813. break;
  43814. case 78:return 18;
  43815. break;
  43816. case 79:return 110;
  43817. break;
  43818. case 80:return 46;
  43819. break;
  43820. case 81:return 45;
  43821. break;
  43822. case 82:return 48;
  43823. break;
  43824. case 83:return 47;
  43825. break;
  43826. case 84:return 119;
  43827. break;
  43828. case 85:return 120;
  43829. break;
  43830. case 86:return 85;
  43831. break;
  43832. case 87:return 39;
  43833. break;
  43834. case 88:return 40;
  43835. break;
  43836. case 89:return 32;
  43837. break;
  43838. case 90:return 33;
  43839. break;
  43840. case 91:return 43
  43841. break;
  43842. case 92:return 44
  43843. break;
  43844. case 93:return 125;
  43845. break;
  43846. case 94:return 9;
  43847. break;
  43848. case 95:return 10;
  43849. break;
  43850. case 96:return 11;
  43851. break;
  43852. }
  43853. },
  43854. rules: [/^(?:%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:LR\b)/,/^(?:RL\b)/,/^(?:TB\b)/,/^(?:BT\b)/,/^(?:TD\b)/,/^(?:BR\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--[x]\s*)/,/^(?:\s*-->\s*)/,/^(?:\s*<-->\s*)/,/^(?:\s*[x]--[x]\s*)/,/^(?:\s*[o]--[o]\s*)/,/^(?:\s*[o]\.-[o]\s*)/,/^(?:\s*<==>\s*)/,/^(?:\s*[o]==[o]\s*)/,/^(?:\s*[x]==[x]\s*)/,/^(?:\s*[x].-[x]\s*)/,/^(?:\s*[x]-\.-[x]\s*)/,/^(?:\s*<\.->\s*)/,/^(?:\s*<-\.->\s*)/,/^(?:\s*[o]-\.-[o]\s*)/,/^(?:\s*--[o]\s*)/,/^(?:\s*---\s*)/,/^(?:\s*-\.-[x]\s*)/,/^(?:\s*-\.->\s*)/,/^(?:\s*-\.-[o]\s*)/,/^(?:\s*-\.-\s*)/,/^(?:\s*.-[x]\s*)/,/^(?:\s*\.->\s*)/,/^(?:\s*\.-[o]\s*)/,/^(?:\s*\.-\s*)/,/^(?:\s*==[x]\s*)/,/^(?:\s*==>\s*)/,/^(?:\s*==[o]\s*)/,/^(?:\s*==[\=]\s*)/,/^(?:\s*<--\s*)/,/^(?:\s*[x]--\s*)/,/^(?:\s*[o]--\s*)/,/^(?:\s*<-\.\s*)/,/^(?:\s*[x]-\.\s*)/,/^(?:\s*[o]-\.\s*)/,/^(?:\s*<==\s*)/,/^(?:\s*[x]==\s*)/,/^(?:\s*[o]==\s*)/,/^(?:\s*--\s*)/,/^(?:\s*-\.\s*)/,/^(?:\s*==\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_\/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:\n+)/,/^(?:\s)/,/^(?:$)/],
  43855. conditions: {"string":{"rules":[2,3],"inclusive":false},"INITIAL":{"rules":[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],"inclusive":true}}
  43856. });
  43857. return lexer;
  43858. })();
  43859. parser.lexer = lexer;
  43860. function Parser () {
  43861. this.yy = {};
  43862. }
  43863. Parser.prototype = parser;parser.Parser = Parser;
  43864. return new Parser;
  43865. })();
  43866. if (true) {
  43867. exports.parser = parser;
  43868. exports.Parser = parser.Parser;
  43869. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  43870. exports.main = function commonjsMain (args) {
  43871. if (!args[1]) {
  43872. console.log('Usage: '+args[0]+' FILE');
  43873. process.exit(1);
  43874. }
  43875. var source = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js").readFileSync(__webpack_require__(/*! path */ "./node_modules/path-browserify/index.js").normalize(args[1]), "utf8");
  43876. return exports.parser.parse(source);
  43877. };
  43878. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  43879. exports.main(process.argv.slice(1));
  43880. }
  43881. }
  43882. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  43883. /***/ }),
  43884. /***/ "./src/diagrams/gantt/ganttDb.js":
  43885. /*!***************************************!*\
  43886. !*** ./src/diagrams/gantt/ganttDb.js ***!
  43887. \***************************************/
  43888. /*! exports provided: clear, setAxisFormat, getAxisFormat, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */
  43889. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43890. "use strict";
  43891. __webpack_require__.r(__webpack_exports__);
  43892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  43893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAxisFormat", function() { return setAxisFormat; });
  43894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisFormat", function() { return getAxisFormat; });
  43895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDateFormat", function() { return setDateFormat; });
  43896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableInclusiveEndDates", function() { return enableInclusiveEndDates; });
  43897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "endDatesAreInclusive", function() { return endDatesAreInclusive; });
  43898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDateFormat", function() { return getDateFormat; });
  43899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setExcludes", function() { return setExcludes; });
  43900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getExcludes", function() { return getExcludes; });
  43901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTitle", function() { return setTitle; });
  43902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitle", function() { return getTitle; });
  43903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSection", function() { return addSection; });
  43904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSections", function() { return getSections; });
  43905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTasks", function() { return getTasks; });
  43906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTask", function() { return addTask; });
  43907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findTaskById", function() { return findTaskById; });
  43908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTaskOrg", function() { return addTaskOrg; });
  43909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLink", function() { return setLink; });
  43910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClass", function() { return setClass; });
  43911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClickEvent", function() { return setClickEvent; });
  43912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindFunctions", function() { return bindFunctions; });
  43913. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment-mini */ "./node_modules/moment-mini/moment.min.js");
  43914. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment_mini__WEBPACK_IMPORTED_MODULE_0__);
  43915. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @braintree/sanitize-url */ "./node_modules/@braintree/sanitize-url/index.js");
  43916. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__);
  43917. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  43918. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  43919. const config = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])();
  43920. let dateFormat = '';
  43921. let axisFormat = '';
  43922. let excludes = [];
  43923. let title = '';
  43924. let sections = [];
  43925. let tasks = [];
  43926. let currentSection = '';
  43927. const tags = ['active', 'done', 'crit', 'milestone'];
  43928. let funs = [];
  43929. let inclusiveEndDates = false;
  43930. const clear = function () {
  43931. sections = [];
  43932. tasks = [];
  43933. currentSection = '';
  43934. funs = [];
  43935. title = '';
  43936. taskCnt = 0;
  43937. lastTask = undefined;
  43938. lastTaskID = undefined;
  43939. rawTasks = [];
  43940. dateFormat = '';
  43941. axisFormat = '';
  43942. excludes = [];
  43943. inclusiveEndDates = false;
  43944. };
  43945. const setAxisFormat = function (txt) {
  43946. axisFormat = txt;
  43947. };
  43948. const getAxisFormat = function () {
  43949. return axisFormat;
  43950. };
  43951. const setDateFormat = function (txt) {
  43952. dateFormat = txt;
  43953. };
  43954. const enableInclusiveEndDates = function () {
  43955. inclusiveEndDates = true;
  43956. };
  43957. const endDatesAreInclusive = function () {
  43958. return inclusiveEndDates;
  43959. };
  43960. const getDateFormat = function () {
  43961. return dateFormat;
  43962. };
  43963. const setExcludes = function (txt) {
  43964. excludes = txt.toLowerCase().split(/[\s,]+/);
  43965. };
  43966. const getExcludes = function () {
  43967. return excludes;
  43968. };
  43969. const setTitle = function (txt) {
  43970. title = txt;
  43971. };
  43972. const getTitle = function () {
  43973. return title;
  43974. };
  43975. const addSection = function (txt) {
  43976. currentSection = txt;
  43977. sections.push(txt);
  43978. };
  43979. const getSections = function () {
  43980. return sections;
  43981. };
  43982. const getTasks = function () {
  43983. let allItemsPricessed = compileTasks();
  43984. const maxDepth = 10;
  43985. let iterationCount = 0;
  43986. while (!allItemsPricessed && iterationCount < maxDepth) {
  43987. allItemsPricessed = compileTasks();
  43988. iterationCount++;
  43989. }
  43990. tasks = rawTasks;
  43991. return tasks;
  43992. };
  43993. const isInvalidDate = function (date, dateFormat, excludes) {
  43994. if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {
  43995. return true;
  43996. }
  43997. if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {
  43998. return true;
  43999. }
  44000. return excludes.indexOf(date.format(dateFormat.trim())) >= 0;
  44001. };
  44002. const checkTaskDates = function (task, dateFormat, excludes) {
  44003. if (!excludes.length || task.manualEndTime) return;
  44004. let startTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(task.startTime, dateFormat, true);
  44005. startTime.add(1, 'd');
  44006. let endTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(task.endTime, dateFormat, true);
  44007. let renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);
  44008. task.endTime = endTime.toDate();
  44009. task.renderEndTime = renderEndTime;
  44010. };
  44011. const fixTaskDates = function (startTime, endTime, dateFormat, excludes) {
  44012. let invalid = false;
  44013. let renderEndTime = null;
  44014. while (startTime.date() <= endTime.date()) {
  44015. if (!invalid) {
  44016. renderEndTime = endTime.toDate();
  44017. }
  44018. invalid = isInvalidDate(startTime, dateFormat, excludes);
  44019. if (invalid) {
  44020. endTime.add(1, 'd');
  44021. }
  44022. startTime.add(1, 'd');
  44023. }
  44024. return renderEndTime;
  44025. };
  44026. const getStartDate = function (prevTime, dateFormat, str) {
  44027. str = str.trim(); // Test for after
  44028. const re = /^after\s+([\d\w-]+)/;
  44029. const afterStatement = re.exec(str.trim());
  44030. if (afterStatement !== null) {
  44031. const task = findTaskById(afterStatement[1]);
  44032. if (typeof task === 'undefined') {
  44033. const dt = new Date();
  44034. dt.setHours(0, 0, 0, 0);
  44035. return dt;
  44036. }
  44037. return task.endTime;
  44038. } // Check for actual date set
  44039. let mDate = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(str, dateFormat.trim(), true);
  44040. if (mDate.isValid()) {
  44041. return mDate.toDate();
  44042. } else {
  44043. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Invalid date:' + str);
  44044. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('With date format:' + dateFormat.trim());
  44045. } // Default date - now
  44046. return new Date();
  44047. };
  44048. const durationToDate = function (durationStatement, relativeTime) {
  44049. if (durationStatement !== null) {
  44050. switch (durationStatement[2]) {
  44051. case 's':
  44052. relativeTime.add(durationStatement[1], 'seconds');
  44053. break;
  44054. case 'm':
  44055. relativeTime.add(durationStatement[1], 'minutes');
  44056. break;
  44057. case 'h':
  44058. relativeTime.add(durationStatement[1], 'hours');
  44059. break;
  44060. case 'd':
  44061. relativeTime.add(durationStatement[1], 'days');
  44062. break;
  44063. case 'w':
  44064. relativeTime.add(durationStatement[1], 'weeks');
  44065. break;
  44066. }
  44067. } // Default date - now
  44068. return relativeTime.toDate();
  44069. };
  44070. const getEndDate = function (prevTime, dateFormat, str, inclusive) {
  44071. inclusive = inclusive || false;
  44072. str = str.trim(); // Check for actual date
  44073. let mDate = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(str, dateFormat.trim(), true);
  44074. if (mDate.isValid()) {
  44075. if (inclusive) {
  44076. mDate.add(1, 'd');
  44077. }
  44078. return mDate.toDate();
  44079. }
  44080. return durationToDate(/^([\d]+)([wdhms])/.exec(str.trim()), moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(prevTime));
  44081. };
  44082. let taskCnt = 0;
  44083. const parseId = function (idStr) {
  44084. if (typeof idStr === 'undefined') {
  44085. taskCnt = taskCnt + 1;
  44086. return 'task' + taskCnt;
  44087. }
  44088. return idStr;
  44089. }; // id, startDate, endDate
  44090. // id, startDate, length
  44091. // id, after x, endDate
  44092. // id, after x, length
  44093. // startDate, endDate
  44094. // startDate, length
  44095. // after x, endDate
  44096. // after x, length
  44097. // endDate
  44098. // length
  44099. const compileData = function (prevTask, dataStr) {
  44100. let ds;
  44101. if (dataStr.substr(0, 1) === ':') {
  44102. ds = dataStr.substr(1, dataStr.length);
  44103. } else {
  44104. ds = dataStr;
  44105. }
  44106. const data = ds.split(',');
  44107. const task = {}; // Get tags like active, done, crit and milestone
  44108. getTaskTags(data, task, tags);
  44109. for (let i = 0; i < data.length; i++) {
  44110. data[i] = data[i].trim();
  44111. }
  44112. let endTimeData = '';
  44113. switch (data.length) {
  44114. case 1:
  44115. task.id = parseId();
  44116. task.startTime = prevTask.endTime;
  44117. endTimeData = data[0];
  44118. break;
  44119. case 2:
  44120. task.id = parseId();
  44121. task.startTime = getStartDate(undefined, dateFormat, data[0]);
  44122. endTimeData = data[1];
  44123. break;
  44124. case 3:
  44125. task.id = parseId(data[0]);
  44126. task.startTime = getStartDate(undefined, dateFormat, data[1]);
  44127. endTimeData = data[2];
  44128. break;
  44129. default:
  44130. }
  44131. if (endTimeData) {
  44132. task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);
  44133. task.manualEndTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(endTimeData, 'YYYY-MM-DD', true).isValid();
  44134. checkTaskDates(task, dateFormat, excludes);
  44135. }
  44136. return task;
  44137. };
  44138. const parseData = function (prevTaskId, dataStr) {
  44139. let ds;
  44140. if (dataStr.substr(0, 1) === ':') {
  44141. ds = dataStr.substr(1, dataStr.length);
  44142. } else {
  44143. ds = dataStr;
  44144. }
  44145. const data = ds.split(',');
  44146. const task = {}; // Get tags like active, done, crit and milestone
  44147. getTaskTags(data, task, tags);
  44148. for (let i = 0; i < data.length; i++) {
  44149. data[i] = data[i].trim();
  44150. }
  44151. switch (data.length) {
  44152. case 1:
  44153. task.id = parseId();
  44154. task.startTime = {
  44155. type: 'prevTaskEnd',
  44156. id: prevTaskId
  44157. };
  44158. task.endTime = {
  44159. data: data[0]
  44160. };
  44161. break;
  44162. case 2:
  44163. task.id = parseId();
  44164. task.startTime = {
  44165. type: 'getStartDate',
  44166. startData: data[0]
  44167. };
  44168. task.endTime = {
  44169. data: data[1]
  44170. };
  44171. break;
  44172. case 3:
  44173. task.id = parseId(data[0]);
  44174. task.startTime = {
  44175. type: 'getStartDate',
  44176. startData: data[1]
  44177. };
  44178. task.endTime = {
  44179. data: data[2]
  44180. };
  44181. break;
  44182. default:
  44183. }
  44184. return task;
  44185. };
  44186. let lastTask;
  44187. let lastTaskID;
  44188. let rawTasks = [];
  44189. const taskDb = {};
  44190. const addTask = function (descr, data) {
  44191. const rawTask = {
  44192. section: currentSection,
  44193. type: currentSection,
  44194. processed: false,
  44195. manualEndTime: false,
  44196. renderEndTime: null,
  44197. raw: {
  44198. data: data
  44199. },
  44200. task: descr,
  44201. classes: []
  44202. };
  44203. const taskInfo = parseData(lastTaskID, data);
  44204. rawTask.raw.startTime = taskInfo.startTime;
  44205. rawTask.raw.endTime = taskInfo.endTime;
  44206. rawTask.id = taskInfo.id;
  44207. rawTask.prevTaskId = lastTaskID;
  44208. rawTask.active = taskInfo.active;
  44209. rawTask.done = taskInfo.done;
  44210. rawTask.crit = taskInfo.crit;
  44211. rawTask.milestone = taskInfo.milestone;
  44212. const pos = rawTasks.push(rawTask);
  44213. lastTaskID = rawTask.id; // Store cross ref
  44214. taskDb[rawTask.id] = pos - 1;
  44215. };
  44216. const findTaskById = function (id) {
  44217. const pos = taskDb[id];
  44218. return rawTasks[pos];
  44219. };
  44220. const addTaskOrg = function (descr, data) {
  44221. const newTask = {
  44222. section: currentSection,
  44223. type: currentSection,
  44224. description: descr,
  44225. task: descr,
  44226. classes: []
  44227. };
  44228. const taskInfo = compileData(lastTask, data);
  44229. newTask.startTime = taskInfo.startTime;
  44230. newTask.endTime = taskInfo.endTime;
  44231. newTask.id = taskInfo.id;
  44232. newTask.active = taskInfo.active;
  44233. newTask.done = taskInfo.done;
  44234. newTask.crit = taskInfo.crit;
  44235. newTask.milestone = taskInfo.milestone;
  44236. lastTask = newTask;
  44237. tasks.push(newTask);
  44238. };
  44239. const compileTasks = function () {
  44240. const compileTask = function (pos) {
  44241. const task = rawTasks[pos];
  44242. let startTime = '';
  44243. switch (rawTasks[pos].raw.startTime.type) {
  44244. case 'prevTaskEnd':
  44245. const prevTask = findTaskById(task.prevTaskId);
  44246. task.startTime = prevTask.endTime;
  44247. break;
  44248. case 'getStartDate':
  44249. startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);
  44250. if (startTime) {
  44251. rawTasks[pos].startTime = startTime;
  44252. }
  44253. break;
  44254. }
  44255. if (rawTasks[pos].startTime) {
  44256. rawTasks[pos].endTime = getEndDate(rawTasks[pos].startTime, dateFormat, rawTasks[pos].raw.endTime.data, inclusiveEndDates);
  44257. if (rawTasks[pos].endTime) {
  44258. rawTasks[pos].processed = true;
  44259. rawTasks[pos].manualEndTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(rawTasks[pos].raw.endTime.data, 'YYYY-MM-DD', true).isValid();
  44260. checkTaskDates(rawTasks[pos], dateFormat, excludes);
  44261. }
  44262. }
  44263. return rawTasks[pos].processed;
  44264. };
  44265. let allProcessed = true;
  44266. for (let i = 0; i < rawTasks.length; i++) {
  44267. compileTask(i);
  44268. allProcessed = allProcessed && rawTasks[i].processed;
  44269. }
  44270. return allProcessed;
  44271. };
  44272. /**
  44273. * Called by parser when a link is found. Adds the URL to the vertex data.
  44274. * @param ids Comma separated list of ids
  44275. * @param linkStr URL to create a link for
  44276. */
  44277. const setLink = function (ids, _linkStr) {
  44278. let linkStr = _linkStr;
  44279. if (config.securityLevel !== 'loose') {
  44280. linkStr = Object(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__["sanitizeUrl"])(_linkStr);
  44281. }
  44282. ids.split(',').forEach(function (id) {
  44283. let rawTask = findTaskById(id);
  44284. if (typeof rawTask !== 'undefined') {
  44285. pushFun(id, () => {
  44286. window.open(linkStr, '_self');
  44287. });
  44288. }
  44289. });
  44290. setClass(ids, 'clickable');
  44291. };
  44292. /**
  44293. * Called by parser when a special node is found, e.g. a clickable element.
  44294. * @param ids Comma separated list of ids
  44295. * @param className Class to add
  44296. */
  44297. const setClass = function (ids, className) {
  44298. ids.split(',').forEach(function (id) {
  44299. let rawTask = findTaskById(id);
  44300. if (typeof rawTask !== 'undefined') {
  44301. rawTask.classes.push(className);
  44302. }
  44303. });
  44304. };
  44305. const setClickFun = function (id, functionName, functionArgs) {
  44306. if (config.securityLevel !== 'loose') {
  44307. return;
  44308. }
  44309. if (typeof functionName === 'undefined') {
  44310. return;
  44311. }
  44312. let argList = [];
  44313. if (typeof functionArgs === 'string') {
  44314. /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */
  44315. argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
  44316. for (let i = 0; i < argList.length; i++) {
  44317. let item = argList[i].trim();
  44318. /* Removes all double quotes at the start and end of an argument */
  44319. /* This preserves all starting and ending whitespace inside */
  44320. if (item.charAt(0) === '"' && item.charAt(item.length - 1) === '"') {
  44321. item = item.substr(1, item.length - 2);
  44322. }
  44323. argList[i] = item;
  44324. }
  44325. }
  44326. let rawTask = findTaskById(id);
  44327. if (typeof rawTask !== 'undefined') {
  44328. pushFun(id, () => {
  44329. window[functionName](...argList);
  44330. });
  44331. }
  44332. };
  44333. /**
  44334. * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text
  44335. * @param id The task's id
  44336. * @param callbackFunction A function to be executed when clicked on the task or the task's text
  44337. */
  44338. const pushFun = function (id, callbackFunction) {
  44339. funs.push(function (element) {
  44340. // const elem = d3.select(element).select(`[id="${id}"]`)
  44341. const elem = document.querySelector(`[id="${id}"]`);
  44342. if (elem !== null) {
  44343. elem.addEventListener('click', function () {
  44344. callbackFunction();
  44345. });
  44346. }
  44347. });
  44348. funs.push(function (element) {
  44349. // const elem = d3.select(element).select(`[id="${id}-text"]`)
  44350. const elem = document.querySelector(`[id="${id}-text"]`);
  44351. if (elem !== null) {
  44352. elem.addEventListener('click', function () {
  44353. callbackFunction();
  44354. });
  44355. }
  44356. });
  44357. };
  44358. /**
  44359. * Called by parser when a click definition is found. Registers an event handler.
  44360. * @param ids Comma separated list of ids
  44361. * @param functionName Function to be called on click
  44362. * @param functionArgs Function args the function should be called with
  44363. */
  44364. const setClickEvent = function (ids, functionName, functionArgs) {
  44365. ids.split(',').forEach(function (id) {
  44366. setClickFun(id, functionName, functionArgs);
  44367. });
  44368. setClass(ids, 'clickable');
  44369. };
  44370. /**
  44371. * Binds all functions previously added to fun (specified through click) to the element
  44372. * @param element
  44373. */
  44374. const bindFunctions = function (element) {
  44375. funs.forEach(function (fun) {
  44376. fun(element);
  44377. });
  44378. };
  44379. /* harmony default export */ __webpack_exports__["default"] = ({
  44380. clear,
  44381. setDateFormat,
  44382. getDateFormat,
  44383. enableInclusiveEndDates,
  44384. endDatesAreInclusive,
  44385. setAxisFormat,
  44386. getAxisFormat,
  44387. setTitle,
  44388. getTitle,
  44389. addSection,
  44390. getSections,
  44391. getTasks,
  44392. addTask,
  44393. findTaskById,
  44394. addTaskOrg,
  44395. setExcludes,
  44396. getExcludes,
  44397. setClickEvent,
  44398. setLink,
  44399. bindFunctions,
  44400. durationToDate
  44401. });
  44402. function getTaskTags(data, task, tags) {
  44403. let matchFound = true;
  44404. while (matchFound) {
  44405. matchFound = false;
  44406. tags.forEach(function (t) {
  44407. const pattern = '^\\s*' + t + '\\s*$';
  44408. const regex = new RegExp(pattern);
  44409. if (data[0].match(regex)) {
  44410. task[t] = true;
  44411. data.shift(1);
  44412. matchFound = true;
  44413. }
  44414. });
  44415. }
  44416. }
  44417. /***/ }),
  44418. /***/ "./src/diagrams/gantt/ganttRenderer.js":
  44419. /*!*********************************************!*\
  44420. !*** ./src/diagrams/gantt/ganttRenderer.js ***!
  44421. \*********************************************/
  44422. /*! exports provided: setConf, draw, default */
  44423. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44424. "use strict";
  44425. __webpack_require__.r(__webpack_exports__);
  44426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  44427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  44428. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  44429. /* harmony import */ var _parser_gantt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison");
  44430. /* harmony import */ var _parser_gantt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_parser_gantt__WEBPACK_IMPORTED_MODULE_1__);
  44431. /* harmony import */ var _ganttDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ganttDb */ "./src/diagrams/gantt/ganttDb.js");
  44432. _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy = _ganttDb__WEBPACK_IMPORTED_MODULE_2__["default"];
  44433. const conf = {
  44434. titleTopMargin: 25,
  44435. barHeight: 20,
  44436. barGap: 4,
  44437. topPadding: 50,
  44438. rightPadding: 75,
  44439. leftPadding: 75,
  44440. gridLineStartPadding: 35,
  44441. fontSize: 11,
  44442. fontFamily: '"Open-Sans", "sans-serif"'
  44443. };
  44444. const setConf = function (cnf) {
  44445. const keys = Object.keys(cnf);
  44446. keys.forEach(function (key) {
  44447. conf[key] = cnf[key];
  44448. });
  44449. };
  44450. let w;
  44451. const draw = function (text, id) {
  44452. _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.clear();
  44453. _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].parse(text);
  44454. const elem = document.getElementById(id);
  44455. w = elem.parentElement.offsetWidth;
  44456. if (typeof w === 'undefined') {
  44457. w = 1200;
  44458. }
  44459. if (typeof conf.useWidth !== 'undefined') {
  44460. w = conf.useWidth;
  44461. }
  44462. const taskArray = _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getTasks(); // Set height based on number of tasks
  44463. const h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;
  44464. elem.setAttribute('height', '100%'); // Set viewBox
  44465. elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);
  44466. const svg = d3__WEBPACK_IMPORTED_MODULE_0__["select"](`[id="${id}"]`); // Set timescale
  44467. const timeScale = d3__WEBPACK_IMPORTED_MODULE_0__["scaleTime"]().domain([d3__WEBPACK_IMPORTED_MODULE_0__["min"](taskArray, function (d) {
  44468. return d.startTime;
  44469. }), d3__WEBPACK_IMPORTED_MODULE_0__["max"](taskArray, function (d) {
  44470. return d.endTime;
  44471. })]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);
  44472. let categories = [];
  44473. for (let i = 0; i < taskArray.length; i++) {
  44474. categories.push(taskArray[i].type);
  44475. }
  44476. const catsUnfiltered = categories; // for vert labels
  44477. categories = checkUnique(categories);
  44478. makeGant(taskArray, w, h);
  44479. if (typeof conf.useWidth !== 'undefined') {
  44480. elem.setAttribute('width', w);
  44481. }
  44482. svg.append('text').text(_parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getTitle()).attr('x', w / 2).attr('y', conf.titleTopMargin).attr('class', 'titleText');
  44483. function makeGant(tasks, pageWidth, pageHeight) {
  44484. const barHeight = conf.barHeight;
  44485. const gap = barHeight + conf.barGap;
  44486. const topPadding = conf.topPadding;
  44487. const leftPadding = conf.leftPadding;
  44488. const colorScale = d3__WEBPACK_IMPORTED_MODULE_0__["scaleLinear"]().domain([0, categories.length]).range(['#00B9FA', '#F95002']).interpolate(d3__WEBPACK_IMPORTED_MODULE_0__["interpolateHcl"]);
  44489. makeGrid(leftPadding, topPadding, pageWidth, pageHeight);
  44490. drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);
  44491. vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);
  44492. drawToday(leftPadding, topPadding, pageWidth, pageHeight);
  44493. }
  44494. function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w, h) {
  44495. // Draw background rects covering the entire width of the graph, these form the section rows.
  44496. svg.append('g').selectAll('rect').data(theArray).enter().append('rect').attr('x', 0).attr('y', function (d, i) {
  44497. return i * theGap + theTopPad - 2;
  44498. }).attr('width', function () {
  44499. return w - conf.rightPadding / 2;
  44500. }).attr('height', theGap).attr('class', function (d) {
  44501. for (let i = 0; i < categories.length; i++) {
  44502. if (d.type === categories[i]) {
  44503. return 'section section' + i % conf.numberSectionStyles;
  44504. }
  44505. }
  44506. return 'section section0';
  44507. }); // Draw the rects representing the tasks
  44508. const rectangles = svg.append('g').selectAll('rect').data(theArray).enter();
  44509. rectangles.append('rect').attr('id', function (d) {
  44510. return d.id;
  44511. }).attr('rx', 3).attr('ry', 3).attr('x', function (d) {
  44512. if (d.milestone) {
  44513. return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
  44514. }
  44515. return timeScale(d.startTime) + theSidePad;
  44516. }).attr('y', function (d, i) {
  44517. return i * theGap + theTopPad;
  44518. }).attr('width', function (d) {
  44519. if (d.milestone) {
  44520. return theBarHeight;
  44521. }
  44522. return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);
  44523. }).attr('height', theBarHeight).attr('transform-origin', function (d, i) {
  44524. return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + 'px ' + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + 'px';
  44525. }).attr('class', function (d) {
  44526. const res = 'task';
  44527. let classStr = '';
  44528. if (d.classes.length > 0) {
  44529. classStr = d.classes.join(' ');
  44530. }
  44531. let secNum = 0;
  44532. for (let i = 0; i < categories.length; i++) {
  44533. if (d.type === categories[i]) {
  44534. secNum = i % conf.numberSectionStyles;
  44535. }
  44536. }
  44537. let taskClass = '';
  44538. if (d.active) {
  44539. if (d.crit) {
  44540. taskClass += ' activeCrit';
  44541. } else {
  44542. taskClass = ' active';
  44543. }
  44544. } else if (d.done) {
  44545. if (d.crit) {
  44546. taskClass = ' doneCrit';
  44547. } else {
  44548. taskClass = ' done';
  44549. }
  44550. } else {
  44551. if (d.crit) {
  44552. taskClass += ' crit';
  44553. }
  44554. }
  44555. if (taskClass.length === 0) {
  44556. taskClass = ' task';
  44557. }
  44558. if (d.milestone) {
  44559. taskClass = ' milestone ' + taskClass;
  44560. }
  44561. taskClass += secNum;
  44562. taskClass += ' ' + classStr;
  44563. return res + taskClass;
  44564. }); // Append task labels
  44565. rectangles.append('text').attr('id', function (d) {
  44566. return d.id + '-text';
  44567. }).text(function (d) {
  44568. return d.task;
  44569. }).attr('font-size', conf.fontSize).attr('x', function (d) {
  44570. let startX = timeScale(d.startTime);
  44571. let endX = timeScale(d.renderEndTime || d.endTime);
  44572. if (d.milestone) {
  44573. startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
  44574. }
  44575. if (d.milestone) {
  44576. endX = startX + theBarHeight;
  44577. }
  44578. const textWidth = this.getBBox().width; // Check id text width > width of rectangle
  44579. if (textWidth > endX - startX) {
  44580. if (endX + textWidth + 1.5 * conf.leftPadding > w) {
  44581. return startX + theSidePad - 5;
  44582. } else {
  44583. return endX + theSidePad + 5;
  44584. }
  44585. } else {
  44586. return (endX - startX) / 2 + startX + theSidePad;
  44587. }
  44588. }).attr('y', function (d, i) {
  44589. return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
  44590. }).attr('text-height', theBarHeight).attr('class', function (d) {
  44591. const startX = timeScale(d.startTime);
  44592. let endX = timeScale(d.endTime);
  44593. if (d.milestone) {
  44594. endX = startX + theBarHeight;
  44595. }
  44596. const textWidth = this.getBBox().width;
  44597. let classStr = '';
  44598. if (d.classes.length > 0) {
  44599. classStr = d.classes.join(' ');
  44600. }
  44601. let secNum = 0;
  44602. for (let i = 0; i < categories.length; i++) {
  44603. if (d.type === categories[i]) {
  44604. secNum = i % conf.numberSectionStyles;
  44605. }
  44606. }
  44607. let taskType = '';
  44608. if (d.active) {
  44609. if (d.crit) {
  44610. taskType = 'activeCritText' + secNum;
  44611. } else {
  44612. taskType = 'activeText' + secNum;
  44613. }
  44614. }
  44615. if (d.done) {
  44616. if (d.crit) {
  44617. taskType = taskType + ' doneCritText' + secNum;
  44618. } else {
  44619. taskType = taskType + ' doneText' + secNum;
  44620. }
  44621. } else {
  44622. if (d.crit) {
  44623. taskType = taskType + ' critText' + secNum;
  44624. }
  44625. }
  44626. if (d.milestone) {
  44627. taskType += ' milestoneText';
  44628. } // Check id text width > width of rectangle
  44629. if (textWidth > endX - startX) {
  44630. if (endX + textWidth + 1.5 * conf.leftPadding > w) {
  44631. return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;
  44632. } else {
  44633. return classStr + ' taskTextOutsideRight taskTextOutside' + secNum + ' ' + taskType;
  44634. }
  44635. } else {
  44636. return classStr + ' taskText taskText' + secNum + ' ' + taskType;
  44637. }
  44638. });
  44639. }
  44640. function makeGrid(theSidePad, theTopPad, w, h) {
  44641. let xAxis = d3__WEBPACK_IMPORTED_MODULE_0__["axisBottom"](timeScale).tickSize(-h + theTopPad + conf.gridLineStartPadding).tickFormat(d3__WEBPACK_IMPORTED_MODULE_0__["timeFormat"](_parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));
  44642. svg.append('g').attr('class', 'grid').attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')').call(xAxis).selectAll('text').style('text-anchor', 'middle').attr('fill', '#000').attr('stroke', 'none').attr('font-size', 10).attr('dy', '1em');
  44643. }
  44644. function vertLabels(theGap, theTopPad) {
  44645. const numOccurances = [];
  44646. let prevGap = 0;
  44647. for (let i = 0; i < categories.length; i++) {
  44648. numOccurances[i] = [categories[i], getCount(categories[i], catsUnfiltered)];
  44649. }
  44650. svg.append('g') // without doing this, impossible to put grid lines behind text
  44651. .selectAll('text').data(numOccurances).enter().append('text').text(function (d) {
  44652. return d[0];
  44653. }).attr('x', 10).attr('y', function (d, i) {
  44654. if (i > 0) {
  44655. for (let j = 0; j < i; j++) {
  44656. prevGap += numOccurances[i - 1][1];
  44657. return d[1] * theGap / 2 + prevGap * theGap + theTopPad;
  44658. }
  44659. } else {
  44660. return d[1] * theGap / 2 + theTopPad;
  44661. }
  44662. }).attr('class', function (d) {
  44663. for (let i = 0; i < categories.length; i++) {
  44664. if (d[0] === categories[i]) {
  44665. return 'sectionTitle sectionTitle' + i % conf.numberSectionStyles;
  44666. }
  44667. }
  44668. return 'sectionTitle';
  44669. });
  44670. }
  44671. function drawToday(theSidePad, theTopPad, w, h) {
  44672. const todayG = svg.append('g').attr('class', 'today');
  44673. const today = new Date();
  44674. todayG.append('line').attr('x1', timeScale(today) + theSidePad).attr('x2', timeScale(today) + theSidePad).attr('y1', conf.titleTopMargin).attr('y2', h - conf.titleTopMargin).attr('class', 'today');
  44675. } // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript
  44676. function checkUnique(arr) {
  44677. const hash = {};
  44678. const result = [];
  44679. for (let i = 0, l = arr.length; i < l; ++i) {
  44680. if (!hash.hasOwnProperty(arr[i])) {
  44681. // it works with objects! in FF, at least
  44682. hash[arr[i]] = true;
  44683. result.push(arr[i]);
  44684. }
  44685. }
  44686. return result;
  44687. } // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array
  44688. function getCounts(arr) {
  44689. let i = arr.length; // const to loop over
  44690. const obj = {}; // obj to store results
  44691. while (i) {
  44692. obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences
  44693. }
  44694. return obj;
  44695. } // get specific from everything
  44696. function getCount(word, arr) {
  44697. return getCounts(arr)[word] || 0;
  44698. }
  44699. };
  44700. /* harmony default export */ __webpack_exports__["default"] = ({
  44701. setConf,
  44702. draw
  44703. });
  44704. /***/ }),
  44705. /***/ "./src/diagrams/gantt/parser/gantt.jison":
  44706. /*!***********************************************!*\
  44707. !*** ./src/diagrams/gantt/parser/gantt.jison ***!
  44708. \***********************************************/
  44709. /*! no static exports found */
  44710. /***/ (function(module, exports, __webpack_require__) {
  44711. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  44712. /*
  44713. Returns a Parser object of the following structure:
  44714. Parser: {
  44715. yy: {}
  44716. }
  44717. Parser.prototype: {
  44718. yy: {},
  44719. trace: function(),
  44720. symbols_: {associative list: name ==> number},
  44721. terminals_: {associative list: number ==> name},
  44722. productions_: [...],
  44723. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  44724. table: [...],
  44725. defaultActions: {...},
  44726. parseError: function(str, hash),
  44727. parse: function(input),
  44728. lexer: {
  44729. EOF: 1,
  44730. parseError: function(str, hash),
  44731. setInput: function(input),
  44732. input: function(),
  44733. unput: function(str),
  44734. more: function(),
  44735. less: function(n),
  44736. pastInput: function(),
  44737. upcomingInput: function(),
  44738. showPosition: function(),
  44739. test_match: function(regex_match_array, rule_index),
  44740. next: function(),
  44741. lex: function(),
  44742. begin: function(condition),
  44743. popState: function(),
  44744. _currentRules: function(),
  44745. topState: function(),
  44746. pushState: function(condition),
  44747. options: {
  44748. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  44749. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  44750. backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
  44751. },
  44752. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  44753. rules: [...],
  44754. conditions: {associative list: name ==> set},
  44755. }
  44756. }
  44757. token location info (@$, _$, etc.): {
  44758. first_line: n,
  44759. last_line: n,
  44760. first_column: n,
  44761. last_column: n,
  44762. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  44763. }
  44764. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  44765. text: (matched text)
  44766. token: (the produced terminal token, if any)
  44767. line: (yylineno)
  44768. }
  44769. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  44770. loc: (yylloc)
  44771. expected: (string describing the set of expected tokens)
  44772. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  44773. }
  44774. */
  44775. var parser = (function(){
  44776. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,18,20],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,16],$V8=[1,17];
  44777. var parser = {trace: function trace () { },
  44778. yy: {},
  44779. symbols_: {"error":2,"start":3,"gantt":4,"document":5,"EOF":6,"line":7,"SPACE":8,"statement":9,"NL":10,"dateFormat":11,"inclusiveEndDates":12,"axisFormat":13,"excludes":14,"title":15,"section":16,"clickStatement":17,"taskTxt":18,"taskData":19,"click":20,"callbackname":21,"callbackargs":22,"href":23,"clickStatementDebug":24,"$accept":0,"$end":1},
  44780. terminals_: {2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"inclusiveEndDates",13:"axisFormat",14:"excludes",15:"title",16:"section",18:"taskTxt",19:"taskData",20:"click",21:"callbackname",22:"callbackargs",23:"href"},
  44781. productions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[17,2],[17,3],[17,3],[17,4],[17,3],[17,4],[17,2],[24,2],[24,3],[24,3],[24,4],[24,3],[24,4],[24,2]],
  44782. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  44783. /* this == yyval */
  44784. var $0 = $$.length - 1;
  44785. switch (yystate) {
  44786. case 1:
  44787. return $$[$0-1];
  44788. break;
  44789. case 2:
  44790. this.$ = []
  44791. break;
  44792. case 3:
  44793. $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
  44794. break;
  44795. case 4: case 5:
  44796. this.$ = $$[$0]
  44797. break;
  44798. case 6: case 7:
  44799. this.$=[];
  44800. break;
  44801. case 8:
  44802. yy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);
  44803. break;
  44804. case 9:
  44805. yy.enableInclusiveEndDates();this.$=$$[$0].substr(18);
  44806. break;
  44807. case 10:
  44808. yy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);
  44809. break;
  44810. case 11:
  44811. yy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);
  44812. break;
  44813. case 12:
  44814. yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);
  44815. break;
  44816. case 13:
  44817. yy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);
  44818. break;
  44819. case 15:
  44820. yy.addTask($$[$0-1],$$[$0]);this.$='task';
  44821. break;
  44822. case 16:
  44823. this.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);
  44824. break;
  44825. case 17:
  44826. this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);
  44827. break;
  44828. case 18:
  44829. this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);
  44830. break;
  44831. case 19:
  44832. this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);
  44833. break;
  44834. case 20:
  44835. this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);
  44836. break;
  44837. case 21:
  44838. this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);
  44839. break;
  44840. case 22:
  44841. this.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);
  44842. break;
  44843. case 23: case 29:
  44844. this.$=$$[$0-1] + ' ' + $$[$0];
  44845. break;
  44846. case 24: case 25: case 27:
  44847. this.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];
  44848. break;
  44849. case 26: case 28:
  44850. this.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];
  44851. break;
  44852. }
  44853. },
  44854. table: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:15,18:$V7,20:$V8},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:18,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:15,18:$V7,20:$V8},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),{19:[1,19]},{21:[1,20],23:[1,21]},o($V0,[2,4]),o($V0,[2,15]),o($V0,[2,16],{22:[1,22],23:[1,23]}),o($V0,[2,22],{21:[1,24]}),o($V0,[2,17],{23:[1,25]}),o($V0,[2,18]),o($V0,[2,20],{22:[1,26]}),o($V0,[2,19]),o($V0,[2,21])],
  44855. defaultActions: {},
  44856. parseError: function parseError (str, hash) {
  44857. if (hash.recoverable) {
  44858. this.trace(str);
  44859. } else {
  44860. var error = new Error(str);
  44861. error.hash = hash;
  44862. throw error;
  44863. }
  44864. },
  44865. parse: function parse(input) {
  44866. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  44867. var args = lstack.slice.call(arguments, 1);
  44868. var lexer = Object.create(this.lexer);
  44869. var sharedState = { yy: {} };
  44870. for (var k in this.yy) {
  44871. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  44872. sharedState.yy[k] = this.yy[k];
  44873. }
  44874. }
  44875. lexer.setInput(input, sharedState.yy);
  44876. sharedState.yy.lexer = lexer;
  44877. sharedState.yy.parser = this;
  44878. if (typeof lexer.yylloc == 'undefined') {
  44879. lexer.yylloc = {};
  44880. }
  44881. var yyloc = lexer.yylloc;
  44882. lstack.push(yyloc);
  44883. var ranges = lexer.options && lexer.options.ranges;
  44884. if (typeof sharedState.yy.parseError === 'function') {
  44885. this.parseError = sharedState.yy.parseError;
  44886. } else {
  44887. this.parseError = Object.getPrototypeOf(this).parseError;
  44888. }
  44889. function popStack(n) {
  44890. stack.length = stack.length - 2 * n;
  44891. vstack.length = vstack.length - n;
  44892. lstack.length = lstack.length - n;
  44893. }
  44894. function lex() {
  44895. var token;
  44896. token = tstack.pop() || lexer.lex() || EOF;
  44897. if (typeof token !== 'number') {
  44898. if (token instanceof Array) {
  44899. tstack = token;
  44900. token = tstack.pop();
  44901. }
  44902. token = self.symbols_[token] || token;
  44903. }
  44904. return token;
  44905. }
  44906. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  44907. while (true) {
  44908. state = stack[stack.length - 1];
  44909. if (this.defaultActions[state]) {
  44910. action = this.defaultActions[state];
  44911. } else {
  44912. if (symbol === null || typeof symbol == 'undefined') {
  44913. symbol = lex();
  44914. }
  44915. action = table[state] && table[state][symbol];
  44916. }
  44917. if (typeof action === 'undefined' || !action.length || !action[0]) {
  44918. var errStr = '';
  44919. expected = [];
  44920. for (p in table[state]) {
  44921. if (this.terminals_[p] && p > TERROR) {
  44922. expected.push('\'' + this.terminals_[p] + '\'');
  44923. }
  44924. }
  44925. if (lexer.showPosition) {
  44926. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  44927. } else {
  44928. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  44929. }
  44930. this.parseError(errStr, {
  44931. text: lexer.match,
  44932. token: this.terminals_[symbol] || symbol,
  44933. line: lexer.yylineno,
  44934. loc: yyloc,
  44935. expected: expected
  44936. });
  44937. }
  44938. if (action[0] instanceof Array && action.length > 1) {
  44939. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  44940. }
  44941. switch (action[0]) {
  44942. case 1:
  44943. stack.push(symbol);
  44944. vstack.push(lexer.yytext);
  44945. lstack.push(lexer.yylloc);
  44946. stack.push(action[1]);
  44947. symbol = null;
  44948. if (!preErrorSymbol) {
  44949. yyleng = lexer.yyleng;
  44950. yytext = lexer.yytext;
  44951. yylineno = lexer.yylineno;
  44952. yyloc = lexer.yylloc;
  44953. if (recovering > 0) {
  44954. recovering--;
  44955. }
  44956. } else {
  44957. symbol = preErrorSymbol;
  44958. preErrorSymbol = null;
  44959. }
  44960. break;
  44961. case 2:
  44962. len = this.productions_[action[1]][1];
  44963. yyval.$ = vstack[vstack.length - len];
  44964. yyval._$ = {
  44965. first_line: lstack[lstack.length - (len || 1)].first_line,
  44966. last_line: lstack[lstack.length - 1].last_line,
  44967. first_column: lstack[lstack.length - (len || 1)].first_column,
  44968. last_column: lstack[lstack.length - 1].last_column
  44969. };
  44970. if (ranges) {
  44971. yyval._$.range = [
  44972. lstack[lstack.length - (len || 1)].range[0],
  44973. lstack[lstack.length - 1].range[1]
  44974. ];
  44975. }
  44976. r = this.performAction.apply(yyval, [
  44977. yytext,
  44978. yyleng,
  44979. yylineno,
  44980. sharedState.yy,
  44981. action[1],
  44982. vstack,
  44983. lstack
  44984. ].concat(args));
  44985. if (typeof r !== 'undefined') {
  44986. return r;
  44987. }
  44988. if (len) {
  44989. stack = stack.slice(0, -1 * len * 2);
  44990. vstack = vstack.slice(0, -1 * len);
  44991. lstack = lstack.slice(0, -1 * len);
  44992. }
  44993. stack.push(this.productions_[action[1]][0]);
  44994. vstack.push(yyval.$);
  44995. lstack.push(yyval._$);
  44996. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  44997. stack.push(newState);
  44998. break;
  44999. case 3:
  45000. return true;
  45001. }
  45002. }
  45003. return true;
  45004. }};
  45005. /* generated by jison-lex 0.3.4 */
  45006. var lexer = (function(){
  45007. var lexer = ({
  45008. EOF:1,
  45009. parseError:function parseError(str, hash) {
  45010. if (this.yy.parser) {
  45011. this.yy.parser.parseError(str, hash);
  45012. } else {
  45013. throw new Error(str);
  45014. }
  45015. },
  45016. // resets the lexer, sets new input
  45017. setInput:function (input, yy) {
  45018. this.yy = yy || this.yy || {};
  45019. this._input = input;
  45020. this._more = this._backtrack = this.done = false;
  45021. this.yylineno = this.yyleng = 0;
  45022. this.yytext = this.matched = this.match = '';
  45023. this.conditionStack = ['INITIAL'];
  45024. this.yylloc = {
  45025. first_line: 1,
  45026. first_column: 0,
  45027. last_line: 1,
  45028. last_column: 0
  45029. };
  45030. if (this.options.ranges) {
  45031. this.yylloc.range = [0,0];
  45032. }
  45033. this.offset = 0;
  45034. return this;
  45035. },
  45036. // consumes and returns one char from the input
  45037. input:function () {
  45038. var ch = this._input[0];
  45039. this.yytext += ch;
  45040. this.yyleng++;
  45041. this.offset++;
  45042. this.match += ch;
  45043. this.matched += ch;
  45044. var lines = ch.match(/(?:\r\n?|\n).*/g);
  45045. if (lines) {
  45046. this.yylineno++;
  45047. this.yylloc.last_line++;
  45048. } else {
  45049. this.yylloc.last_column++;
  45050. }
  45051. if (this.options.ranges) {
  45052. this.yylloc.range[1]++;
  45053. }
  45054. this._input = this._input.slice(1);
  45055. return ch;
  45056. },
  45057. // unshifts one char (or a string) into the input
  45058. unput:function (ch) {
  45059. var len = ch.length;
  45060. var lines = ch.split(/(?:\r\n?|\n)/g);
  45061. this._input = ch + this._input;
  45062. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  45063. //this.yyleng -= len;
  45064. this.offset -= len;
  45065. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  45066. this.match = this.match.substr(0, this.match.length - 1);
  45067. this.matched = this.matched.substr(0, this.matched.length - 1);
  45068. if (lines.length - 1) {
  45069. this.yylineno -= lines.length - 1;
  45070. }
  45071. var r = this.yylloc.range;
  45072. this.yylloc = {
  45073. first_line: this.yylloc.first_line,
  45074. last_line: this.yylineno + 1,
  45075. first_column: this.yylloc.first_column,
  45076. last_column: lines ?
  45077. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  45078. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  45079. this.yylloc.first_column - len
  45080. };
  45081. if (this.options.ranges) {
  45082. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  45083. }
  45084. this.yyleng = this.yytext.length;
  45085. return this;
  45086. },
  45087. // When called from action, caches matched text and appends it on next action
  45088. more:function () {
  45089. this._more = true;
  45090. return this;
  45091. },
  45092. // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
  45093. reject:function () {
  45094. if (this.options.backtrack_lexer) {
  45095. this._backtrack = true;
  45096. } else {
  45097. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
  45098. text: "",
  45099. token: null,
  45100. line: this.yylineno
  45101. });
  45102. }
  45103. return this;
  45104. },
  45105. // retain first n characters of the match
  45106. less:function (n) {
  45107. this.unput(this.match.slice(n));
  45108. },
  45109. // displays already matched input, i.e. for error messages
  45110. pastInput:function () {
  45111. var past = this.matched.substr(0, this.matched.length - this.match.length);
  45112. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  45113. },
  45114. // displays upcoming input, i.e. for error messages
  45115. upcomingInput:function () {
  45116. var next = this.match;
  45117. if (next.length < 20) {
  45118. next += this._input.substr(0, 20-next.length);
  45119. }
  45120. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  45121. },
  45122. // displays the character position where the lexing error occurred, i.e. for error messages
  45123. showPosition:function () {
  45124. var pre = this.pastInput();
  45125. var c = new Array(pre.length + 1).join("-");
  45126. return pre + this.upcomingInput() + "\n" + c + "^";
  45127. },
  45128. // test the lexed token: return FALSE when not a match, otherwise return token
  45129. test_match:function(match, indexed_rule) {
  45130. var token,
  45131. lines,
  45132. backup;
  45133. if (this.options.backtrack_lexer) {
  45134. // save context
  45135. backup = {
  45136. yylineno: this.yylineno,
  45137. yylloc: {
  45138. first_line: this.yylloc.first_line,
  45139. last_line: this.last_line,
  45140. first_column: this.yylloc.first_column,
  45141. last_column: this.yylloc.last_column
  45142. },
  45143. yytext: this.yytext,
  45144. match: this.match,
  45145. matches: this.matches,
  45146. matched: this.matched,
  45147. yyleng: this.yyleng,
  45148. offset: this.offset,
  45149. _more: this._more,
  45150. _input: this._input,
  45151. yy: this.yy,
  45152. conditionStack: this.conditionStack.slice(0),
  45153. done: this.done
  45154. };
  45155. if (this.options.ranges) {
  45156. backup.yylloc.range = this.yylloc.range.slice(0);
  45157. }
  45158. }
  45159. lines = match[0].match(/(?:\r\n?|\n).*/g);
  45160. if (lines) {
  45161. this.yylineno += lines.length;
  45162. }
  45163. this.yylloc = {
  45164. first_line: this.yylloc.last_line,
  45165. last_line: this.yylineno + 1,
  45166. first_column: this.yylloc.last_column,
  45167. last_column: lines ?
  45168. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  45169. this.yylloc.last_column + match[0].length
  45170. };
  45171. this.yytext += match[0];
  45172. this.match += match[0];
  45173. this.matches = match;
  45174. this.yyleng = this.yytext.length;
  45175. if (this.options.ranges) {
  45176. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  45177. }
  45178. this._more = false;
  45179. this._backtrack = false;
  45180. this._input = this._input.slice(match[0].length);
  45181. this.matched += match[0];
  45182. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  45183. if (this.done && this._input) {
  45184. this.done = false;
  45185. }
  45186. if (token) {
  45187. return token;
  45188. } else if (this._backtrack) {
  45189. // recover context
  45190. for (var k in backup) {
  45191. this[k] = backup[k];
  45192. }
  45193. return false; // rule action called reject() implying the next rule should be tested instead.
  45194. }
  45195. return false;
  45196. },
  45197. // return next match in input
  45198. next:function () {
  45199. if (this.done) {
  45200. return this.EOF;
  45201. }
  45202. if (!this._input) {
  45203. this.done = true;
  45204. }
  45205. var token,
  45206. match,
  45207. tempMatch,
  45208. index;
  45209. if (!this._more) {
  45210. this.yytext = '';
  45211. this.match = '';
  45212. }
  45213. var rules = this._currentRules();
  45214. for (var i = 0; i < rules.length; i++) {
  45215. tempMatch = this._input.match(this.rules[rules[i]]);
  45216. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  45217. match = tempMatch;
  45218. index = i;
  45219. if (this.options.backtrack_lexer) {
  45220. token = this.test_match(tempMatch, rules[i]);
  45221. if (token !== false) {
  45222. return token;
  45223. } else if (this._backtrack) {
  45224. match = false;
  45225. continue; // rule action called reject() implying a rule MISmatch.
  45226. } else {
  45227. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  45228. return false;
  45229. }
  45230. } else if (!this.options.flex) {
  45231. break;
  45232. }
  45233. }
  45234. }
  45235. if (match) {
  45236. token = this.test_match(match, rules[index]);
  45237. if (token !== false) {
  45238. return token;
  45239. }
  45240. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  45241. return false;
  45242. }
  45243. if (this._input === "") {
  45244. return this.EOF;
  45245. } else {
  45246. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  45247. text: "",
  45248. token: null,
  45249. line: this.yylineno
  45250. });
  45251. }
  45252. },
  45253. // return next match that has a token
  45254. lex:function lex () {
  45255. var r = this.next();
  45256. if (r) {
  45257. return r;
  45258. } else {
  45259. return this.lex();
  45260. }
  45261. },
  45262. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  45263. begin:function begin (condition) {
  45264. this.conditionStack.push(condition);
  45265. },
  45266. // pop the previously active lexer condition state off the condition stack
  45267. popState:function popState () {
  45268. var n = this.conditionStack.length - 1;
  45269. if (n > 0) {
  45270. return this.conditionStack.pop();
  45271. } else {
  45272. return this.conditionStack[0];
  45273. }
  45274. },
  45275. // produce the lexer rule set which is active for the currently active lexer condition state
  45276. _currentRules:function _currentRules () {
  45277. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  45278. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  45279. } else {
  45280. return this.conditions["INITIAL"].rules;
  45281. }
  45282. },
  45283. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  45284. topState:function topState (n) {
  45285. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  45286. if (n >= 0) {
  45287. return this.conditionStack[n];
  45288. } else {
  45289. return "INITIAL";
  45290. }
  45291. },
  45292. // alias for begin(condition)
  45293. pushState:function pushState (condition) {
  45294. this.begin(condition);
  45295. },
  45296. // return the number of states currently on the stack
  45297. stateStackSize:function stateStackSize() {
  45298. return this.conditionStack.length;
  45299. },
  45300. options: {"case-insensitive":true},
  45301. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  45302. var YYSTATE=YY_START;
  45303. switch($avoiding_name_collisions) {
  45304. case 0:return 10;
  45305. break;
  45306. case 1:/* skip whitespace */
  45307. break;
  45308. case 2:/* skip comments */
  45309. break;
  45310. case 3:/* skip comments */
  45311. break;
  45312. case 4:this.begin("href");
  45313. break;
  45314. case 5:this.popState();
  45315. break;
  45316. case 6:return 23;
  45317. break;
  45318. case 7:this.begin("callbackname");
  45319. break;
  45320. case 8:this.popState();
  45321. break;
  45322. case 9:this.popState(); this.begin("callbackargs");
  45323. break;
  45324. case 10:return 21;
  45325. break;
  45326. case 11:this.popState();
  45327. break;
  45328. case 12:return 22;
  45329. break;
  45330. case 13:this.begin("click");
  45331. break;
  45332. case 14:this.popState();
  45333. break;
  45334. case 15:return 20;
  45335. break;
  45336. case 16:return 4;
  45337. break;
  45338. case 17:return 11;
  45339. break;
  45340. case 18:return 12;
  45341. break;
  45342. case 19:return 13;
  45343. break;
  45344. case 20:return 14;
  45345. break;
  45346. case 21:return 'date';
  45347. break;
  45348. case 22:return 15;
  45349. break;
  45350. case 23:return 16;
  45351. break;
  45352. case 24:return 18;
  45353. break;
  45354. case 25:return 19;
  45355. break;
  45356. case 26:return ':';
  45357. break;
  45358. case 27:return 6;
  45359. break;
  45360. case 28:return 'INVALID';
  45361. break;
  45362. }
  45363. },
  45364. rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],
  45365. conditions: {"callbackargs":{"rules":[11,12],"inclusive":false},"callbackname":{"rules":[8,9,10],"inclusive":false},"href":{"rules":[5,6],"inclusive":false},"click":{"rules":[14,15],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28],"inclusive":true}}
  45366. });
  45367. return lexer;
  45368. })();
  45369. parser.lexer = lexer;
  45370. function Parser () {
  45371. this.yy = {};
  45372. }
  45373. Parser.prototype = parser;parser.Parser = Parser;
  45374. return new Parser;
  45375. })();
  45376. if (true) {
  45377. exports.parser = parser;
  45378. exports.Parser = parser.Parser;
  45379. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  45380. exports.main = function commonjsMain (args) {
  45381. if (!args[1]) {
  45382. console.log('Usage: '+args[0]+' FILE');
  45383. process.exit(1);
  45384. }
  45385. var source = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js").readFileSync(__webpack_require__(/*! path */ "./node_modules/path-browserify/index.js").normalize(args[1]), "utf8");
  45386. return exports.parser.parse(source);
  45387. };
  45388. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  45389. exports.main(process.argv.slice(1));
  45390. }
  45391. }
  45392. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  45393. /***/ }),
  45394. /***/ "./src/diagrams/git/gitGraphAst.js":
  45395. /*!*****************************************!*\
  45396. !*** ./src/diagrams/git/gitGraphAst.js ***!
  45397. \*****************************************/
  45398. /*! exports provided: setDirection, setOptions, getOptions, commit, branch, merge, checkout, reset, prettyPrint, clear, getBranchesAsObjArray, getBranches, getCommits, getCommitsArray, getCurrentBranch, getDirection, getHead, default */
  45399. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45400. "use strict";
  45401. __webpack_require__.r(__webpack_exports__);
  45402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDirection", function() { return setDirection; });
  45403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setOptions", function() { return setOptions; });
  45404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOptions", function() { return getOptions; });
  45405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "commit", function() { return commit; });
  45406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "branch", function() { return branch; });
  45407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; });
  45408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkout", function() { return checkout; });
  45409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reset", function() { return reset; });
  45410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prettyPrint", function() { return prettyPrint; });
  45411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  45412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBranchesAsObjArray", function() { return getBranchesAsObjArray; });
  45413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBranches", function() { return getBranches; });
  45414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCommits", function() { return getCommits; });
  45415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCommitsArray", function() { return getCommitsArray; });
  45416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurrentBranch", function() { return getCurrentBranch; });
  45417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDirection", function() { return getDirection; });
  45418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHead", function() { return getHead; });
  45419. /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
  45420. /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
  45421. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  45422. let commits = {};
  45423. let head = null;
  45424. let branches = {
  45425. 'master': head
  45426. };
  45427. let curBranch = 'master';
  45428. let direction = 'LR';
  45429. let seq = 0;
  45430. function getRandomInt(min, max) {
  45431. return Math.floor(Math.random() * (max - min)) + min;
  45432. }
  45433. function getId() {
  45434. const pool = '0123456789abcdef';
  45435. let id = '';
  45436. for (let i = 0; i < 7; i++) {
  45437. id += pool[getRandomInt(0, 16)];
  45438. }
  45439. return id;
  45440. }
  45441. function isfastforwardable(currentCommit, otherCommit) {
  45442. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);
  45443. while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {
  45444. // only if other branch has more commits
  45445. if (otherCommit.parent == null) break;
  45446. if (Array.isArray(otherCommit.parent)) {
  45447. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('In merge commit:', otherCommit.parent);
  45448. return isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) || isfastforwardable(currentCommit, commits[otherCommit.parent[1]]);
  45449. } else {
  45450. otherCommit = commits[otherCommit.parent];
  45451. }
  45452. }
  45453. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug(currentCommit.id, otherCommit.id);
  45454. return currentCommit.id === otherCommit.id;
  45455. }
  45456. function isReachableFrom(currentCommit, otherCommit) {
  45457. const currentSeq = currentCommit.seq;
  45458. const otherSeq = otherCommit.seq;
  45459. if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);
  45460. return false;
  45461. }
  45462. const setDirection = function (dir) {
  45463. direction = dir;
  45464. };
  45465. let options = {};
  45466. const setOptions = function (rawOptString) {
  45467. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('options str', rawOptString);
  45468. rawOptString = rawOptString && rawOptString.trim();
  45469. rawOptString = rawOptString || '{}';
  45470. try {
  45471. options = JSON.parse(rawOptString);
  45472. } catch (e) {
  45473. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].error('error while parsing gitGraph options', e.message);
  45474. }
  45475. };
  45476. const getOptions = function () {
  45477. return options;
  45478. };
  45479. const commit = function (msg) {
  45480. const commit = {
  45481. id: getId(),
  45482. message: msg,
  45483. seq: seq++,
  45484. parent: head == null ? null : head.id
  45485. };
  45486. head = commit;
  45487. commits[commit.id] = commit;
  45488. branches[curBranch] = commit.id;
  45489. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('in pushCommit ' + commit.id);
  45490. };
  45491. const branch = function (name) {
  45492. branches[name] = head != null ? head.id : null;
  45493. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('in createBranch');
  45494. };
  45495. const merge = function (otherBranch) {
  45496. const currentCommit = commits[branches[curBranch]];
  45497. const otherCommit = commits[branches[otherBranch]];
  45498. if (isReachableFrom(currentCommit, otherCommit)) {
  45499. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('Already merged');
  45500. return;
  45501. }
  45502. if (isfastforwardable(currentCommit, otherCommit)) {
  45503. branches[curBranch] = branches[otherBranch];
  45504. head = commits[branches[curBranch]];
  45505. } else {
  45506. // create merge commit
  45507. const commit = {
  45508. id: getId(),
  45509. message: 'merged branch ' + otherBranch + ' into ' + curBranch,
  45510. seq: seq++,
  45511. parent: [head == null ? null : head.id, branches[otherBranch]]
  45512. };
  45513. head = commit;
  45514. commits[commit.id] = commit;
  45515. branches[curBranch] = commit.id;
  45516. }
  45517. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug(branches);
  45518. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('in mergeBranch');
  45519. };
  45520. const checkout = function (branch) {
  45521. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('in checkout');
  45522. curBranch = branch;
  45523. const id = branches[curBranch];
  45524. head = commits[id];
  45525. };
  45526. const reset = function (commitRef) {
  45527. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('in reset', commitRef);
  45528. const ref = commitRef.split(':')[0];
  45529. let parentCount = parseInt(commitRef.split(':')[1]);
  45530. let commit = ref === 'HEAD' ? head : commits[branches[ref]];
  45531. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug(commit, parentCount);
  45532. while (parentCount > 0) {
  45533. commit = commits[commit.parent];
  45534. parentCount--;
  45535. if (!commit) {
  45536. const err = 'Critical error - unique parent commit not found during reset';
  45537. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].error(err);
  45538. throw err;
  45539. }
  45540. }
  45541. head = commit;
  45542. branches[curBranch] = commit.id;
  45543. };
  45544. function upsert(arr, key, newval) {
  45545. const index = arr.indexOf(key);
  45546. if (index === -1) {
  45547. arr.push(newval);
  45548. } else {
  45549. arr.splice(index, 1, newval);
  45550. }
  45551. }
  45552. function prettyPrintCommitHistory(commitArr) {
  45553. const commit = lodash__WEBPACK_IMPORTED_MODULE_0___default.a.maxBy(commitArr, 'seq');
  45554. let line = '';
  45555. commitArr.forEach(function (c) {
  45556. if (c === commit) {
  45557. line += '\t*';
  45558. } else {
  45559. line += '\t|';
  45560. }
  45561. });
  45562. const label = [line, commit.id, commit.seq];
  45563. for (let branch in branches) {
  45564. if (branches[branch] === commit.id) label.push(branch);
  45565. }
  45566. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug(label.join(' '));
  45567. if (Array.isArray(commit.parent)) {
  45568. const newCommit = commits[commit.parent[0]];
  45569. upsert(commitArr, commit, newCommit);
  45570. commitArr.push(commits[commit.parent[1]]);
  45571. } else if (commit.parent == null) {
  45572. return;
  45573. } else {
  45574. const nextCommit = commits[commit.parent];
  45575. upsert(commitArr, commit, nextCommit);
  45576. }
  45577. commitArr = lodash__WEBPACK_IMPORTED_MODULE_0___default.a.uniqBy(commitArr, 'id');
  45578. prettyPrintCommitHistory(commitArr);
  45579. }
  45580. const prettyPrint = function () {
  45581. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug(commits);
  45582. const node = getCommitsArray()[0];
  45583. prettyPrintCommitHistory([node]);
  45584. };
  45585. const clear = function () {
  45586. commits = {};
  45587. head = null;
  45588. branches = {
  45589. 'master': head
  45590. };
  45591. curBranch = 'master';
  45592. seq = 0;
  45593. };
  45594. const getBranchesAsObjArray = function () {
  45595. const branchArr = [];
  45596. for (let branch in branches) {
  45597. branchArr.push({
  45598. name: branch,
  45599. commit: commits[branches[branch]]
  45600. });
  45601. }
  45602. return branchArr;
  45603. };
  45604. const getBranches = function () {
  45605. return branches;
  45606. };
  45607. const getCommits = function () {
  45608. return commits;
  45609. };
  45610. const getCommitsArray = function () {
  45611. const commitArr = Object.keys(commits).map(function (key) {
  45612. return commits[key];
  45613. });
  45614. commitArr.forEach(function (o) {
  45615. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug(o.id);
  45616. });
  45617. return lodash__WEBPACK_IMPORTED_MODULE_0___default.a.orderBy(commitArr, ['seq'], ['desc']);
  45618. };
  45619. const getCurrentBranch = function () {
  45620. return curBranch;
  45621. };
  45622. const getDirection = function () {
  45623. return direction;
  45624. };
  45625. const getHead = function () {
  45626. return head;
  45627. };
  45628. /* harmony default export */ __webpack_exports__["default"] = ({
  45629. setDirection,
  45630. setOptions,
  45631. getOptions,
  45632. commit,
  45633. branch,
  45634. merge,
  45635. checkout,
  45636. reset,
  45637. prettyPrint,
  45638. clear,
  45639. getBranchesAsObjArray,
  45640. getBranches,
  45641. getCommits,
  45642. getCommitsArray,
  45643. getCurrentBranch,
  45644. getDirection,
  45645. getHead
  45646. });
  45647. /***/ }),
  45648. /***/ "./src/diagrams/git/gitGraphRenderer.js":
  45649. /*!**********************************************!*\
  45650. !*** ./src/diagrams/git/gitGraphRenderer.js ***!
  45651. \**********************************************/
  45652. /*! exports provided: setConf, draw, default */
  45653. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45654. "use strict";
  45655. __webpack_require__.r(__webpack_exports__);
  45656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  45657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  45658. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  45659. /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
  45660. /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
  45661. /* harmony import */ var _gitGraphAst__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./gitGraphAst */ "./src/diagrams/git/gitGraphAst.js");
  45662. /* harmony import */ var _parser_gitGraph__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison");
  45663. /* harmony import */ var _parser_gitGraph__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_gitGraph__WEBPACK_IMPORTED_MODULE_3__);
  45664. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  45665. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  45666. let allCommitsDict = {};
  45667. let branchNum;
  45668. let config = {
  45669. nodeSpacing: 150,
  45670. nodeFillColor: 'yellow',
  45671. nodeStrokeWidth: 2,
  45672. nodeStrokeColor: 'grey',
  45673. lineStrokeWidth: 4,
  45674. branchOffset: 50,
  45675. lineColor: 'grey',
  45676. leftMargin: 50,
  45677. branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],
  45678. nodeRadius: 10,
  45679. nodeLabel: {
  45680. width: 75,
  45681. height: 100,
  45682. x: -25,
  45683. y: 0
  45684. }
  45685. };
  45686. let apiConfig = {};
  45687. const setConf = function (c) {
  45688. apiConfig = c;
  45689. };
  45690. function svgCreateDefs(svg) {
  45691. svg.append('defs').append('g').attr('id', 'def-commit').append('circle').attr('r', config.nodeRadius).attr('cx', 0).attr('cy', 0);
  45692. svg.select('#def-commit').append('foreignObject').attr('width', config.nodeLabel.width).attr('height', config.nodeLabel.height).attr('x', config.nodeLabel.x).attr('y', config.nodeLabel.y).attr('class', 'node-label').attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility').append('p').html('');
  45693. }
  45694. function svgDrawLine(svg, points, colorIdx, interpolate) {
  45695. const curve = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["interpolateToCurve"])(interpolate, d3__WEBPACK_IMPORTED_MODULE_0__["curveBasis"]);
  45696. const color = config.branchColors[colorIdx % config.branchColors.length];
  45697. const lineGen = d3__WEBPACK_IMPORTED_MODULE_0__["line"]().x(function (d) {
  45698. return Math.round(d.x);
  45699. }).y(function (d) {
  45700. return Math.round(d.y);
  45701. }).curve(curve);
  45702. svg.append('svg:path').attr('d', lineGen(points)).style('stroke', color).style('stroke-width', config.lineStrokeWidth).style('fill', 'none');
  45703. } // Pass in the element and its pre-transform coords
  45704. function getElementCoords(element, coords) {
  45705. coords = coords || element.node().getBBox();
  45706. const ctm = element.node().getCTM();
  45707. const xn = ctm.e + coords.x * ctm.a;
  45708. const yn = ctm.f + coords.y * ctm.d;
  45709. return {
  45710. left: xn,
  45711. top: yn,
  45712. width: coords.width,
  45713. height: coords.height
  45714. };
  45715. }
  45716. function svgDrawLineForCommits(svg, fromId, toId, direction, color) {
  45717. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('svgDrawLineForCommits: ', fromId, toId);
  45718. const fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));
  45719. const toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));
  45720. switch (direction) {
  45721. case 'LR':
  45722. // (toBbox)
  45723. // +--------
  45724. // + (fromBbox)
  45725. if (fromBbox.left - toBbox.left > config.nodeSpacing) {
  45726. const lineStart = {
  45727. x: fromBbox.left - config.nodeSpacing,
  45728. y: toBbox.top + toBbox.height / 2
  45729. };
  45730. const lineEnd = {
  45731. x: toBbox.left + toBbox.width,
  45732. y: toBbox.top + toBbox.height / 2
  45733. };
  45734. svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');
  45735. svgDrawLine(svg, [{
  45736. x: fromBbox.left,
  45737. y: fromBbox.top + fromBbox.height / 2
  45738. }, {
  45739. x: fromBbox.left - config.nodeSpacing / 2,
  45740. y: fromBbox.top + fromBbox.height / 2
  45741. }, {
  45742. x: fromBbox.left - config.nodeSpacing / 2,
  45743. y: lineStart.y
  45744. }, lineStart], color);
  45745. } else {
  45746. svgDrawLine(svg, [{
  45747. 'x': fromBbox.left,
  45748. 'y': fromBbox.top + fromBbox.height / 2
  45749. }, {
  45750. 'x': fromBbox.left - config.nodeSpacing / 2,
  45751. 'y': fromBbox.top + fromBbox.height / 2
  45752. }, {
  45753. 'x': fromBbox.left - config.nodeSpacing / 2,
  45754. 'y': toBbox.top + toBbox.height / 2
  45755. }, {
  45756. 'x': toBbox.left + toBbox.width,
  45757. 'y': toBbox.top + toBbox.height / 2
  45758. }], color);
  45759. }
  45760. break;
  45761. case 'BT':
  45762. // + (fromBbox)
  45763. // |
  45764. // |
  45765. // + (toBbox)
  45766. if (toBbox.top - fromBbox.top > config.nodeSpacing) {
  45767. const lineStart = {
  45768. x: toBbox.left + toBbox.width / 2,
  45769. y: fromBbox.top + fromBbox.height + config.nodeSpacing
  45770. };
  45771. const lineEnd = {
  45772. x: toBbox.left + toBbox.width / 2,
  45773. y: toBbox.top
  45774. };
  45775. svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');
  45776. svgDrawLine(svg, [{
  45777. x: fromBbox.left + fromBbox.width / 2,
  45778. y: fromBbox.top + fromBbox.height
  45779. }, {
  45780. x: fromBbox.left + fromBbox.width / 2,
  45781. y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2
  45782. }, {
  45783. x: toBbox.left + toBbox.width / 2,
  45784. y: lineStart.y - config.nodeSpacing / 2
  45785. }, lineStart], color);
  45786. } else {
  45787. svgDrawLine(svg, [{
  45788. 'x': fromBbox.left + fromBbox.width / 2,
  45789. 'y': fromBbox.top + fromBbox.height
  45790. }, {
  45791. 'x': fromBbox.left + fromBbox.width / 2,
  45792. 'y': fromBbox.top + config.nodeSpacing / 2
  45793. }, {
  45794. 'x': toBbox.left + toBbox.width / 2,
  45795. 'y': toBbox.top - config.nodeSpacing / 2
  45796. }, {
  45797. 'x': toBbox.left + toBbox.width / 2,
  45798. 'y': toBbox.top
  45799. }], color);
  45800. }
  45801. break;
  45802. }
  45803. }
  45804. function cloneNode(svg, selector) {
  45805. return svg.select(selector).node().cloneNode(true);
  45806. }
  45807. function renderCommitHistory(svg, commitid, branches, direction) {
  45808. let commit;
  45809. const numCommits = Object.keys(allCommitsDict).length;
  45810. if (typeof commitid === 'string') {
  45811. do {
  45812. commit = allCommitsDict[commitid];
  45813. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('in renderCommitHistory', commit.id, commit.seq);
  45814. if (svg.select('#node-' + commitid).size() > 0) {
  45815. return;
  45816. }
  45817. svg.append(function () {
  45818. return cloneNode(svg, '#def-commit');
  45819. }).attr('class', 'commit').attr('id', function () {
  45820. return 'node-' + commit.id;
  45821. }).attr('transform', function () {
  45822. switch (direction) {
  45823. case 'LR':
  45824. return 'translate(' + (commit.seq * config.nodeSpacing + config.leftMargin) + ', ' + branchNum * config.branchOffset + ')';
  45825. case 'BT':
  45826. return 'translate(' + (branchNum * config.branchOffset + config.leftMargin) + ', ' + (numCommits - commit.seq) * config.nodeSpacing + ')';
  45827. }
  45828. }).attr('fill', config.nodeFillColor).attr('stroke', config.nodeStrokeColor).attr('stroke-width', config.nodeStrokeWidth);
  45829. let branch;
  45830. for (let branchName in branches) {
  45831. if (branches[branchName].commit === commit) {
  45832. branch = branches[branchName];
  45833. break;
  45834. }
  45835. }
  45836. if (branch) {
  45837. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('found branch ', branch.name);
  45838. svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'branch-label').text(branch.name + ', ');
  45839. }
  45840. svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-id').text(commit.id);
  45841. if (commit.message !== '' && direction === 'BT') {
  45842. svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-msg').text(', ' + commit.message);
  45843. }
  45844. commitid = commit.parent;
  45845. } while (commitid && allCommitsDict[commitid]);
  45846. }
  45847. if (Array.isArray(commitid)) {
  45848. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('found merge commmit', commitid);
  45849. renderCommitHistory(svg, commitid[0], branches, direction);
  45850. branchNum++;
  45851. renderCommitHistory(svg, commitid[1], branches, direction);
  45852. branchNum--;
  45853. }
  45854. }
  45855. function renderLines(svg, commit, direction, branchColor) {
  45856. branchColor = branchColor || 0;
  45857. while (commit.seq > 0 && !commit.lineDrawn) {
  45858. if (typeof commit.parent === 'string') {
  45859. svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);
  45860. commit.lineDrawn = true;
  45861. commit = allCommitsDict[commit.parent];
  45862. } else if (Array.isArray(commit.parent)) {
  45863. svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);
  45864. svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);
  45865. renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);
  45866. commit.lineDrawn = true;
  45867. commit = allCommitsDict[commit.parent[0]];
  45868. }
  45869. }
  45870. }
  45871. const draw = function (txt, id, ver) {
  45872. try {
  45873. const parser = _parser_gitGraph__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  45874. parser.yy = _gitGraphAst__WEBPACK_IMPORTED_MODULE_2__["default"];
  45875. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('in gitgraph renderer', txt, id, ver); // Parse the graph definition
  45876. parser.parse(txt + '\n');
  45877. config = lodash__WEBPACK_IMPORTED_MODULE_1___default.a.assign(config, apiConfig, _gitGraphAst__WEBPACK_IMPORTED_MODULE_2__["default"].getOptions());
  45878. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('effective options', config);
  45879. const direction = _gitGraphAst__WEBPACK_IMPORTED_MODULE_2__["default"].getDirection();
  45880. allCommitsDict = _gitGraphAst__WEBPACK_IMPORTED_MODULE_2__["default"].getCommits();
  45881. const branches = _gitGraphAst__WEBPACK_IMPORTED_MODULE_2__["default"].getBranchesAsObjArray();
  45882. if (direction === 'BT') {
  45883. config.nodeLabel.x = branches.length * config.branchOffset;
  45884. config.nodeLabel.width = '100%';
  45885. config.nodeLabel.y = -1 * 2 * config.nodeRadius;
  45886. }
  45887. const svg = d3__WEBPACK_IMPORTED_MODULE_0__["select"](`[id="${id}"]`);
  45888. svgCreateDefs(svg);
  45889. branchNum = 1;
  45890. for (let branch in branches) {
  45891. const v = branches[branch];
  45892. renderCommitHistory(svg, v.commit.id, branches, direction);
  45893. renderLines(svg, v.commit, direction);
  45894. branchNum++;
  45895. }
  45896. svg.attr('height', function () {
  45897. if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;
  45898. return (branches.length + 1) * config.branchOffset;
  45899. });
  45900. } catch (e) {
  45901. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error('Error while rendering gitgraph');
  45902. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error(e.message);
  45903. }
  45904. };
  45905. /* harmony default export */ __webpack_exports__["default"] = ({
  45906. setConf,
  45907. draw
  45908. });
  45909. /***/ }),
  45910. /***/ "./src/diagrams/git/parser/gitGraph.jison":
  45911. /*!************************************************!*\
  45912. !*** ./src/diagrams/git/parser/gitGraph.jison ***!
  45913. \************************************************/
  45914. /*! no static exports found */
  45915. /***/ (function(module, exports, __webpack_require__) {
  45916. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  45917. /*
  45918. Returns a Parser object of the following structure:
  45919. Parser: {
  45920. yy: {}
  45921. }
  45922. Parser.prototype: {
  45923. yy: {},
  45924. trace: function(),
  45925. symbols_: {associative list: name ==> number},
  45926. terminals_: {associative list: number ==> name},
  45927. productions_: [...],
  45928. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  45929. table: [...],
  45930. defaultActions: {...},
  45931. parseError: function(str, hash),
  45932. parse: function(input),
  45933. lexer: {
  45934. EOF: 1,
  45935. parseError: function(str, hash),
  45936. setInput: function(input),
  45937. input: function(),
  45938. unput: function(str),
  45939. more: function(),
  45940. less: function(n),
  45941. pastInput: function(),
  45942. upcomingInput: function(),
  45943. showPosition: function(),
  45944. test_match: function(regex_match_array, rule_index),
  45945. next: function(),
  45946. lex: function(),
  45947. begin: function(condition),
  45948. popState: function(),
  45949. _currentRules: function(),
  45950. topState: function(),
  45951. pushState: function(condition),
  45952. options: {
  45953. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  45954. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  45955. backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
  45956. },
  45957. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  45958. rules: [...],
  45959. conditions: {associative list: name ==> set},
  45960. }
  45961. }
  45962. token location info (@$, _$, etc.): {
  45963. first_line: n,
  45964. last_line: n,
  45965. first_column: n,
  45966. last_column: n,
  45967. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  45968. }
  45969. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  45970. text: (matched text)
  45971. token: (the produced terminal token, if any)
  45972. line: (yylineno)
  45973. }
  45974. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  45975. loc: (yylloc)
  45976. expected: (string describing the set of expected tokens)
  45977. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  45978. }
  45979. */
  45980. var parser = (function(){
  45981. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];
  45982. var parser = {trace: function trace () { },
  45983. yy: {},
  45984. symbols_: {"error":2,"start":3,"GG":4,":":5,"document":6,"EOF":7,"DIR":8,"options":9,"body":10,"OPT":11,"NL":12,"line":13,"statement":14,"COMMIT":15,"commit_arg":16,"BRANCH":17,"ID":18,"CHECKOUT":19,"MERGE":20,"RESET":21,"reset_arg":22,"STR":23,"HEAD":24,"reset_parents":25,"CARET":26,"$accept":0,"$end":1},
  45985. terminals_: {2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},
  45986. productions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],
  45987. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  45988. /* this == yyval */
  45989. var $0 = $$.length - 1;
  45990. switch (yystate) {
  45991. case 1:
  45992. return $$[$0-1];
  45993. break;
  45994. case 2:
  45995. yy.setDirection($$[$0-3]); return $$[$0-1];
  45996. break;
  45997. case 4:
  45998. yy.setOptions($$[$0-1]); this.$ = $$[$0]
  45999. break;
  46000. case 5:
  46001. $$[$0-1] +=$$[$0]; this.$=$$[$0-1]
  46002. break;
  46003. case 7:
  46004. this.$ = []
  46005. break;
  46006. case 8:
  46007. $$[$0-1].push($$[$0]); this.$=$$[$0-1];
  46008. break;
  46009. case 9:
  46010. this.$ =$$[$0-1]
  46011. break;
  46012. case 11:
  46013. yy.commit($$[$0])
  46014. break;
  46015. case 12:
  46016. yy.branch($$[$0])
  46017. break;
  46018. case 13:
  46019. yy.checkout($$[$0])
  46020. break;
  46021. case 14:
  46022. yy.merge($$[$0])
  46023. break;
  46024. case 15:
  46025. yy.reset($$[$0])
  46026. break;
  46027. case 16:
  46028. this.$ = ""
  46029. break;
  46030. case 17:
  46031. this.$=$$[$0]
  46032. break;
  46033. case 18:
  46034. this.$ = $$[$0-1]+ ":" + $$[$0]
  46035. break;
  46036. case 19:
  46037. this.$ = $$[$0-1]+ ":" + yy.count; yy.count = 0
  46038. break;
  46039. case 20:
  46040. yy.count = 0
  46041. break;
  46042. case 21:
  46043. yy.count += 1
  46044. break;
  46045. }
  46046. },
  46047. table: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],
  46048. defaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},
  46049. parseError: function parseError (str, hash) {
  46050. if (hash.recoverable) {
  46051. this.trace(str);
  46052. } else {
  46053. var error = new Error(str);
  46054. error.hash = hash;
  46055. throw error;
  46056. }
  46057. },
  46058. parse: function parse(input) {
  46059. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  46060. var args = lstack.slice.call(arguments, 1);
  46061. var lexer = Object.create(this.lexer);
  46062. var sharedState = { yy: {} };
  46063. for (var k in this.yy) {
  46064. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  46065. sharedState.yy[k] = this.yy[k];
  46066. }
  46067. }
  46068. lexer.setInput(input, sharedState.yy);
  46069. sharedState.yy.lexer = lexer;
  46070. sharedState.yy.parser = this;
  46071. if (typeof lexer.yylloc == 'undefined') {
  46072. lexer.yylloc = {};
  46073. }
  46074. var yyloc = lexer.yylloc;
  46075. lstack.push(yyloc);
  46076. var ranges = lexer.options && lexer.options.ranges;
  46077. if (typeof sharedState.yy.parseError === 'function') {
  46078. this.parseError = sharedState.yy.parseError;
  46079. } else {
  46080. this.parseError = Object.getPrototypeOf(this).parseError;
  46081. }
  46082. function popStack(n) {
  46083. stack.length = stack.length - 2 * n;
  46084. vstack.length = vstack.length - n;
  46085. lstack.length = lstack.length - n;
  46086. }
  46087. function lex() {
  46088. var token;
  46089. token = tstack.pop() || lexer.lex() || EOF;
  46090. if (typeof token !== 'number') {
  46091. if (token instanceof Array) {
  46092. tstack = token;
  46093. token = tstack.pop();
  46094. }
  46095. token = self.symbols_[token] || token;
  46096. }
  46097. return token;
  46098. }
  46099. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  46100. while (true) {
  46101. state = stack[stack.length - 1];
  46102. if (this.defaultActions[state]) {
  46103. action = this.defaultActions[state];
  46104. } else {
  46105. if (symbol === null || typeof symbol == 'undefined') {
  46106. symbol = lex();
  46107. }
  46108. action = table[state] && table[state][symbol];
  46109. }
  46110. if (typeof action === 'undefined' || !action.length || !action[0]) {
  46111. var errStr = '';
  46112. expected = [];
  46113. for (p in table[state]) {
  46114. if (this.terminals_[p] && p > TERROR) {
  46115. expected.push('\'' + this.terminals_[p] + '\'');
  46116. }
  46117. }
  46118. if (lexer.showPosition) {
  46119. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  46120. } else {
  46121. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  46122. }
  46123. this.parseError(errStr, {
  46124. text: lexer.match,
  46125. token: this.terminals_[symbol] || symbol,
  46126. line: lexer.yylineno,
  46127. loc: yyloc,
  46128. expected: expected
  46129. });
  46130. }
  46131. if (action[0] instanceof Array && action.length > 1) {
  46132. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  46133. }
  46134. switch (action[0]) {
  46135. case 1:
  46136. stack.push(symbol);
  46137. vstack.push(lexer.yytext);
  46138. lstack.push(lexer.yylloc);
  46139. stack.push(action[1]);
  46140. symbol = null;
  46141. if (!preErrorSymbol) {
  46142. yyleng = lexer.yyleng;
  46143. yytext = lexer.yytext;
  46144. yylineno = lexer.yylineno;
  46145. yyloc = lexer.yylloc;
  46146. if (recovering > 0) {
  46147. recovering--;
  46148. }
  46149. } else {
  46150. symbol = preErrorSymbol;
  46151. preErrorSymbol = null;
  46152. }
  46153. break;
  46154. case 2:
  46155. len = this.productions_[action[1]][1];
  46156. yyval.$ = vstack[vstack.length - len];
  46157. yyval._$ = {
  46158. first_line: lstack[lstack.length - (len || 1)].first_line,
  46159. last_line: lstack[lstack.length - 1].last_line,
  46160. first_column: lstack[lstack.length - (len || 1)].first_column,
  46161. last_column: lstack[lstack.length - 1].last_column
  46162. };
  46163. if (ranges) {
  46164. yyval._$.range = [
  46165. lstack[lstack.length - (len || 1)].range[0],
  46166. lstack[lstack.length - 1].range[1]
  46167. ];
  46168. }
  46169. r = this.performAction.apply(yyval, [
  46170. yytext,
  46171. yyleng,
  46172. yylineno,
  46173. sharedState.yy,
  46174. action[1],
  46175. vstack,
  46176. lstack
  46177. ].concat(args));
  46178. if (typeof r !== 'undefined') {
  46179. return r;
  46180. }
  46181. if (len) {
  46182. stack = stack.slice(0, -1 * len * 2);
  46183. vstack = vstack.slice(0, -1 * len);
  46184. lstack = lstack.slice(0, -1 * len);
  46185. }
  46186. stack.push(this.productions_[action[1]][0]);
  46187. vstack.push(yyval.$);
  46188. lstack.push(yyval._$);
  46189. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  46190. stack.push(newState);
  46191. break;
  46192. case 3:
  46193. return true;
  46194. }
  46195. }
  46196. return true;
  46197. }};
  46198. /* generated by jison-lex 0.3.4 */
  46199. var lexer = (function(){
  46200. var lexer = ({
  46201. EOF:1,
  46202. parseError:function parseError(str, hash) {
  46203. if (this.yy.parser) {
  46204. this.yy.parser.parseError(str, hash);
  46205. } else {
  46206. throw new Error(str);
  46207. }
  46208. },
  46209. // resets the lexer, sets new input
  46210. setInput:function (input, yy) {
  46211. this.yy = yy || this.yy || {};
  46212. this._input = input;
  46213. this._more = this._backtrack = this.done = false;
  46214. this.yylineno = this.yyleng = 0;
  46215. this.yytext = this.matched = this.match = '';
  46216. this.conditionStack = ['INITIAL'];
  46217. this.yylloc = {
  46218. first_line: 1,
  46219. first_column: 0,
  46220. last_line: 1,
  46221. last_column: 0
  46222. };
  46223. if (this.options.ranges) {
  46224. this.yylloc.range = [0,0];
  46225. }
  46226. this.offset = 0;
  46227. return this;
  46228. },
  46229. // consumes and returns one char from the input
  46230. input:function () {
  46231. var ch = this._input[0];
  46232. this.yytext += ch;
  46233. this.yyleng++;
  46234. this.offset++;
  46235. this.match += ch;
  46236. this.matched += ch;
  46237. var lines = ch.match(/(?:\r\n?|\n).*/g);
  46238. if (lines) {
  46239. this.yylineno++;
  46240. this.yylloc.last_line++;
  46241. } else {
  46242. this.yylloc.last_column++;
  46243. }
  46244. if (this.options.ranges) {
  46245. this.yylloc.range[1]++;
  46246. }
  46247. this._input = this._input.slice(1);
  46248. return ch;
  46249. },
  46250. // unshifts one char (or a string) into the input
  46251. unput:function (ch) {
  46252. var len = ch.length;
  46253. var lines = ch.split(/(?:\r\n?|\n)/g);
  46254. this._input = ch + this._input;
  46255. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  46256. //this.yyleng -= len;
  46257. this.offset -= len;
  46258. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  46259. this.match = this.match.substr(0, this.match.length - 1);
  46260. this.matched = this.matched.substr(0, this.matched.length - 1);
  46261. if (lines.length - 1) {
  46262. this.yylineno -= lines.length - 1;
  46263. }
  46264. var r = this.yylloc.range;
  46265. this.yylloc = {
  46266. first_line: this.yylloc.first_line,
  46267. last_line: this.yylineno + 1,
  46268. first_column: this.yylloc.first_column,
  46269. last_column: lines ?
  46270. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  46271. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  46272. this.yylloc.first_column - len
  46273. };
  46274. if (this.options.ranges) {
  46275. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  46276. }
  46277. this.yyleng = this.yytext.length;
  46278. return this;
  46279. },
  46280. // When called from action, caches matched text and appends it on next action
  46281. more:function () {
  46282. this._more = true;
  46283. return this;
  46284. },
  46285. // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
  46286. reject:function () {
  46287. if (this.options.backtrack_lexer) {
  46288. this._backtrack = true;
  46289. } else {
  46290. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
  46291. text: "",
  46292. token: null,
  46293. line: this.yylineno
  46294. });
  46295. }
  46296. return this;
  46297. },
  46298. // retain first n characters of the match
  46299. less:function (n) {
  46300. this.unput(this.match.slice(n));
  46301. },
  46302. // displays already matched input, i.e. for error messages
  46303. pastInput:function () {
  46304. var past = this.matched.substr(0, this.matched.length - this.match.length);
  46305. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  46306. },
  46307. // displays upcoming input, i.e. for error messages
  46308. upcomingInput:function () {
  46309. var next = this.match;
  46310. if (next.length < 20) {
  46311. next += this._input.substr(0, 20-next.length);
  46312. }
  46313. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  46314. },
  46315. // displays the character position where the lexing error occurred, i.e. for error messages
  46316. showPosition:function () {
  46317. var pre = this.pastInput();
  46318. var c = new Array(pre.length + 1).join("-");
  46319. return pre + this.upcomingInput() + "\n" + c + "^";
  46320. },
  46321. // test the lexed token: return FALSE when not a match, otherwise return token
  46322. test_match:function(match, indexed_rule) {
  46323. var token,
  46324. lines,
  46325. backup;
  46326. if (this.options.backtrack_lexer) {
  46327. // save context
  46328. backup = {
  46329. yylineno: this.yylineno,
  46330. yylloc: {
  46331. first_line: this.yylloc.first_line,
  46332. last_line: this.last_line,
  46333. first_column: this.yylloc.first_column,
  46334. last_column: this.yylloc.last_column
  46335. },
  46336. yytext: this.yytext,
  46337. match: this.match,
  46338. matches: this.matches,
  46339. matched: this.matched,
  46340. yyleng: this.yyleng,
  46341. offset: this.offset,
  46342. _more: this._more,
  46343. _input: this._input,
  46344. yy: this.yy,
  46345. conditionStack: this.conditionStack.slice(0),
  46346. done: this.done
  46347. };
  46348. if (this.options.ranges) {
  46349. backup.yylloc.range = this.yylloc.range.slice(0);
  46350. }
  46351. }
  46352. lines = match[0].match(/(?:\r\n?|\n).*/g);
  46353. if (lines) {
  46354. this.yylineno += lines.length;
  46355. }
  46356. this.yylloc = {
  46357. first_line: this.yylloc.last_line,
  46358. last_line: this.yylineno + 1,
  46359. first_column: this.yylloc.last_column,
  46360. last_column: lines ?
  46361. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  46362. this.yylloc.last_column + match[0].length
  46363. };
  46364. this.yytext += match[0];
  46365. this.match += match[0];
  46366. this.matches = match;
  46367. this.yyleng = this.yytext.length;
  46368. if (this.options.ranges) {
  46369. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  46370. }
  46371. this._more = false;
  46372. this._backtrack = false;
  46373. this._input = this._input.slice(match[0].length);
  46374. this.matched += match[0];
  46375. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  46376. if (this.done && this._input) {
  46377. this.done = false;
  46378. }
  46379. if (token) {
  46380. return token;
  46381. } else if (this._backtrack) {
  46382. // recover context
  46383. for (var k in backup) {
  46384. this[k] = backup[k];
  46385. }
  46386. return false; // rule action called reject() implying the next rule should be tested instead.
  46387. }
  46388. return false;
  46389. },
  46390. // return next match in input
  46391. next:function () {
  46392. if (this.done) {
  46393. return this.EOF;
  46394. }
  46395. if (!this._input) {
  46396. this.done = true;
  46397. }
  46398. var token,
  46399. match,
  46400. tempMatch,
  46401. index;
  46402. if (!this._more) {
  46403. this.yytext = '';
  46404. this.match = '';
  46405. }
  46406. var rules = this._currentRules();
  46407. for (var i = 0; i < rules.length; i++) {
  46408. tempMatch = this._input.match(this.rules[rules[i]]);
  46409. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  46410. match = tempMatch;
  46411. index = i;
  46412. if (this.options.backtrack_lexer) {
  46413. token = this.test_match(tempMatch, rules[i]);
  46414. if (token !== false) {
  46415. return token;
  46416. } else if (this._backtrack) {
  46417. match = false;
  46418. continue; // rule action called reject() implying a rule MISmatch.
  46419. } else {
  46420. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  46421. return false;
  46422. }
  46423. } else if (!this.options.flex) {
  46424. break;
  46425. }
  46426. }
  46427. }
  46428. if (match) {
  46429. token = this.test_match(match, rules[index]);
  46430. if (token !== false) {
  46431. return token;
  46432. }
  46433. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  46434. return false;
  46435. }
  46436. if (this._input === "") {
  46437. return this.EOF;
  46438. } else {
  46439. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  46440. text: "",
  46441. token: null,
  46442. line: this.yylineno
  46443. });
  46444. }
  46445. },
  46446. // return next match that has a token
  46447. lex:function lex () {
  46448. var r = this.next();
  46449. if (r) {
  46450. return r;
  46451. } else {
  46452. return this.lex();
  46453. }
  46454. },
  46455. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  46456. begin:function begin (condition) {
  46457. this.conditionStack.push(condition);
  46458. },
  46459. // pop the previously active lexer condition state off the condition stack
  46460. popState:function popState () {
  46461. var n = this.conditionStack.length - 1;
  46462. if (n > 0) {
  46463. return this.conditionStack.pop();
  46464. } else {
  46465. return this.conditionStack[0];
  46466. }
  46467. },
  46468. // produce the lexer rule set which is active for the currently active lexer condition state
  46469. _currentRules:function _currentRules () {
  46470. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  46471. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  46472. } else {
  46473. return this.conditions["INITIAL"].rules;
  46474. }
  46475. },
  46476. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  46477. topState:function topState (n) {
  46478. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  46479. if (n >= 0) {
  46480. return this.conditionStack[n];
  46481. } else {
  46482. return "INITIAL";
  46483. }
  46484. },
  46485. // alias for begin(condition)
  46486. pushState:function pushState (condition) {
  46487. this.begin(condition);
  46488. },
  46489. // return the number of states currently on the stack
  46490. stateStackSize:function stateStackSize() {
  46491. return this.conditionStack.length;
  46492. },
  46493. options: {"case-insensitive":true},
  46494. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  46495. var YYSTATE=YY_START;
  46496. switch($avoiding_name_collisions) {
  46497. case 0:return 12;
  46498. break;
  46499. case 1:/* skip all whitespace */
  46500. break;
  46501. case 2:/* skip comments */
  46502. break;
  46503. case 3:/* skip comments */
  46504. break;
  46505. case 4:return 4;
  46506. break;
  46507. case 5:return 15;
  46508. break;
  46509. case 6:return 17;
  46510. break;
  46511. case 7:return 20;
  46512. break;
  46513. case 8:return 21;
  46514. break;
  46515. case 9:return 19;
  46516. break;
  46517. case 10:return 8;
  46518. break;
  46519. case 11:return 8;
  46520. break;
  46521. case 12:return 5;
  46522. break;
  46523. case 13:return 26
  46524. break;
  46525. case 14:this.begin("options");
  46526. break;
  46527. case 15:this.popState();
  46528. break;
  46529. case 16:return 11;
  46530. break;
  46531. case 17:this.begin("string");
  46532. break;
  46533. case 18:this.popState();
  46534. break;
  46535. case 19:return 23;
  46536. break;
  46537. case 20:return 18;
  46538. break;
  46539. case 21:return 7;
  46540. break;
  46541. }
  46542. },
  46543. rules: [/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][a-zA-Z0-9_]+)/i,/^(?:$)/i],
  46544. conditions: {"options":{"rules":[15,16],"inclusive":false},"string":{"rules":[18,19],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],"inclusive":true}}
  46545. });
  46546. return lexer;
  46547. })();
  46548. parser.lexer = lexer;
  46549. function Parser () {
  46550. this.yy = {};
  46551. }
  46552. Parser.prototype = parser;parser.Parser = Parser;
  46553. return new Parser;
  46554. })();
  46555. if (true) {
  46556. exports.parser = parser;
  46557. exports.Parser = parser.Parser;
  46558. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  46559. exports.main = function commonjsMain (args) {
  46560. if (!args[1]) {
  46561. console.log('Usage: '+args[0]+' FILE');
  46562. process.exit(1);
  46563. }
  46564. var source = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js").readFileSync(__webpack_require__(/*! path */ "./node_modules/path-browserify/index.js").normalize(args[1]), "utf8");
  46565. return exports.parser.parse(source);
  46566. };
  46567. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  46568. exports.main(process.argv.slice(1));
  46569. }
  46570. }
  46571. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  46572. /***/ }),
  46573. /***/ "./src/diagrams/info/infoDb.js":
  46574. /*!*************************************!*\
  46575. !*** ./src/diagrams/info/infoDb.js ***!
  46576. \*************************************/
  46577. /*! exports provided: setMessage, getMessage, setInfo, getInfo, default */
  46578. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46579. "use strict";
  46580. __webpack_require__.r(__webpack_exports__);
  46581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setMessage", function() { return setMessage; });
  46582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMessage", function() { return getMessage; });
  46583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setInfo", function() { return setInfo; });
  46584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInfo", function() { return getInfo; });
  46585. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  46586. /**
  46587. * Created by knut on 15-01-14.
  46588. */
  46589. var message = '';
  46590. var info = false;
  46591. const setMessage = txt => {
  46592. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting message to: ' + txt);
  46593. message = txt;
  46594. };
  46595. const getMessage = () => {
  46596. return message;
  46597. };
  46598. const setInfo = inf => {
  46599. info = inf;
  46600. };
  46601. const getInfo = () => {
  46602. return info;
  46603. }; // export const parseError = (err, hash) => {
  46604. // global.mermaidAPI.parseError(err, hash)
  46605. // }
  46606. /* harmony default export */ __webpack_exports__["default"] = ({
  46607. setMessage,
  46608. getMessage,
  46609. setInfo,
  46610. getInfo // parseError
  46611. });
  46612. /***/ }),
  46613. /***/ "./src/diagrams/info/infoRenderer.js":
  46614. /*!*******************************************!*\
  46615. !*** ./src/diagrams/info/infoRenderer.js ***!
  46616. \*******************************************/
  46617. /*! exports provided: setConf, draw, default */
  46618. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46619. "use strict";
  46620. __webpack_require__.r(__webpack_exports__);
  46621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  46622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  46623. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  46624. /* harmony import */ var _infoDb__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./infoDb */ "./src/diagrams/info/infoDb.js");
  46625. /* harmony import */ var _parser_info__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parser/info */ "./src/diagrams/info/parser/info.jison");
  46626. /* harmony import */ var _parser_info__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_parser_info__WEBPACK_IMPORTED_MODULE_2__);
  46627. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  46628. /**
  46629. * Created by knut on 14-12-11.
  46630. */
  46631. const conf = {};
  46632. const setConf = function (cnf) {
  46633. const keys = Object.keys(cnf);
  46634. keys.forEach(function (key) {
  46635. conf[key] = cnf[key];
  46636. });
  46637. };
  46638. /**
  46639. * Draws a an info picture in the tag with id: id based on the graph definition in text.
  46640. * @param text
  46641. * @param id
  46642. */
  46643. const draw = (txt, id, ver) => {
  46644. try {
  46645. const parser = _parser_info__WEBPACK_IMPORTED_MODULE_2___default.a.parser;
  46646. parser.yy = _infoDb__WEBPACK_IMPORTED_MODULE_1__["default"];
  46647. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Renering info diagram\n' + txt); // Parse the graph definition
  46648. parser.parse(txt);
  46649. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Parsed info diagram'); // Fetch the default direction, use TD if none was found
  46650. const svg = d3__WEBPACK_IMPORTED_MODULE_0__["select"]('#' + id);
  46651. const g = svg.append('g');
  46652. g.append('text') // text label for the x axis
  46653. .attr('x', 100).attr('y', 40).attr('class', 'version').attr('font-size', '32px').style('text-anchor', 'middle').text('v ' + ver);
  46654. svg.attr('height', 100);
  46655. svg.attr('width', 400); // svg.attr('viewBox', '0 0 300 150');
  46656. } catch (e) {
  46657. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error('Error while rendering info diagram');
  46658. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e.message);
  46659. }
  46660. };
  46661. /* harmony default export */ __webpack_exports__["default"] = ({
  46662. setConf,
  46663. draw
  46664. });
  46665. /***/ }),
  46666. /***/ "./src/diagrams/info/parser/info.jison":
  46667. /*!*********************************************!*\
  46668. !*** ./src/diagrams/info/parser/info.jison ***!
  46669. \*********************************************/
  46670. /*! no static exports found */
  46671. /***/ (function(module, exports, __webpack_require__) {
  46672. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  46673. /*
  46674. Returns a Parser object of the following structure:
  46675. Parser: {
  46676. yy: {}
  46677. }
  46678. Parser.prototype: {
  46679. yy: {},
  46680. trace: function(),
  46681. symbols_: {associative list: name ==> number},
  46682. terminals_: {associative list: number ==> name},
  46683. productions_: [...],
  46684. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  46685. table: [...],
  46686. defaultActions: {...},
  46687. parseError: function(str, hash),
  46688. parse: function(input),
  46689. lexer: {
  46690. EOF: 1,
  46691. parseError: function(str, hash),
  46692. setInput: function(input),
  46693. input: function(),
  46694. unput: function(str),
  46695. more: function(),
  46696. less: function(n),
  46697. pastInput: function(),
  46698. upcomingInput: function(),
  46699. showPosition: function(),
  46700. test_match: function(regex_match_array, rule_index),
  46701. next: function(),
  46702. lex: function(),
  46703. begin: function(condition),
  46704. popState: function(),
  46705. _currentRules: function(),
  46706. topState: function(),
  46707. pushState: function(condition),
  46708. options: {
  46709. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  46710. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  46711. backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
  46712. },
  46713. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  46714. rules: [...],
  46715. conditions: {associative list: name ==> set},
  46716. }
  46717. }
  46718. token location info (@$, _$, etc.): {
  46719. first_line: n,
  46720. last_line: n,
  46721. first_column: n,
  46722. last_column: n,
  46723. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  46724. }
  46725. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  46726. text: (matched text)
  46727. token: (the produced terminal token, if any)
  46728. line: (yylineno)
  46729. }
  46730. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  46731. loc: (yylloc)
  46732. expected: (string describing the set of expected tokens)
  46733. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  46734. }
  46735. */
  46736. var parser = (function(){
  46737. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];
  46738. var parser = {trace: function trace () { },
  46739. yy: {},
  46740. symbols_: {"error":2,"start":3,"info":4,"document":5,"EOF":6,"line":7,"statement":8,"NL":9,"showInfo":10,"$accept":0,"$end":1},
  46741. terminals_: {2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},
  46742. productions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],
  46743. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  46744. /* this == yyval */
  46745. var $0 = $$.length - 1;
  46746. switch (yystate) {
  46747. case 1:
  46748. return yy;
  46749. break;
  46750. case 4:
  46751. break;
  46752. case 6:
  46753. yy.setInfo(true);
  46754. break;
  46755. }
  46756. },
  46757. table: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],
  46758. defaultActions: {4:[2,1]},
  46759. parseError: function parseError (str, hash) {
  46760. if (hash.recoverable) {
  46761. this.trace(str);
  46762. } else {
  46763. var error = new Error(str);
  46764. error.hash = hash;
  46765. throw error;
  46766. }
  46767. },
  46768. parse: function parse(input) {
  46769. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  46770. var args = lstack.slice.call(arguments, 1);
  46771. var lexer = Object.create(this.lexer);
  46772. var sharedState = { yy: {} };
  46773. for (var k in this.yy) {
  46774. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  46775. sharedState.yy[k] = this.yy[k];
  46776. }
  46777. }
  46778. lexer.setInput(input, sharedState.yy);
  46779. sharedState.yy.lexer = lexer;
  46780. sharedState.yy.parser = this;
  46781. if (typeof lexer.yylloc == 'undefined') {
  46782. lexer.yylloc = {};
  46783. }
  46784. var yyloc = lexer.yylloc;
  46785. lstack.push(yyloc);
  46786. var ranges = lexer.options && lexer.options.ranges;
  46787. if (typeof sharedState.yy.parseError === 'function') {
  46788. this.parseError = sharedState.yy.parseError;
  46789. } else {
  46790. this.parseError = Object.getPrototypeOf(this).parseError;
  46791. }
  46792. function popStack(n) {
  46793. stack.length = stack.length - 2 * n;
  46794. vstack.length = vstack.length - n;
  46795. lstack.length = lstack.length - n;
  46796. }
  46797. function lex() {
  46798. var token;
  46799. token = tstack.pop() || lexer.lex() || EOF;
  46800. if (typeof token !== 'number') {
  46801. if (token instanceof Array) {
  46802. tstack = token;
  46803. token = tstack.pop();
  46804. }
  46805. token = self.symbols_[token] || token;
  46806. }
  46807. return token;
  46808. }
  46809. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  46810. while (true) {
  46811. state = stack[stack.length - 1];
  46812. if (this.defaultActions[state]) {
  46813. action = this.defaultActions[state];
  46814. } else {
  46815. if (symbol === null || typeof symbol == 'undefined') {
  46816. symbol = lex();
  46817. }
  46818. action = table[state] && table[state][symbol];
  46819. }
  46820. if (typeof action === 'undefined' || !action.length || !action[0]) {
  46821. var errStr = '';
  46822. expected = [];
  46823. for (p in table[state]) {
  46824. if (this.terminals_[p] && p > TERROR) {
  46825. expected.push('\'' + this.terminals_[p] + '\'');
  46826. }
  46827. }
  46828. if (lexer.showPosition) {
  46829. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  46830. } else {
  46831. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  46832. }
  46833. this.parseError(errStr, {
  46834. text: lexer.match,
  46835. token: this.terminals_[symbol] || symbol,
  46836. line: lexer.yylineno,
  46837. loc: yyloc,
  46838. expected: expected
  46839. });
  46840. }
  46841. if (action[0] instanceof Array && action.length > 1) {
  46842. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  46843. }
  46844. switch (action[0]) {
  46845. case 1:
  46846. stack.push(symbol);
  46847. vstack.push(lexer.yytext);
  46848. lstack.push(lexer.yylloc);
  46849. stack.push(action[1]);
  46850. symbol = null;
  46851. if (!preErrorSymbol) {
  46852. yyleng = lexer.yyleng;
  46853. yytext = lexer.yytext;
  46854. yylineno = lexer.yylineno;
  46855. yyloc = lexer.yylloc;
  46856. if (recovering > 0) {
  46857. recovering--;
  46858. }
  46859. } else {
  46860. symbol = preErrorSymbol;
  46861. preErrorSymbol = null;
  46862. }
  46863. break;
  46864. case 2:
  46865. len = this.productions_[action[1]][1];
  46866. yyval.$ = vstack[vstack.length - len];
  46867. yyval._$ = {
  46868. first_line: lstack[lstack.length - (len || 1)].first_line,
  46869. last_line: lstack[lstack.length - 1].last_line,
  46870. first_column: lstack[lstack.length - (len || 1)].first_column,
  46871. last_column: lstack[lstack.length - 1].last_column
  46872. };
  46873. if (ranges) {
  46874. yyval._$.range = [
  46875. lstack[lstack.length - (len || 1)].range[0],
  46876. lstack[lstack.length - 1].range[1]
  46877. ];
  46878. }
  46879. r = this.performAction.apply(yyval, [
  46880. yytext,
  46881. yyleng,
  46882. yylineno,
  46883. sharedState.yy,
  46884. action[1],
  46885. vstack,
  46886. lstack
  46887. ].concat(args));
  46888. if (typeof r !== 'undefined') {
  46889. return r;
  46890. }
  46891. if (len) {
  46892. stack = stack.slice(0, -1 * len * 2);
  46893. vstack = vstack.slice(0, -1 * len);
  46894. lstack = lstack.slice(0, -1 * len);
  46895. }
  46896. stack.push(this.productions_[action[1]][0]);
  46897. vstack.push(yyval.$);
  46898. lstack.push(yyval._$);
  46899. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  46900. stack.push(newState);
  46901. break;
  46902. case 3:
  46903. return true;
  46904. }
  46905. }
  46906. return true;
  46907. }};
  46908. /* generated by jison-lex 0.3.4 */
  46909. var lexer = (function(){
  46910. var lexer = ({
  46911. EOF:1,
  46912. parseError:function parseError(str, hash) {
  46913. if (this.yy.parser) {
  46914. this.yy.parser.parseError(str, hash);
  46915. } else {
  46916. throw new Error(str);
  46917. }
  46918. },
  46919. // resets the lexer, sets new input
  46920. setInput:function (input, yy) {
  46921. this.yy = yy || this.yy || {};
  46922. this._input = input;
  46923. this._more = this._backtrack = this.done = false;
  46924. this.yylineno = this.yyleng = 0;
  46925. this.yytext = this.matched = this.match = '';
  46926. this.conditionStack = ['INITIAL'];
  46927. this.yylloc = {
  46928. first_line: 1,
  46929. first_column: 0,
  46930. last_line: 1,
  46931. last_column: 0
  46932. };
  46933. if (this.options.ranges) {
  46934. this.yylloc.range = [0,0];
  46935. }
  46936. this.offset = 0;
  46937. return this;
  46938. },
  46939. // consumes and returns one char from the input
  46940. input:function () {
  46941. var ch = this._input[0];
  46942. this.yytext += ch;
  46943. this.yyleng++;
  46944. this.offset++;
  46945. this.match += ch;
  46946. this.matched += ch;
  46947. var lines = ch.match(/(?:\r\n?|\n).*/g);
  46948. if (lines) {
  46949. this.yylineno++;
  46950. this.yylloc.last_line++;
  46951. } else {
  46952. this.yylloc.last_column++;
  46953. }
  46954. if (this.options.ranges) {
  46955. this.yylloc.range[1]++;
  46956. }
  46957. this._input = this._input.slice(1);
  46958. return ch;
  46959. },
  46960. // unshifts one char (or a string) into the input
  46961. unput:function (ch) {
  46962. var len = ch.length;
  46963. var lines = ch.split(/(?:\r\n?|\n)/g);
  46964. this._input = ch + this._input;
  46965. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  46966. //this.yyleng -= len;
  46967. this.offset -= len;
  46968. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  46969. this.match = this.match.substr(0, this.match.length - 1);
  46970. this.matched = this.matched.substr(0, this.matched.length - 1);
  46971. if (lines.length - 1) {
  46972. this.yylineno -= lines.length - 1;
  46973. }
  46974. var r = this.yylloc.range;
  46975. this.yylloc = {
  46976. first_line: this.yylloc.first_line,
  46977. last_line: this.yylineno + 1,
  46978. first_column: this.yylloc.first_column,
  46979. last_column: lines ?
  46980. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  46981. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  46982. this.yylloc.first_column - len
  46983. };
  46984. if (this.options.ranges) {
  46985. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  46986. }
  46987. this.yyleng = this.yytext.length;
  46988. return this;
  46989. },
  46990. // When called from action, caches matched text and appends it on next action
  46991. more:function () {
  46992. this._more = true;
  46993. return this;
  46994. },
  46995. // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
  46996. reject:function () {
  46997. if (this.options.backtrack_lexer) {
  46998. this._backtrack = true;
  46999. } else {
  47000. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
  47001. text: "",
  47002. token: null,
  47003. line: this.yylineno
  47004. });
  47005. }
  47006. return this;
  47007. },
  47008. // retain first n characters of the match
  47009. less:function (n) {
  47010. this.unput(this.match.slice(n));
  47011. },
  47012. // displays already matched input, i.e. for error messages
  47013. pastInput:function () {
  47014. var past = this.matched.substr(0, this.matched.length - this.match.length);
  47015. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  47016. },
  47017. // displays upcoming input, i.e. for error messages
  47018. upcomingInput:function () {
  47019. var next = this.match;
  47020. if (next.length < 20) {
  47021. next += this._input.substr(0, 20-next.length);
  47022. }
  47023. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  47024. },
  47025. // displays the character position where the lexing error occurred, i.e. for error messages
  47026. showPosition:function () {
  47027. var pre = this.pastInput();
  47028. var c = new Array(pre.length + 1).join("-");
  47029. return pre + this.upcomingInput() + "\n" + c + "^";
  47030. },
  47031. // test the lexed token: return FALSE when not a match, otherwise return token
  47032. test_match:function(match, indexed_rule) {
  47033. var token,
  47034. lines,
  47035. backup;
  47036. if (this.options.backtrack_lexer) {
  47037. // save context
  47038. backup = {
  47039. yylineno: this.yylineno,
  47040. yylloc: {
  47041. first_line: this.yylloc.first_line,
  47042. last_line: this.last_line,
  47043. first_column: this.yylloc.first_column,
  47044. last_column: this.yylloc.last_column
  47045. },
  47046. yytext: this.yytext,
  47047. match: this.match,
  47048. matches: this.matches,
  47049. matched: this.matched,
  47050. yyleng: this.yyleng,
  47051. offset: this.offset,
  47052. _more: this._more,
  47053. _input: this._input,
  47054. yy: this.yy,
  47055. conditionStack: this.conditionStack.slice(0),
  47056. done: this.done
  47057. };
  47058. if (this.options.ranges) {
  47059. backup.yylloc.range = this.yylloc.range.slice(0);
  47060. }
  47061. }
  47062. lines = match[0].match(/(?:\r\n?|\n).*/g);
  47063. if (lines) {
  47064. this.yylineno += lines.length;
  47065. }
  47066. this.yylloc = {
  47067. first_line: this.yylloc.last_line,
  47068. last_line: this.yylineno + 1,
  47069. first_column: this.yylloc.last_column,
  47070. last_column: lines ?
  47071. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  47072. this.yylloc.last_column + match[0].length
  47073. };
  47074. this.yytext += match[0];
  47075. this.match += match[0];
  47076. this.matches = match;
  47077. this.yyleng = this.yytext.length;
  47078. if (this.options.ranges) {
  47079. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  47080. }
  47081. this._more = false;
  47082. this._backtrack = false;
  47083. this._input = this._input.slice(match[0].length);
  47084. this.matched += match[0];
  47085. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  47086. if (this.done && this._input) {
  47087. this.done = false;
  47088. }
  47089. if (token) {
  47090. return token;
  47091. } else if (this._backtrack) {
  47092. // recover context
  47093. for (var k in backup) {
  47094. this[k] = backup[k];
  47095. }
  47096. return false; // rule action called reject() implying the next rule should be tested instead.
  47097. }
  47098. return false;
  47099. },
  47100. // return next match in input
  47101. next:function () {
  47102. if (this.done) {
  47103. return this.EOF;
  47104. }
  47105. if (!this._input) {
  47106. this.done = true;
  47107. }
  47108. var token,
  47109. match,
  47110. tempMatch,
  47111. index;
  47112. if (!this._more) {
  47113. this.yytext = '';
  47114. this.match = '';
  47115. }
  47116. var rules = this._currentRules();
  47117. for (var i = 0; i < rules.length; i++) {
  47118. tempMatch = this._input.match(this.rules[rules[i]]);
  47119. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  47120. match = tempMatch;
  47121. index = i;
  47122. if (this.options.backtrack_lexer) {
  47123. token = this.test_match(tempMatch, rules[i]);
  47124. if (token !== false) {
  47125. return token;
  47126. } else if (this._backtrack) {
  47127. match = false;
  47128. continue; // rule action called reject() implying a rule MISmatch.
  47129. } else {
  47130. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  47131. return false;
  47132. }
  47133. } else if (!this.options.flex) {
  47134. break;
  47135. }
  47136. }
  47137. }
  47138. if (match) {
  47139. token = this.test_match(match, rules[index]);
  47140. if (token !== false) {
  47141. return token;
  47142. }
  47143. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  47144. return false;
  47145. }
  47146. if (this._input === "") {
  47147. return this.EOF;
  47148. } else {
  47149. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  47150. text: "",
  47151. token: null,
  47152. line: this.yylineno
  47153. });
  47154. }
  47155. },
  47156. // return next match that has a token
  47157. lex:function lex () {
  47158. var r = this.next();
  47159. if (r) {
  47160. return r;
  47161. } else {
  47162. return this.lex();
  47163. }
  47164. },
  47165. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  47166. begin:function begin (condition) {
  47167. this.conditionStack.push(condition);
  47168. },
  47169. // pop the previously active lexer condition state off the condition stack
  47170. popState:function popState () {
  47171. var n = this.conditionStack.length - 1;
  47172. if (n > 0) {
  47173. return this.conditionStack.pop();
  47174. } else {
  47175. return this.conditionStack[0];
  47176. }
  47177. },
  47178. // produce the lexer rule set which is active for the currently active lexer condition state
  47179. _currentRules:function _currentRules () {
  47180. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  47181. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  47182. } else {
  47183. return this.conditions["INITIAL"].rules;
  47184. }
  47185. },
  47186. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  47187. topState:function topState (n) {
  47188. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  47189. if (n >= 0) {
  47190. return this.conditionStack[n];
  47191. } else {
  47192. return "INITIAL";
  47193. }
  47194. },
  47195. // alias for begin(condition)
  47196. pushState:function pushState (condition) {
  47197. this.begin(condition);
  47198. },
  47199. // return the number of states currently on the stack
  47200. stateStackSize:function stateStackSize() {
  47201. return this.conditionStack.length;
  47202. },
  47203. options: {"case-insensitive":true},
  47204. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  47205. // Pre-lexer code can go here
  47206. var YYSTATE=YY_START;
  47207. switch($avoiding_name_collisions) {
  47208. case 0:return 4 ;
  47209. break;
  47210. case 1:return 9 ;
  47211. break;
  47212. case 2:return 'space';
  47213. break;
  47214. case 3:return 10;
  47215. break;
  47216. case 4:return 6 ;
  47217. break;
  47218. case 5:return 'TXT' ;
  47219. break;
  47220. }
  47221. },
  47222. rules: [/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],
  47223. conditions: {"INITIAL":{"rules":[0,1,2,3,4,5],"inclusive":true}}
  47224. });
  47225. return lexer;
  47226. })();
  47227. parser.lexer = lexer;
  47228. function Parser () {
  47229. this.yy = {};
  47230. }
  47231. Parser.prototype = parser;parser.Parser = Parser;
  47232. return new Parser;
  47233. })();
  47234. if (true) {
  47235. exports.parser = parser;
  47236. exports.Parser = parser.Parser;
  47237. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  47238. exports.main = function commonjsMain (args) {
  47239. if (!args[1]) {
  47240. console.log('Usage: '+args[0]+' FILE');
  47241. process.exit(1);
  47242. }
  47243. var source = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js").readFileSync(__webpack_require__(/*! path */ "./node_modules/path-browserify/index.js").normalize(args[1]), "utf8");
  47244. return exports.parser.parse(source);
  47245. };
  47246. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  47247. exports.main(process.argv.slice(1));
  47248. }
  47249. }
  47250. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  47251. /***/ }),
  47252. /***/ "./src/diagrams/sequence/parser/sequenceDiagram.jison":
  47253. /*!************************************************************!*\
  47254. !*** ./src/diagrams/sequence/parser/sequenceDiagram.jison ***!
  47255. \************************************************************/
  47256. /*! no static exports found */
  47257. /***/ (function(module, exports, __webpack_require__) {
  47258. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  47259. /*
  47260. Returns a Parser object of the following structure:
  47261. Parser: {
  47262. yy: {}
  47263. }
  47264. Parser.prototype: {
  47265. yy: {},
  47266. trace: function(),
  47267. symbols_: {associative list: name ==> number},
  47268. terminals_: {associative list: number ==> name},
  47269. productions_: [...],
  47270. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  47271. table: [...],
  47272. defaultActions: {...},
  47273. parseError: function(str, hash),
  47274. parse: function(input),
  47275. lexer: {
  47276. EOF: 1,
  47277. parseError: function(str, hash),
  47278. setInput: function(input),
  47279. input: function(),
  47280. unput: function(str),
  47281. more: function(),
  47282. less: function(n),
  47283. pastInput: function(),
  47284. upcomingInput: function(),
  47285. showPosition: function(),
  47286. test_match: function(regex_match_array, rule_index),
  47287. next: function(),
  47288. lex: function(),
  47289. begin: function(condition),
  47290. popState: function(),
  47291. _currentRules: function(),
  47292. topState: function(),
  47293. pushState: function(condition),
  47294. options: {
  47295. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  47296. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  47297. backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
  47298. },
  47299. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  47300. rules: [...],
  47301. conditions: {associative list: name ==> set},
  47302. }
  47303. }
  47304. token location info (@$, _$, etc.): {
  47305. first_line: n,
  47306. last_line: n,
  47307. first_column: n,
  47308. last_column: n,
  47309. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  47310. }
  47311. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  47312. text: (matched text)
  47313. token: (the produced terminal token, if any)
  47314. line: (yylineno)
  47315. }
  47316. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  47317. loc: (yylloc)
  47318. expected: (string describing the set of expected tokens)
  47319. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  47320. }
  47321. */
  47322. var parser = (function(){
  47323. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,12],$V7=[1,14],$V8=[1,15],$V9=[1,17],$Va=[1,18],$Vb=[1,19],$Vc=[1,20],$Vd=[1,21],$Ve=[1,22],$Vf=[1,24],$Vg=[1,25],$Vh=[1,4,5,10,15,16,18,20,21,22,23,24,26,28,29,30,41],$Vi=[1,33],$Vj=[4,5,10,15,16,18,20,21,22,23,24,26,30,41],$Vk=[4,5,10,15,16,18,20,21,22,23,24,26,29,30,41],$Vl=[4,5,10,15,16,18,20,21,22,23,24,26,28,30,41],$Vm=[39,40,41];
  47324. var parser = {trace: function trace () { },
  47325. yy: {},
  47326. symbols_: {"error":2,"start":3,"SPACE":4,"NL":5,"SD":6,"document":7,"line":8,"statement":9,"participant":10,"actor":11,"AS":12,"restOfLine":13,"signal":14,"activate":15,"deactivate":16,"note_statement":17,"title":18,"text2":19,"loop":20,"end":21,"rect":22,"opt":23,"alt":24,"else_sections":25,"par":26,"par_sections":27,"and":28,"else":29,"note":30,"placement":31,"over":32,"actor_pair":33,"spaceList":34,",":35,"left_of":36,"right_of":37,"signaltype":38,"+":39,"-":40,"ACTOR":41,"SOLID_OPEN_ARROW":42,"DOTTED_OPEN_ARROW":43,"SOLID_ARROW":44,"DOTTED_ARROW":45,"SOLID_CROSS":46,"DOTTED_CROSS":47,"TXT":48,"$accept":0,"$end":1},
  47327. terminals_: {2:"error",4:"SPACE",5:"NL",6:"SD",10:"participant",12:"AS",13:"restOfLine",15:"activate",16:"deactivate",18:"title",20:"loop",21:"end",22:"rect",23:"opt",24:"alt",26:"par",28:"and",29:"else",30:"note",32:"over",35:",",36:"left_of",37:"right_of",39:"+",40:"-",41:"ACTOR",42:"SOLID_OPEN_ARROW",43:"DOTTED_OPEN_ARROW",44:"SOLID_ARROW",45:"DOTTED_ARROW",46:"SOLID_CROSS",47:"DOTTED_CROSS",48:"TXT"},
  47328. productions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,5],[9,3],[9,2],[9,3],[9,3],[9,2],[9,3],[9,4],[9,4],[9,4],[9,4],[9,4],[27,1],[27,4],[25,1],[25,4],[17,4],[17,4],[34,2],[34,1],[33,3],[33,1],[31,1],[31,1],[14,5],[14,5],[14,4],[11,1],[38,1],[38,1],[38,1],[38,1],[38,1],[38,1],[19,1]],
  47329. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  47330. /* this == yyval */
  47331. var $0 = $$.length - 1;
  47332. switch (yystate) {
  47333. case 3:
  47334. yy.apply($$[$0]);return $$[$0];
  47335. break;
  47336. case 4:
  47337. this.$ = []
  47338. break;
  47339. case 5:
  47340. $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
  47341. break;
  47342. case 6: case 7:
  47343. this.$ = $$[$0]
  47344. break;
  47345. case 8:
  47346. this.$=[];
  47347. break;
  47348. case 9:
  47349. $$[$0-3].description=$$[$0-1]; this.$=$$[$0-3];
  47350. break;
  47351. case 10:
  47352. this.$=$$[$0-1];
  47353. break;
  47354. case 12:
  47355. this.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};
  47356. break;
  47357. case 13:
  47358. this.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};
  47359. break;
  47360. case 15:
  47361. this.$=[{type:'setTitle', text:$$[$0-1]}]
  47362. break;
  47363. case 16:
  47364. $$[$0-1].unshift({type: 'loopStart', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_START});
  47365. $$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});
  47366. this.$=$$[$0-1];
  47367. break;
  47368. case 17:
  47369. $$[$0-1].unshift({type: 'rectStart', color:$$[$0-2], signalType: yy.LINETYPE.RECT_START });
  47370. $$[$0-1].push({type: 'rectEnd', color:$$[$0-2], signalType: yy.LINETYPE.RECT_END });
  47371. this.$=$$[$0-1];
  47372. break;
  47373. case 18:
  47374. $$[$0-1].unshift({type: 'optStart', optText:$$[$0-2], signalType: yy.LINETYPE.OPT_START});
  47375. $$[$0-1].push({type: 'optEnd', optText:$$[$0-2], signalType: yy.LINETYPE.OPT_END});
  47376. this.$=$$[$0-1];
  47377. break;
  47378. case 19:
  47379. // Alt start
  47380. $$[$0-1].unshift({type: 'altStart', altText:$$[$0-2], signalType: yy.LINETYPE.ALT_START});
  47381. // Content in alt is already in $$[$0-1]
  47382. // End
  47383. $$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});
  47384. this.$=$$[$0-1];
  47385. break;
  47386. case 20:
  47387. // Parallel start
  47388. $$[$0-1].unshift({type: 'parStart', parText:$$[$0-2], signalType: yy.LINETYPE.PAR_START});
  47389. // Content in par is already in $$[$0-1]
  47390. // End
  47391. $$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});
  47392. this.$=$$[$0-1];
  47393. break;
  47394. case 22:
  47395. this.$ = $$[$0-3].concat([{type: 'and', parText:$$[$0-1], signalType: yy.LINETYPE.PAR_AND}, $$[$0]]);
  47396. break;
  47397. case 24:
  47398. this.$ = $$[$0-3].concat([{type: 'else', altText:$$[$0-1], signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]);
  47399. break;
  47400. case 25:
  47401. this.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];
  47402. break;
  47403. case 26:
  47404. // Coerce actor_pair into a [to, from, ...] array
  47405. $$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);
  47406. $$[$0-2][0] = $$[$0-2][0].actor;
  47407. $$[$0-2][1] = $$[$0-2][1].actor;
  47408. this.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];
  47409. break;
  47410. case 29:
  47411. this.$ = [$$[$0-2], $$[$0]];
  47412. break;
  47413. case 30:
  47414. this.$ = $$[$0];
  47415. break;
  47416. case 31:
  47417. this.$ = yy.PLACEMENT.LEFTOF;
  47418. break;
  47419. case 32:
  47420. this.$ = yy.PLACEMENT.RIGHTOF;
  47421. break;
  47422. case 33:
  47423. this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
  47424. {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}
  47425. ]
  47426. break;
  47427. case 34:
  47428. this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
  47429. {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}
  47430. ]
  47431. break;
  47432. case 35:
  47433. this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]
  47434. break;
  47435. case 36:
  47436. this.$={type: 'addActor', actor:$$[$0]}
  47437. break;
  47438. case 37:
  47439. this.$ = yy.LINETYPE.SOLID_OPEN;
  47440. break;
  47441. case 38:
  47442. this.$ = yy.LINETYPE.DOTTED_OPEN;
  47443. break;
  47444. case 39:
  47445. this.$ = yy.LINETYPE.SOLID;
  47446. break;
  47447. case 40:
  47448. this.$ = yy.LINETYPE.DOTTED;
  47449. break;
  47450. case 41:
  47451. this.$ = yy.LINETYPE.SOLID_CROSS;
  47452. break;
  47453. case 42:
  47454. this.$ = yy.LINETYPE.DOTTED_CROSS;
  47455. break;
  47456. case 43:
  47457. this.$ = $$[$0].substring(1).trim().replace(/\\n/gm, "\n");
  47458. break;
  47459. }
  47460. },
  47461. table: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,10,15,16,18,20,22,23,24,26,30,41],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:$V6,11:23,14:13,15:$V7,16:$V8,17:16,18:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,26:$Ve,30:$Vf,41:$Vg},o($Vh,[2,5]),{9:26,10:$V6,11:23,14:13,15:$V7,16:$V8,17:16,18:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,26:$Ve,30:$Vf,41:$Vg},o($Vh,[2,7]),o($Vh,[2,8]),{11:27,41:$Vg},{5:[1,28]},{11:29,41:$Vg},{11:30,41:$Vg},{5:[1,31]},{19:32,48:$Vi},{13:[1,34]},{13:[1,35]},{13:[1,36]},{13:[1,37]},{13:[1,38]},{38:39,42:[1,40],43:[1,41],44:[1,42],45:[1,43],46:[1,44],47:[1,45]},{31:46,32:[1,47],36:[1,48],37:[1,49]},o([5,12,35,42,43,44,45,46,47,48],[2,36]),o($Vh,[2,6]),{5:[1,51],12:[1,50]},o($Vh,[2,11]),{5:[1,52]},{5:[1,53]},o($Vh,[2,14]),{5:[1,54]},{5:[2,43]},o($Vj,$V3,{7:55}),o($Vj,$V3,{7:56}),o($Vj,$V3,{7:57}),o($Vk,$V3,{25:58,7:59}),o($Vl,$V3,{27:60,7:61}),{11:64,39:[1,62],40:[1,63],41:$Vg},o($Vm,[2,37]),o($Vm,[2,38]),o($Vm,[2,39]),o($Vm,[2,40]),o($Vm,[2,41]),o($Vm,[2,42]),{11:65,41:$Vg},{11:67,33:66,41:$Vg},{41:[2,31]},{41:[2,32]},{13:[1,68]},o($Vh,[2,10]),o($Vh,[2,12]),o($Vh,[2,13]),o($Vh,[2,15]),{4:$V4,5:$V5,8:8,9:10,10:$V6,11:23,14:13,15:$V7,16:$V8,17:16,18:$V9,20:$Va,21:[1,69],22:$Vb,23:$Vc,24:$Vd,26:$Ve,30:$Vf,41:$Vg},{4:$V4,5:$V5,8:8,9:10,10:$V6,11:23,14:13,15:$V7,16:$V8,17:16,18:$V9,20:$Va,21:[1,70],22:$Vb,23:$Vc,24:$Vd,26:$Ve,30:$Vf,41:$Vg},{4:$V4,5:$V5,8:8,9:10,10:$V6,11:23,14:13,15:$V7,16:$V8,17:16,18:$V9,20:$Va,21:[1,71],22:$Vb,23:$Vc,24:$Vd,26:$Ve,30:$Vf,41:$Vg},{21:[1,72]},{4:$V4,5:$V5,8:8,9:10,10:$V6,11:23,14:13,15:$V7,16:$V8,17:16,18:$V9,20:$Va,21:[2,23],22:$Vb,23:$Vc,24:$Vd,26:$Ve,29:[1,73],30:$Vf,41:$Vg},{21:[1,74]},{4:$V4,5:$V5,8:8,9:10,10:$V6,11:23,14:13,15:$V7,16:$V8,17:16,18:$V9,20:$Va,21:[2,21],22:$Vb,23:$Vc,24:$Vd,26:$Ve,28:[1,75],30:$Vf,41:$Vg},{11:76,41:$Vg},{11:77,41:$Vg},{19:78,48:$Vi},{19:79,48:$Vi},{19:80,48:$Vi},{35:[1,81],48:[2,30]},{5:[1,82]},o($Vh,[2,16]),o($Vh,[2,17]),o($Vh,[2,18]),o($Vh,[2,19]),{13:[1,83]},o($Vh,[2,20]),{13:[1,84]},{19:85,48:$Vi},{19:86,48:$Vi},{5:[2,35]},{5:[2,25]},{5:[2,26]},{11:87,41:$Vg},o($Vh,[2,9]),o($Vk,$V3,{7:59,25:88}),o($Vl,$V3,{7:61,27:89}),{5:[2,33]},{5:[2,34]},{48:[2,29]},{21:[2,24]},{21:[2,22]}],
  47462. defaultActions: {5:[2,1],6:[2,2],33:[2,43],48:[2,31],49:[2,32],78:[2,35],79:[2,25],80:[2,26],85:[2,33],86:[2,34],87:[2,29],88:[2,24],89:[2,22]},
  47463. parseError: function parseError (str, hash) {
  47464. if (hash.recoverable) {
  47465. this.trace(str);
  47466. } else {
  47467. var error = new Error(str);
  47468. error.hash = hash;
  47469. throw error;
  47470. }
  47471. },
  47472. parse: function parse(input) {
  47473. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  47474. var args = lstack.slice.call(arguments, 1);
  47475. var lexer = Object.create(this.lexer);
  47476. var sharedState = { yy: {} };
  47477. for (var k in this.yy) {
  47478. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  47479. sharedState.yy[k] = this.yy[k];
  47480. }
  47481. }
  47482. lexer.setInput(input, sharedState.yy);
  47483. sharedState.yy.lexer = lexer;
  47484. sharedState.yy.parser = this;
  47485. if (typeof lexer.yylloc == 'undefined') {
  47486. lexer.yylloc = {};
  47487. }
  47488. var yyloc = lexer.yylloc;
  47489. lstack.push(yyloc);
  47490. var ranges = lexer.options && lexer.options.ranges;
  47491. if (typeof sharedState.yy.parseError === 'function') {
  47492. this.parseError = sharedState.yy.parseError;
  47493. } else {
  47494. this.parseError = Object.getPrototypeOf(this).parseError;
  47495. }
  47496. function popStack(n) {
  47497. stack.length = stack.length - 2 * n;
  47498. vstack.length = vstack.length - n;
  47499. lstack.length = lstack.length - n;
  47500. }
  47501. function lex() {
  47502. var token;
  47503. token = tstack.pop() || lexer.lex() || EOF;
  47504. if (typeof token !== 'number') {
  47505. if (token instanceof Array) {
  47506. tstack = token;
  47507. token = tstack.pop();
  47508. }
  47509. token = self.symbols_[token] || token;
  47510. }
  47511. return token;
  47512. }
  47513. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  47514. while (true) {
  47515. state = stack[stack.length - 1];
  47516. if (this.defaultActions[state]) {
  47517. action = this.defaultActions[state];
  47518. } else {
  47519. if (symbol === null || typeof symbol == 'undefined') {
  47520. symbol = lex();
  47521. }
  47522. action = table[state] && table[state][symbol];
  47523. }
  47524. if (typeof action === 'undefined' || !action.length || !action[0]) {
  47525. var errStr = '';
  47526. expected = [];
  47527. for (p in table[state]) {
  47528. if (this.terminals_[p] && p > TERROR) {
  47529. expected.push('\'' + this.terminals_[p] + '\'');
  47530. }
  47531. }
  47532. if (lexer.showPosition) {
  47533. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  47534. } else {
  47535. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  47536. }
  47537. this.parseError(errStr, {
  47538. text: lexer.match,
  47539. token: this.terminals_[symbol] || symbol,
  47540. line: lexer.yylineno,
  47541. loc: yyloc,
  47542. expected: expected
  47543. });
  47544. }
  47545. if (action[0] instanceof Array && action.length > 1) {
  47546. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  47547. }
  47548. switch (action[0]) {
  47549. case 1:
  47550. stack.push(symbol);
  47551. vstack.push(lexer.yytext);
  47552. lstack.push(lexer.yylloc);
  47553. stack.push(action[1]);
  47554. symbol = null;
  47555. if (!preErrorSymbol) {
  47556. yyleng = lexer.yyleng;
  47557. yytext = lexer.yytext;
  47558. yylineno = lexer.yylineno;
  47559. yyloc = lexer.yylloc;
  47560. if (recovering > 0) {
  47561. recovering--;
  47562. }
  47563. } else {
  47564. symbol = preErrorSymbol;
  47565. preErrorSymbol = null;
  47566. }
  47567. break;
  47568. case 2:
  47569. len = this.productions_[action[1]][1];
  47570. yyval.$ = vstack[vstack.length - len];
  47571. yyval._$ = {
  47572. first_line: lstack[lstack.length - (len || 1)].first_line,
  47573. last_line: lstack[lstack.length - 1].last_line,
  47574. first_column: lstack[lstack.length - (len || 1)].first_column,
  47575. last_column: lstack[lstack.length - 1].last_column
  47576. };
  47577. if (ranges) {
  47578. yyval._$.range = [
  47579. lstack[lstack.length - (len || 1)].range[0],
  47580. lstack[lstack.length - 1].range[1]
  47581. ];
  47582. }
  47583. r = this.performAction.apply(yyval, [
  47584. yytext,
  47585. yyleng,
  47586. yylineno,
  47587. sharedState.yy,
  47588. action[1],
  47589. vstack,
  47590. lstack
  47591. ].concat(args));
  47592. if (typeof r !== 'undefined') {
  47593. return r;
  47594. }
  47595. if (len) {
  47596. stack = stack.slice(0, -1 * len * 2);
  47597. vstack = vstack.slice(0, -1 * len);
  47598. lstack = lstack.slice(0, -1 * len);
  47599. }
  47600. stack.push(this.productions_[action[1]][0]);
  47601. vstack.push(yyval.$);
  47602. lstack.push(yyval._$);
  47603. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  47604. stack.push(newState);
  47605. break;
  47606. case 3:
  47607. return true;
  47608. }
  47609. }
  47610. return true;
  47611. }};
  47612. /* generated by jison-lex 0.3.4 */
  47613. var lexer = (function(){
  47614. var lexer = ({
  47615. EOF:1,
  47616. parseError:function parseError(str, hash) {
  47617. if (this.yy.parser) {
  47618. this.yy.parser.parseError(str, hash);
  47619. } else {
  47620. throw new Error(str);
  47621. }
  47622. },
  47623. // resets the lexer, sets new input
  47624. setInput:function (input, yy) {
  47625. this.yy = yy || this.yy || {};
  47626. this._input = input;
  47627. this._more = this._backtrack = this.done = false;
  47628. this.yylineno = this.yyleng = 0;
  47629. this.yytext = this.matched = this.match = '';
  47630. this.conditionStack = ['INITIAL'];
  47631. this.yylloc = {
  47632. first_line: 1,
  47633. first_column: 0,
  47634. last_line: 1,
  47635. last_column: 0
  47636. };
  47637. if (this.options.ranges) {
  47638. this.yylloc.range = [0,0];
  47639. }
  47640. this.offset = 0;
  47641. return this;
  47642. },
  47643. // consumes and returns one char from the input
  47644. input:function () {
  47645. var ch = this._input[0];
  47646. this.yytext += ch;
  47647. this.yyleng++;
  47648. this.offset++;
  47649. this.match += ch;
  47650. this.matched += ch;
  47651. var lines = ch.match(/(?:\r\n?|\n).*/g);
  47652. if (lines) {
  47653. this.yylineno++;
  47654. this.yylloc.last_line++;
  47655. } else {
  47656. this.yylloc.last_column++;
  47657. }
  47658. if (this.options.ranges) {
  47659. this.yylloc.range[1]++;
  47660. }
  47661. this._input = this._input.slice(1);
  47662. return ch;
  47663. },
  47664. // unshifts one char (or a string) into the input
  47665. unput:function (ch) {
  47666. var len = ch.length;
  47667. var lines = ch.split(/(?:\r\n?|\n)/g);
  47668. this._input = ch + this._input;
  47669. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  47670. //this.yyleng -= len;
  47671. this.offset -= len;
  47672. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  47673. this.match = this.match.substr(0, this.match.length - 1);
  47674. this.matched = this.matched.substr(0, this.matched.length - 1);
  47675. if (lines.length - 1) {
  47676. this.yylineno -= lines.length - 1;
  47677. }
  47678. var r = this.yylloc.range;
  47679. this.yylloc = {
  47680. first_line: this.yylloc.first_line,
  47681. last_line: this.yylineno + 1,
  47682. first_column: this.yylloc.first_column,
  47683. last_column: lines ?
  47684. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  47685. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  47686. this.yylloc.first_column - len
  47687. };
  47688. if (this.options.ranges) {
  47689. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  47690. }
  47691. this.yyleng = this.yytext.length;
  47692. return this;
  47693. },
  47694. // When called from action, caches matched text and appends it on next action
  47695. more:function () {
  47696. this._more = true;
  47697. return this;
  47698. },
  47699. // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
  47700. reject:function () {
  47701. if (this.options.backtrack_lexer) {
  47702. this._backtrack = true;
  47703. } else {
  47704. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
  47705. text: "",
  47706. token: null,
  47707. line: this.yylineno
  47708. });
  47709. }
  47710. return this;
  47711. },
  47712. // retain first n characters of the match
  47713. less:function (n) {
  47714. this.unput(this.match.slice(n));
  47715. },
  47716. // displays already matched input, i.e. for error messages
  47717. pastInput:function () {
  47718. var past = this.matched.substr(0, this.matched.length - this.match.length);
  47719. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  47720. },
  47721. // displays upcoming input, i.e. for error messages
  47722. upcomingInput:function () {
  47723. var next = this.match;
  47724. if (next.length < 20) {
  47725. next += this._input.substr(0, 20-next.length);
  47726. }
  47727. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  47728. },
  47729. // displays the character position where the lexing error occurred, i.e. for error messages
  47730. showPosition:function () {
  47731. var pre = this.pastInput();
  47732. var c = new Array(pre.length + 1).join("-");
  47733. return pre + this.upcomingInput() + "\n" + c + "^";
  47734. },
  47735. // test the lexed token: return FALSE when not a match, otherwise return token
  47736. test_match:function(match, indexed_rule) {
  47737. var token,
  47738. lines,
  47739. backup;
  47740. if (this.options.backtrack_lexer) {
  47741. // save context
  47742. backup = {
  47743. yylineno: this.yylineno,
  47744. yylloc: {
  47745. first_line: this.yylloc.first_line,
  47746. last_line: this.last_line,
  47747. first_column: this.yylloc.first_column,
  47748. last_column: this.yylloc.last_column
  47749. },
  47750. yytext: this.yytext,
  47751. match: this.match,
  47752. matches: this.matches,
  47753. matched: this.matched,
  47754. yyleng: this.yyleng,
  47755. offset: this.offset,
  47756. _more: this._more,
  47757. _input: this._input,
  47758. yy: this.yy,
  47759. conditionStack: this.conditionStack.slice(0),
  47760. done: this.done
  47761. };
  47762. if (this.options.ranges) {
  47763. backup.yylloc.range = this.yylloc.range.slice(0);
  47764. }
  47765. }
  47766. lines = match[0].match(/(?:\r\n?|\n).*/g);
  47767. if (lines) {
  47768. this.yylineno += lines.length;
  47769. }
  47770. this.yylloc = {
  47771. first_line: this.yylloc.last_line,
  47772. last_line: this.yylineno + 1,
  47773. first_column: this.yylloc.last_column,
  47774. last_column: lines ?
  47775. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  47776. this.yylloc.last_column + match[0].length
  47777. };
  47778. this.yytext += match[0];
  47779. this.match += match[0];
  47780. this.matches = match;
  47781. this.yyleng = this.yytext.length;
  47782. if (this.options.ranges) {
  47783. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  47784. }
  47785. this._more = false;
  47786. this._backtrack = false;
  47787. this._input = this._input.slice(match[0].length);
  47788. this.matched += match[0];
  47789. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  47790. if (this.done && this._input) {
  47791. this.done = false;
  47792. }
  47793. if (token) {
  47794. return token;
  47795. } else if (this._backtrack) {
  47796. // recover context
  47797. for (var k in backup) {
  47798. this[k] = backup[k];
  47799. }
  47800. return false; // rule action called reject() implying the next rule should be tested instead.
  47801. }
  47802. return false;
  47803. },
  47804. // return next match in input
  47805. next:function () {
  47806. if (this.done) {
  47807. return this.EOF;
  47808. }
  47809. if (!this._input) {
  47810. this.done = true;
  47811. }
  47812. var token,
  47813. match,
  47814. tempMatch,
  47815. index;
  47816. if (!this._more) {
  47817. this.yytext = '';
  47818. this.match = '';
  47819. }
  47820. var rules = this._currentRules();
  47821. for (var i = 0; i < rules.length; i++) {
  47822. tempMatch = this._input.match(this.rules[rules[i]]);
  47823. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  47824. match = tempMatch;
  47825. index = i;
  47826. if (this.options.backtrack_lexer) {
  47827. token = this.test_match(tempMatch, rules[i]);
  47828. if (token !== false) {
  47829. return token;
  47830. } else if (this._backtrack) {
  47831. match = false;
  47832. continue; // rule action called reject() implying a rule MISmatch.
  47833. } else {
  47834. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  47835. return false;
  47836. }
  47837. } else if (!this.options.flex) {
  47838. break;
  47839. }
  47840. }
  47841. }
  47842. if (match) {
  47843. token = this.test_match(match, rules[index]);
  47844. if (token !== false) {
  47845. return token;
  47846. }
  47847. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  47848. return false;
  47849. }
  47850. if (this._input === "") {
  47851. return this.EOF;
  47852. } else {
  47853. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  47854. text: "",
  47855. token: null,
  47856. line: this.yylineno
  47857. });
  47858. }
  47859. },
  47860. // return next match that has a token
  47861. lex:function lex () {
  47862. var r = this.next();
  47863. if (r) {
  47864. return r;
  47865. } else {
  47866. return this.lex();
  47867. }
  47868. },
  47869. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  47870. begin:function begin (condition) {
  47871. this.conditionStack.push(condition);
  47872. },
  47873. // pop the previously active lexer condition state off the condition stack
  47874. popState:function popState () {
  47875. var n = this.conditionStack.length - 1;
  47876. if (n > 0) {
  47877. return this.conditionStack.pop();
  47878. } else {
  47879. return this.conditionStack[0];
  47880. }
  47881. },
  47882. // produce the lexer rule set which is active for the currently active lexer condition state
  47883. _currentRules:function _currentRules () {
  47884. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  47885. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  47886. } else {
  47887. return this.conditions["INITIAL"].rules;
  47888. }
  47889. },
  47890. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  47891. topState:function topState (n) {
  47892. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  47893. if (n >= 0) {
  47894. return this.conditionStack[n];
  47895. } else {
  47896. return "INITIAL";
  47897. }
  47898. },
  47899. // alias for begin(condition)
  47900. pushState:function pushState (condition) {
  47901. this.begin(condition);
  47902. },
  47903. // return the number of states currently on the stack
  47904. stateStackSize:function stateStackSize() {
  47905. return this.conditionStack.length;
  47906. },
  47907. options: {"case-insensitive":true},
  47908. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  47909. var YYSTATE=YY_START;
  47910. switch($avoiding_name_collisions) {
  47911. case 0:return 5;
  47912. break;
  47913. case 1:/* skip all whitespace */
  47914. break;
  47915. case 2:/* skip same-line whitespace */
  47916. break;
  47917. case 3:/* skip comments */
  47918. break;
  47919. case 4:/* skip comments */
  47920. break;
  47921. case 5: this.begin('ID'); return 10;
  47922. break;
  47923. case 6: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 41;
  47924. break;
  47925. case 7: this.popState(); this.popState(); this.begin('LINE'); return 12;
  47926. break;
  47927. case 8: this.popState(); this.popState(); return 5;
  47928. break;
  47929. case 9: this.begin('LINE'); return 20;
  47930. break;
  47931. case 10: this.begin('LINE'); return 22;
  47932. break;
  47933. case 11: this.begin('LINE'); return 23;
  47934. break;
  47935. case 12: this.begin('LINE'); return 24;
  47936. break;
  47937. case 13: this.begin('LINE'); return 29;
  47938. break;
  47939. case 14: this.begin('LINE'); return 26;
  47940. break;
  47941. case 15: this.begin('LINE'); return 28;
  47942. break;
  47943. case 16: this.popState(); return 13;
  47944. break;
  47945. case 17:return 21;
  47946. break;
  47947. case 18:return 36;
  47948. break;
  47949. case 19:return 37;
  47950. break;
  47951. case 20:return 32;
  47952. break;
  47953. case 21:return 30;
  47954. break;
  47955. case 22: this.begin('ID'); return 15;
  47956. break;
  47957. case 23: this.begin('ID'); return 16;
  47958. break;
  47959. case 24:return 18;
  47960. break;
  47961. case 25:return 6;
  47962. break;
  47963. case 26:return 35;
  47964. break;
  47965. case 27:return 5;
  47966. break;
  47967. case 28: yy_.yytext = yy_.yytext.trim(); return 41;
  47968. break;
  47969. case 29:return 44;
  47970. break;
  47971. case 30:return 45;
  47972. break;
  47973. case 31:return 42;
  47974. break;
  47975. case 32:return 43;
  47976. break;
  47977. case 33:return 46;
  47978. break;
  47979. case 34:return 47;
  47980. break;
  47981. case 35:return 48;
  47982. break;
  47983. case 36:return 39;
  47984. break;
  47985. case 37:return 40;
  47986. break;
  47987. case 38:return 5;
  47988. break;
  47989. case 39:return 'INVALID';
  47990. break;
  47991. }
  47992. },
  47993. rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],
  47994. conditions: {"LINE":{"rules":[2,3,16],"inclusive":false},"ALIAS":{"rules":[2,3,7,8],"inclusive":false},"ID":{"rules":[2,3,6],"inclusive":false},"INITIAL":{"rules":[0,1,3,4,5,9,10,11,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"inclusive":true}}
  47995. });
  47996. return lexer;
  47997. })();
  47998. parser.lexer = lexer;
  47999. function Parser () {
  48000. this.yy = {};
  48001. }
  48002. Parser.prototype = parser;parser.Parser = Parser;
  48003. return new Parser;
  48004. })();
  48005. if (true) {
  48006. exports.parser = parser;
  48007. exports.Parser = parser.Parser;
  48008. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  48009. exports.main = function commonjsMain (args) {
  48010. if (!args[1]) {
  48011. console.log('Usage: '+args[0]+' FILE');
  48012. process.exit(1);
  48013. }
  48014. var source = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js").readFileSync(__webpack_require__(/*! path */ "./node_modules/path-browserify/index.js").normalize(args[1]), "utf8");
  48015. return exports.parser.parse(source);
  48016. };
  48017. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  48018. exports.main(process.argv.slice(1));
  48019. }
  48020. }
  48021. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  48022. /***/ }),
  48023. /***/ "./src/diagrams/sequence/sequenceDb.js":
  48024. /*!*********************************************!*\
  48025. !*** ./src/diagrams/sequence/sequenceDb.js ***!
  48026. \*********************************************/
  48027. /*! exports provided: addActor, addMessage, addSignal, getMessages, getActors, getActor, getActorKeys, getTitle, clear, LINETYPE, ARROWTYPE, PLACEMENT, addNote, setTitle, apply, default */
  48028. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48029. "use strict";
  48030. __webpack_require__.r(__webpack_exports__);
  48031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addActor", function() { return addActor; });
  48032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMessage", function() { return addMessage; });
  48033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSignal", function() { return addSignal; });
  48034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMessages", function() { return getMessages; });
  48035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActors", function() { return getActors; });
  48036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActor", function() { return getActor; });
  48037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActorKeys", function() { return getActorKeys; });
  48038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitle", function() { return getTitle; });
  48039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  48040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LINETYPE", function() { return LINETYPE; });
  48041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ARROWTYPE", function() { return ARROWTYPE; });
  48042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLACEMENT", function() { return PLACEMENT; });
  48043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addNote", function() { return addNote; });
  48044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTitle", function() { return setTitle; });
  48045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apply", function() { return apply; });
  48046. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  48047. let actors = {};
  48048. let messages = [];
  48049. const notes = [];
  48050. let title = '';
  48051. const addActor = function (id, name, description) {
  48052. // Don't allow description nulling
  48053. const old = actors[id];
  48054. if (old && name === old.name && description == null) return; // Don't allow null descriptions, either
  48055. if (description == null) description = name;
  48056. actors[id] = {
  48057. name: name,
  48058. description: description
  48059. };
  48060. };
  48061. const addMessage = function (idFrom, idTo, message, answer) {
  48062. messages.push({
  48063. from: idFrom,
  48064. to: idTo,
  48065. message: message,
  48066. answer: answer
  48067. });
  48068. };
  48069. const addSignal = function (idFrom, idTo, message, messageType) {
  48070. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Adding message from=' + idFrom + ' to=' + idTo + ' message=' + message + ' type=' + messageType);
  48071. messages.push({
  48072. from: idFrom,
  48073. to: idTo,
  48074. message: message,
  48075. type: messageType
  48076. });
  48077. };
  48078. const getMessages = function () {
  48079. return messages;
  48080. };
  48081. const getActors = function () {
  48082. return actors;
  48083. };
  48084. const getActor = function (id) {
  48085. return actors[id];
  48086. };
  48087. const getActorKeys = function () {
  48088. return Object.keys(actors);
  48089. };
  48090. const getTitle = function () {
  48091. return title;
  48092. };
  48093. const clear = function () {
  48094. actors = {};
  48095. messages = [];
  48096. };
  48097. const LINETYPE = {
  48098. SOLID: 0,
  48099. DOTTED: 1,
  48100. NOTE: 2,
  48101. SOLID_CROSS: 3,
  48102. DOTTED_CROSS: 4,
  48103. SOLID_OPEN: 5,
  48104. DOTTED_OPEN: 6,
  48105. LOOP_START: 10,
  48106. LOOP_END: 11,
  48107. ALT_START: 12,
  48108. ALT_ELSE: 13,
  48109. ALT_END: 14,
  48110. OPT_START: 15,
  48111. OPT_END: 16,
  48112. ACTIVE_START: 17,
  48113. ACTIVE_END: 18,
  48114. PAR_START: 19,
  48115. PAR_AND: 20,
  48116. PAR_END: 21,
  48117. RECT_START: 22,
  48118. RECT_END: 23
  48119. };
  48120. const ARROWTYPE = {
  48121. FILLED: 0,
  48122. OPEN: 1
  48123. };
  48124. const PLACEMENT = {
  48125. LEFTOF: 0,
  48126. RIGHTOF: 1,
  48127. OVER: 2
  48128. };
  48129. const addNote = function (actor, placement, message) {
  48130. const note = {
  48131. actor: actor,
  48132. placement: placement,
  48133. message: message // Coerce actor into a [to, from, ...] array
  48134. };
  48135. const actors = [].concat(actor, actor);
  48136. notes.push(note);
  48137. messages.push({
  48138. from: actors[0],
  48139. to: actors[1],
  48140. message: message,
  48141. type: LINETYPE.NOTE,
  48142. placement: placement
  48143. });
  48144. };
  48145. const setTitle = function (titleText) {
  48146. title = titleText;
  48147. };
  48148. const apply = function (param) {
  48149. if (param instanceof Array) {
  48150. param.forEach(function (item) {
  48151. apply(item);
  48152. });
  48153. } else {
  48154. switch (param.type) {
  48155. case 'addActor':
  48156. addActor(param.actor, param.actor, param.description);
  48157. break;
  48158. case 'activeStart':
  48159. addSignal(param.actor, undefined, undefined, param.signalType);
  48160. break;
  48161. case 'activeEnd':
  48162. addSignal(param.actor, undefined, undefined, param.signalType);
  48163. break;
  48164. case 'addNote':
  48165. addNote(param.actor, param.placement, param.text);
  48166. break;
  48167. case 'addMessage':
  48168. addSignal(param.from, param.to, param.msg, param.signalType);
  48169. break;
  48170. case 'loopStart':
  48171. addSignal(undefined, undefined, param.loopText, param.signalType);
  48172. break;
  48173. case 'loopEnd':
  48174. addSignal(undefined, undefined, undefined, param.signalType);
  48175. break;
  48176. case 'rectStart':
  48177. addSignal(undefined, undefined, param.color, param.signalType);
  48178. break;
  48179. case 'rectEnd':
  48180. addSignal(undefined, undefined, undefined, param.signalType);
  48181. break;
  48182. case 'optStart':
  48183. addSignal(undefined, undefined, param.optText, param.signalType);
  48184. break;
  48185. case 'optEnd':
  48186. addSignal(undefined, undefined, undefined, param.signalType);
  48187. break;
  48188. case 'altStart':
  48189. addSignal(undefined, undefined, param.altText, param.signalType);
  48190. break;
  48191. case 'else':
  48192. addSignal(undefined, undefined, param.altText, param.signalType);
  48193. break;
  48194. case 'altEnd':
  48195. addSignal(undefined, undefined, undefined, param.signalType);
  48196. break;
  48197. case 'setTitle':
  48198. setTitle(param.text);
  48199. break;
  48200. case 'parStart':
  48201. addSignal(undefined, undefined, param.parText, param.signalType);
  48202. break;
  48203. case 'and':
  48204. addSignal(undefined, undefined, param.parText, param.signalType);
  48205. break;
  48206. case 'parEnd':
  48207. addSignal(undefined, undefined, undefined, param.signalType);
  48208. break;
  48209. }
  48210. }
  48211. };
  48212. /* harmony default export */ __webpack_exports__["default"] = ({
  48213. addActor,
  48214. addMessage,
  48215. addSignal,
  48216. getMessages,
  48217. getActors,
  48218. getActor,
  48219. getActorKeys,
  48220. getTitle,
  48221. clear,
  48222. LINETYPE,
  48223. ARROWTYPE,
  48224. PLACEMENT,
  48225. addNote,
  48226. setTitle,
  48227. apply
  48228. });
  48229. /***/ }),
  48230. /***/ "./src/diagrams/sequence/sequenceRenderer.js":
  48231. /*!***************************************************!*\
  48232. !*** ./src/diagrams/sequence/sequenceRenderer.js ***!
  48233. \***************************************************/
  48234. /*! exports provided: bounds, drawActors, setConf, draw, default */
  48235. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48236. "use strict";
  48237. __webpack_require__.r(__webpack_exports__);
  48238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounds", function() { return bounds; });
  48239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawActors", function() { return drawActors; });
  48240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  48241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  48242. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  48243. /* harmony import */ var _svgDraw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./svgDraw */ "./src/diagrams/sequence/svgDraw.js");
  48244. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  48245. /* harmony import */ var _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison");
  48246. /* harmony import */ var _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__);
  48247. /* harmony import */ var _sequenceDb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sequenceDb */ "./src/diagrams/sequence/sequenceDb.js");
  48248. _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy = _sequenceDb__WEBPACK_IMPORTED_MODULE_4__["default"];
  48249. const conf = {
  48250. diagramMarginX: 50,
  48251. diagramMarginY: 30,
  48252. // Margin between actors
  48253. actorMargin: 50,
  48254. // Width of actor boxes
  48255. width: 150,
  48256. // Height of actor boxes
  48257. height: 65,
  48258. actorFontSize: 14,
  48259. actorFontFamily: '"Open-Sans", "sans-serif"',
  48260. // Margin around loop boxes
  48261. boxMargin: 10,
  48262. boxTextMargin: 5,
  48263. noteMargin: 10,
  48264. // Space between messages
  48265. messageMargin: 35,
  48266. // mirror actors under diagram
  48267. mirrorActors: false,
  48268. // Depending on css styling this might need adjustment
  48269. // Prolongs the edge of the diagram downwards
  48270. bottomMarginAdj: 1,
  48271. // width of activation box
  48272. activationWidth: 10,
  48273. // text placement as: tspan | fo | old only text as before
  48274. textPlacement: 'tspan',
  48275. showSequenceNumbers: false
  48276. };
  48277. const bounds = {
  48278. data: {
  48279. startx: undefined,
  48280. stopx: undefined,
  48281. starty: undefined,
  48282. stopy: undefined
  48283. },
  48284. verticalPos: 0,
  48285. sequenceItems: [],
  48286. activations: [],
  48287. init: function () {
  48288. this.sequenceItems = [];
  48289. this.activations = [];
  48290. this.data = {
  48291. startx: undefined,
  48292. stopx: undefined,
  48293. starty: undefined,
  48294. stopy: undefined
  48295. };
  48296. this.verticalPos = 0;
  48297. },
  48298. updateVal: function (obj, key, val, fun) {
  48299. if (typeof obj[key] === 'undefined') {
  48300. obj[key] = val;
  48301. } else {
  48302. obj[key] = fun(val, obj[key]);
  48303. }
  48304. },
  48305. updateBounds: function (startx, starty, stopx, stopy) {
  48306. const _self = this;
  48307. let cnt = 0;
  48308. function updateFn(type) {
  48309. return function updateItemBounds(item) {
  48310. cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems
  48311. const n = _self.sequenceItems.length - cnt + 1;
  48312. _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);
  48313. _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);
  48314. _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);
  48315. _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);
  48316. if (!(type === 'activation')) {
  48317. _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);
  48318. _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);
  48319. _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);
  48320. _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);
  48321. }
  48322. };
  48323. }
  48324. this.sequenceItems.forEach(updateFn());
  48325. this.activations.forEach(updateFn('activation'));
  48326. },
  48327. insert: function (startx, starty, stopx, stopy) {
  48328. const _startx = Math.min(startx, stopx);
  48329. const _stopx = Math.max(startx, stopx);
  48330. const _starty = Math.min(starty, stopy);
  48331. const _stopy = Math.max(starty, stopy);
  48332. this.updateVal(bounds.data, 'startx', _startx, Math.min);
  48333. this.updateVal(bounds.data, 'starty', _starty, Math.min);
  48334. this.updateVal(bounds.data, 'stopx', _stopx, Math.max);
  48335. this.updateVal(bounds.data, 'stopy', _stopy, Math.max);
  48336. this.updateBounds(_startx, _starty, _stopx, _stopy);
  48337. },
  48338. newActivation: function (message, diagram) {
  48339. const actorRect = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getActors()[message.from.actor];
  48340. const stackedSize = actorActivations(message.from.actor).length;
  48341. const x = actorRect.x + conf.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
  48342. this.activations.push({
  48343. startx: x,
  48344. starty: this.verticalPos + 2,
  48345. stopx: x + conf.activationWidth,
  48346. stopy: undefined,
  48347. actor: message.from.actor,
  48348. anchored: _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].anchorElement(diagram)
  48349. });
  48350. },
  48351. endActivation: function (message) {
  48352. // find most recent activation for given actor
  48353. const lastActorActivationIdx = this.activations.map(function (activation) {
  48354. return activation.actor;
  48355. }).lastIndexOf(message.from.actor);
  48356. const activation = this.activations.splice(lastActorActivationIdx, 1)[0];
  48357. return activation;
  48358. },
  48359. newLoop: function (title, fill) {
  48360. this.sequenceItems.push({
  48361. startx: undefined,
  48362. starty: this.verticalPos,
  48363. stopx: undefined,
  48364. stopy: undefined,
  48365. title: title,
  48366. fill: fill
  48367. });
  48368. },
  48369. endLoop: function () {
  48370. const loop = this.sequenceItems.pop();
  48371. return loop;
  48372. },
  48373. addSectionToLoop: function (message) {
  48374. const loop = this.sequenceItems.pop();
  48375. loop.sections = loop.sections || [];
  48376. loop.sectionTitles = loop.sectionTitles || [];
  48377. loop.sections.push(bounds.getVerticalPos());
  48378. loop.sectionTitles.push(message);
  48379. this.sequenceItems.push(loop);
  48380. },
  48381. bumpVerticalPos: function (bump) {
  48382. this.verticalPos = this.verticalPos + bump;
  48383. this.data.stopy = this.verticalPos;
  48384. },
  48385. getVerticalPos: function () {
  48386. return this.verticalPos;
  48387. },
  48388. getBounds: function () {
  48389. return this.data;
  48390. }
  48391. };
  48392. const _drawLongText = (text, x, y, g, width) => {
  48393. let textHeight = 0;
  48394. const lines = text.split(/<br\/?>/ig);
  48395. for (const line of lines) {
  48396. const textObj = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].getTextObj();
  48397. textObj.x = x;
  48398. textObj.y = y + textHeight;
  48399. textObj.textMargin = conf.noteMargin;
  48400. textObj.dy = '1em';
  48401. textObj.text = line;
  48402. textObj.class = 'noteText';
  48403. const textElem = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawText(g, textObj, width);
  48404. textHeight += (textElem._groups || textElem)[0][0].getBBox().height;
  48405. }
  48406. return textHeight;
  48407. };
  48408. /**
  48409. * Draws an actor in the diagram with the attaced line
  48410. * @param center - The center of the the actor
  48411. * @param pos The position if the actor in the liost of actors
  48412. * @param description The text in the box
  48413. */
  48414. const drawNote = function (elem, startx, verticalPos, msg, forceWidth) {
  48415. const rect = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].getNoteRect();
  48416. rect.x = startx;
  48417. rect.y = verticalPos;
  48418. rect.width = forceWidth || conf.width;
  48419. rect.class = 'note';
  48420. let g = elem.append('g');
  48421. const rectElem = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawRect(g, rect);
  48422. const textHeight = _drawLongText(msg.message, startx - 4, verticalPos + 24, g, rect.width - conf.noteMargin);
  48423. bounds.insert(startx, verticalPos, startx + rect.width, verticalPos + 2 * conf.noteMargin + textHeight);
  48424. rectElem.attr('height', textHeight + 2 * conf.noteMargin);
  48425. bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);
  48426. };
  48427. /**
  48428. * Draws a message
  48429. * @param elem
  48430. * @param startx
  48431. * @param stopx
  48432. * @param verticalPos
  48433. * @param txtCenter
  48434. * @param msg
  48435. */
  48436. const drawMessage = function (elem, startx, stopx, verticalPos, msg, sequenceIndex) {
  48437. const g = elem.append('g');
  48438. const txtCenter = startx + (stopx - startx) / 2;
  48439. const textElem = g.append('text') // text label for the x axis
  48440. .attr('x', txtCenter).attr('y', verticalPos - 7).style('text-anchor', 'middle').attr('class', 'messageText').text(msg.message);
  48441. let textWidth = (textElem._groups || textElem)[0][0].getBBox().width;
  48442. let line;
  48443. if (startx === stopx) {
  48444. if (conf.rightAngles) {
  48445. line = g.append('path').attr('d', `M ${startx},${verticalPos} H ${startx + conf.width / 2} V ${verticalPos + 25} H ${startx}`);
  48446. } else {
  48447. line = g.append('path').attr('d', 'M ' + startx + ',' + verticalPos + ' C ' + (startx + 60) + ',' + (verticalPos - 10) + ' ' + (startx + 60) + ',' + (verticalPos + 30) + ' ' + startx + ',' + (verticalPos + 20));
  48448. }
  48449. bounds.bumpVerticalPos(30);
  48450. const dx = Math.max(textWidth / 2, 100);
  48451. bounds.insert(startx - dx, bounds.getVerticalPos() - 10, stopx + dx, bounds.getVerticalPos());
  48452. } else {
  48453. line = g.append('line');
  48454. line.attr('x1', startx);
  48455. line.attr('y1', verticalPos);
  48456. line.attr('x2', stopx);
  48457. line.attr('y2', verticalPos);
  48458. bounds.insert(startx, bounds.getVerticalPos() - 10, stopx, bounds.getVerticalPos());
  48459. } // Make an SVG Container
  48460. // Draw the line
  48461. if (msg.type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED || msg.type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_CROSS || msg.type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_OPEN) {
  48462. line.style('stroke-dasharray', '3, 3');
  48463. line.attr('class', 'messageLine1');
  48464. } else {
  48465. line.attr('class', 'messageLine0');
  48466. }
  48467. let url = '';
  48468. if (conf.arrowMarkerAbsolute) {
  48469. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  48470. url = url.replace(/\(/g, '\\(');
  48471. url = url.replace(/\)/g, '\\)');
  48472. }
  48473. line.attr('stroke-width', 2);
  48474. line.attr('stroke', 'black');
  48475. line.style('fill', 'none'); // remove any fill colour
  48476. if (msg.type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.SOLID || msg.type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED) {
  48477. line.attr('marker-end', 'url(' + url + '#arrowhead)');
  48478. }
  48479. if (msg.type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.SOLID_CROSS || msg.type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_CROSS) {
  48480. line.attr('marker-end', 'url(' + url + '#crosshead)');
  48481. } // add node number
  48482. if (conf.showSequenceNumbers) {
  48483. line.attr('marker-start', 'url(' + url + '#sequencenumber)');
  48484. g.append('text').attr('x', startx).attr('y', verticalPos + 4).attr('font-family', 'sans-serif').attr('font-size', '12px').attr('text-anchor', 'middle').attr('textLength', '16px').attr('class', 'sequenceNumber').text(sequenceIndex);
  48485. }
  48486. };
  48487. const drawActors = function (diagram, actors, actorKeys, verticalPos) {
  48488. // Draw the actors
  48489. for (let i = 0; i < actorKeys.length; i++) {
  48490. const key = actorKeys[i]; // Add some rendering data to the object
  48491. actors[key].x = i * conf.actorMargin + i * conf.width;
  48492. actors[key].y = verticalPos;
  48493. actors[key].width = conf.diagramMarginX;
  48494. actors[key].height = conf.diagramMarginY; // Draw the box with the attached line
  48495. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawActor(diagram, actors[key].x, verticalPos, actors[key].description, conf);
  48496. bounds.insert(actors[key].x, verticalPos, actors[key].x + conf.width, conf.height);
  48497. } // Add a margin between the actor boxes and the first arrow
  48498. bounds.bumpVerticalPos(conf.height);
  48499. };
  48500. const setConf = function (cnf) {
  48501. const keys = Object.keys(cnf);
  48502. keys.forEach(function (key) {
  48503. conf[key] = cnf[key];
  48504. });
  48505. };
  48506. const actorActivations = function (actor) {
  48507. return bounds.activations.filter(function (activation) {
  48508. return activation.actor === actor;
  48509. });
  48510. };
  48511. const actorFlowVerticaBounds = function (actor) {
  48512. // handle multiple stacked activations for same actor
  48513. const actors = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getActors();
  48514. const activations = actorActivations(actor);
  48515. const left = activations.reduce(function (acc, activation) {
  48516. return Math.min(acc, activation.startx);
  48517. }, actors[actor].x + conf.width / 2);
  48518. const right = activations.reduce(function (acc, activation) {
  48519. return Math.max(acc, activation.stopx);
  48520. }, actors[actor].x + conf.width / 2);
  48521. return [left, right];
  48522. };
  48523. /**
  48524. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  48525. * @param text
  48526. * @param id
  48527. */
  48528. const draw = function (text, id) {
  48529. _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.clear();
  48530. _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].parse(text + '\n');
  48531. bounds.init();
  48532. const diagram = d3__WEBPACK_IMPORTED_MODULE_0__["select"](`[id="${id}"]`);
  48533. let startx;
  48534. let stopx;
  48535. let forceWidth; // Fetch data from the parsing
  48536. const actors = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getActors();
  48537. const actorKeys = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getActorKeys();
  48538. const messages = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getMessages();
  48539. const title = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getTitle();
  48540. drawActors(diagram, actors, actorKeys, 0); // The arrow head definition is attached to the svg once
  48541. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].insertArrowHead(diagram);
  48542. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].insertArrowCrossHead(diagram);
  48543. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].insertSequenceNumber(diagram);
  48544. function activeEnd(msg, verticalPos) {
  48545. const activationData = bounds.endActivation(msg);
  48546. if (activationData.starty + 18 > verticalPos) {
  48547. activationData.starty = verticalPos - 6;
  48548. verticalPos += 12;
  48549. }
  48550. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawActivation(diagram, activationData, verticalPos, conf, actorActivations(msg.from.actor).length);
  48551. bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
  48552. } // const lastMsg
  48553. // Draw the messages/signals
  48554. let sequenceIndex = 1;
  48555. messages.forEach(function (msg) {
  48556. let loopData;
  48557. switch (msg.type) {
  48558. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.NOTE:
  48559. bounds.bumpVerticalPos(conf.boxMargin);
  48560. startx = actors[msg.from].x;
  48561. stopx = actors[msg.to].x;
  48562. if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.RIGHTOF) {
  48563. drawNote(diagram, startx + (conf.width + conf.actorMargin) / 2, bounds.getVerticalPos(), msg);
  48564. } else if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.LEFTOF) {
  48565. drawNote(diagram, startx - (conf.width + conf.actorMargin) / 2, bounds.getVerticalPos(), msg);
  48566. } else if (msg.to === msg.from) {
  48567. // Single-actor over
  48568. drawNote(diagram, startx, bounds.getVerticalPos(), msg);
  48569. } else {
  48570. // Multi-actor over
  48571. forceWidth = Math.abs(startx - stopx) + conf.actorMargin;
  48572. drawNote(diagram, (startx + stopx + conf.width - forceWidth) / 2, bounds.getVerticalPos(), msg, forceWidth);
  48573. }
  48574. break;
  48575. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ACTIVE_START:
  48576. bounds.newActivation(msg, diagram);
  48577. break;
  48578. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ACTIVE_END:
  48579. activeEnd(msg, bounds.getVerticalPos());
  48580. break;
  48581. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.LOOP_START:
  48582. bounds.bumpVerticalPos(conf.boxMargin);
  48583. bounds.newLoop(msg.message);
  48584. bounds.bumpVerticalPos(conf.boxMargin + conf.boxTextMargin);
  48585. break;
  48586. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.LOOP_END:
  48587. loopData = bounds.endLoop();
  48588. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopData, 'loop', conf);
  48589. bounds.bumpVerticalPos(conf.boxMargin);
  48590. break;
  48591. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.RECT_START:
  48592. bounds.bumpVerticalPos(conf.boxMargin);
  48593. bounds.newLoop(undefined, msg.message);
  48594. bounds.bumpVerticalPos(conf.boxMargin);
  48595. break;
  48596. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.RECT_END:
  48597. const rectData = bounds.endLoop();
  48598. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawBackgroundRect(diagram, rectData);
  48599. bounds.bumpVerticalPos(conf.boxMargin);
  48600. break;
  48601. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.OPT_START:
  48602. bounds.bumpVerticalPos(conf.boxMargin);
  48603. bounds.newLoop(msg.message);
  48604. bounds.bumpVerticalPos(conf.boxMargin + conf.boxTextMargin);
  48605. break;
  48606. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.OPT_END:
  48607. loopData = bounds.endLoop();
  48608. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopData, 'opt', conf);
  48609. bounds.bumpVerticalPos(conf.boxMargin);
  48610. break;
  48611. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_START:
  48612. bounds.bumpVerticalPos(conf.boxMargin);
  48613. bounds.newLoop(msg.message);
  48614. bounds.bumpVerticalPos(conf.boxMargin + conf.boxTextMargin);
  48615. break;
  48616. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_ELSE:
  48617. bounds.bumpVerticalPos(conf.boxMargin);
  48618. loopData = bounds.addSectionToLoop(msg.message);
  48619. bounds.bumpVerticalPos(conf.boxMargin);
  48620. break;
  48621. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_END:
  48622. loopData = bounds.endLoop();
  48623. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopData, 'alt', conf);
  48624. bounds.bumpVerticalPos(conf.boxMargin);
  48625. break;
  48626. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_START:
  48627. bounds.bumpVerticalPos(conf.boxMargin);
  48628. bounds.newLoop(msg.message);
  48629. bounds.bumpVerticalPos(conf.boxMargin + conf.boxTextMargin);
  48630. break;
  48631. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_AND:
  48632. bounds.bumpVerticalPos(conf.boxMargin);
  48633. loopData = bounds.addSectionToLoop(msg.message);
  48634. bounds.bumpVerticalPos(conf.boxMargin);
  48635. break;
  48636. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_END:
  48637. loopData = bounds.endLoop();
  48638. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopData, 'par', conf);
  48639. bounds.bumpVerticalPos(conf.boxMargin);
  48640. break;
  48641. default:
  48642. try {
  48643. // lastMsg = msg
  48644. bounds.bumpVerticalPos(conf.messageMargin);
  48645. const fromBounds = actorFlowVerticaBounds(msg.from);
  48646. const toBounds = actorFlowVerticaBounds(msg.to);
  48647. const fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;
  48648. const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;
  48649. startx = fromBounds[fromIdx];
  48650. stopx = toBounds[toIdx];
  48651. const verticalPos = bounds.getVerticalPos();
  48652. drawMessage(diagram, startx, stopx, verticalPos, msg, sequenceIndex);
  48653. const allBounds = fromBounds.concat(toBounds);
  48654. bounds.insert(Math.min.apply(null, allBounds), verticalPos, Math.max.apply(null, allBounds), verticalPos);
  48655. } catch (e) {
  48656. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].error('error while drawing message', e);
  48657. }
  48658. } // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)
  48659. if ([_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.SOLID_OPEN, _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_OPEN, _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.SOLID, _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED, _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.SOLID_CROSS, _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {
  48660. sequenceIndex++;
  48661. }
  48662. });
  48663. if (conf.mirrorActors) {
  48664. // Draw actors below diagram
  48665. bounds.bumpVerticalPos(conf.boxMargin * 2);
  48666. drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());
  48667. }
  48668. const box = bounds.getBounds(); // Adjust line height of actor lines now that the height of the diagram is known
  48669. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('For line height fix Querying: #' + id + ' .actor-line');
  48670. const actorLines = d3__WEBPACK_IMPORTED_MODULE_0__["selectAll"]('#' + id + ' .actor-line');
  48671. actorLines.attr('y2', box.stopy);
  48672. let height = box.stopy - box.starty + 2 * conf.diagramMarginY;
  48673. if (conf.mirrorActors) {
  48674. height = height - conf.boxMargin + conf.bottomMarginAdj;
  48675. }
  48676. const width = box.stopx - box.startx + 2 * conf.diagramMarginX;
  48677. if (title) {
  48678. diagram.append('text').text(title).attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr('y', -25);
  48679. }
  48680. if (conf.useMaxWidth) {
  48681. diagram.attr('height', '100%');
  48682. diagram.attr('width', '100%');
  48683. diagram.attr('style', 'max-width:' + width + 'px;');
  48684. } else {
  48685. diagram.attr('height', height);
  48686. diagram.attr('width', width);
  48687. }
  48688. const extraVertForTitle = title ? 40 : 0;
  48689. diagram.attr('viewBox', box.startx - conf.diagramMarginX + ' -' + (conf.diagramMarginY + extraVertForTitle) + ' ' + width + ' ' + (height + extraVertForTitle));
  48690. };
  48691. /* harmony default export */ __webpack_exports__["default"] = ({
  48692. bounds,
  48693. drawActors,
  48694. setConf,
  48695. draw
  48696. });
  48697. /***/ }),
  48698. /***/ "./src/diagrams/sequence/svgDraw.js":
  48699. /*!******************************************!*\
  48700. !*** ./src/diagrams/sequence/svgDraw.js ***!
  48701. \******************************************/
  48702. /*! exports provided: drawRect, drawText, drawLabel, drawActor, anchorElement, drawActivation, drawLoop, drawBackgroundRect, insertArrowHead, insertSequenceNumber, insertArrowCrossHead, getTextObj, getNoteRect, default */
  48703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48704. "use strict";
  48705. __webpack_require__.r(__webpack_exports__);
  48706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawRect", function() { return drawRect; });
  48707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawText", function() { return drawText; });
  48708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawLabel", function() { return drawLabel; });
  48709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawActor", function() { return drawActor; });
  48710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "anchorElement", function() { return anchorElement; });
  48711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawActivation", function() { return drawActivation; });
  48712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawLoop", function() { return drawLoop; });
  48713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawBackgroundRect", function() { return drawBackgroundRect; });
  48714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertArrowHead", function() { return insertArrowHead; });
  48715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertSequenceNumber", function() { return insertSequenceNumber; });
  48716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertArrowCrossHead", function() { return insertArrowCrossHead; });
  48717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTextObj", function() { return getTextObj; });
  48718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNoteRect", function() { return getNoteRect; });
  48719. const drawRect = function (elem, rectData) {
  48720. const rectElem = elem.append('rect');
  48721. rectElem.attr('x', rectData.x);
  48722. rectElem.attr('y', rectData.y);
  48723. rectElem.attr('fill', rectData.fill);
  48724. rectElem.attr('stroke', rectData.stroke);
  48725. rectElem.attr('width', rectData.width);
  48726. rectElem.attr('height', rectData.height);
  48727. rectElem.attr('rx', rectData.rx);
  48728. rectElem.attr('ry', rectData.ry);
  48729. if (typeof rectData.class !== 'undefined') {
  48730. rectElem.attr('class', rectData.class);
  48731. }
  48732. return rectElem;
  48733. };
  48734. const drawText = function (elem, textData, width) {
  48735. // Remove and ignore br:s
  48736. const nText = textData.text.replace(/<br\/?>/ig, ' ');
  48737. const textElem = elem.append('text');
  48738. textElem.attr('x', textData.x);
  48739. textElem.attr('y', textData.y);
  48740. textElem.style('text-anchor', textData.anchor);
  48741. textElem.attr('fill', textData.fill);
  48742. if (typeof textData.class !== 'undefined') {
  48743. textElem.attr('class', textData.class);
  48744. }
  48745. const span = textElem.append('tspan');
  48746. span.attr('x', textData.x + textData.textMargin * 2);
  48747. span.attr('fill', textData.fill);
  48748. span.text(nText);
  48749. return textElem;
  48750. };
  48751. const drawLabel = function (elem, txtObject) {
  48752. function genPoints(x, y, width, height, cut) {
  48753. return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);
  48754. }
  48755. const polygon = elem.append('polygon');
  48756. polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));
  48757. polygon.attr('class', 'labelBox');
  48758. txtObject.y = txtObject.y + txtObject.labelMargin;
  48759. txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
  48760. drawText(elem, txtObject);
  48761. };
  48762. let actorCnt = -1;
  48763. /**
  48764. * Draws an actor in the diagram with the attaced line
  48765. * @param center - The center of the the actor
  48766. * @param pos The position if the actor in the liost of actors
  48767. * @param description The text in the box
  48768. */
  48769. const drawActor = function (elem, left, verticalPos, description, conf) {
  48770. const center = left + conf.width / 2;
  48771. const g = elem.append('g');
  48772. if (verticalPos === 0) {
  48773. actorCnt++;
  48774. g.append('line').attr('id', 'actor' + actorCnt).attr('x1', center).attr('y1', 5).attr('x2', center).attr('y2', 2000).attr('class', 'actor-line').attr('stroke-width', '0.5px').attr('stroke', '#999');
  48775. }
  48776. const rect = getNoteRect();
  48777. rect.x = left;
  48778. rect.y = verticalPos;
  48779. rect.fill = '#eaeaea';
  48780. rect.width = conf.width;
  48781. rect.height = conf.height;
  48782. rect.class = 'actor';
  48783. rect.rx = 3;
  48784. rect.ry = 3;
  48785. drawRect(g, rect);
  48786. _drawTextCandidateFunc(conf)(description, g, rect.x, rect.y, rect.width, rect.height, {
  48787. 'class': 'actor'
  48788. }, conf);
  48789. };
  48790. const anchorElement = function (elem) {
  48791. return elem.append('g');
  48792. };
  48793. /**
  48794. * Draws an actor in the diagram with the attaced line
  48795. * @param elem - element to append activation rect
  48796. * @param bounds - activation box bounds
  48797. * @param verticalPos - precise y cooridnate of bottom activation box edge
  48798. */
  48799. const drawActivation = function (elem, bounds, verticalPos, conf, actorActivations) {
  48800. const rect = getNoteRect();
  48801. const g = bounds.anchored;
  48802. rect.x = bounds.startx;
  48803. rect.y = bounds.starty;
  48804. rect.class = 'activation' + actorActivations % 3; // Will evaluate to 0, 1 or 2
  48805. rect.width = bounds.stopx - bounds.startx;
  48806. rect.height = verticalPos - bounds.starty;
  48807. drawRect(g, rect);
  48808. };
  48809. /**
  48810. * Draws an actor in the diagram with the attaced line
  48811. * @param center - The center of the the actor
  48812. * @param pos The position if the actor in the list of actors
  48813. * @param description The text in the box
  48814. */
  48815. const drawLoop = function (elem, bounds, labelText, conf) {
  48816. const g = elem.append('g');
  48817. const drawLoopLine = function (startx, starty, stopx, stopy) {
  48818. return g.append('line').attr('x1', startx).attr('y1', starty).attr('x2', stopx).attr('y2', stopy).attr('class', 'loopLine');
  48819. };
  48820. drawLoopLine(bounds.startx, bounds.starty, bounds.stopx, bounds.starty);
  48821. drawLoopLine(bounds.stopx, bounds.starty, bounds.stopx, bounds.stopy);
  48822. drawLoopLine(bounds.startx, bounds.stopy, bounds.stopx, bounds.stopy);
  48823. drawLoopLine(bounds.startx, bounds.starty, bounds.startx, bounds.stopy);
  48824. if (typeof bounds.sections !== 'undefined') {
  48825. bounds.sections.forEach(function (item) {
  48826. drawLoopLine(bounds.startx, item, bounds.stopx, item).style('stroke-dasharray', '3, 3');
  48827. });
  48828. }
  48829. let txt = getTextObj();
  48830. txt.text = labelText;
  48831. txt.x = bounds.startx;
  48832. txt.y = bounds.starty;
  48833. txt.labelMargin = 1.5 * 10; // This is the small box that says "loop"
  48834. txt.class = 'labelText'; // Its size & position are fixed.
  48835. drawLabel(g, txt);
  48836. txt = getTextObj();
  48837. txt.text = '[ ' + bounds.title + ' ]';
  48838. txt.x = bounds.startx + (bounds.stopx - bounds.startx) / 2;
  48839. txt.y = bounds.starty + 1.5 * conf.boxMargin;
  48840. txt.anchor = 'middle';
  48841. txt.class = 'loopText';
  48842. drawText(g, txt);
  48843. if (typeof bounds.sectionTitles !== 'undefined') {
  48844. bounds.sectionTitles.forEach(function (item, idx) {
  48845. if (item !== '') {
  48846. txt.text = '[ ' + item + ' ]';
  48847. txt.y = bounds.sections[idx] + 1.5 * conf.boxMargin;
  48848. drawText(g, txt);
  48849. }
  48850. });
  48851. }
  48852. };
  48853. /**
  48854. * Draws a background rectangle
  48855. * @param color - The fill color for the background
  48856. */
  48857. const drawBackgroundRect = function (elem, bounds) {
  48858. const rectElem = drawRect(elem, {
  48859. x: bounds.startx,
  48860. y: bounds.starty,
  48861. width: bounds.stopx - bounds.startx,
  48862. height: bounds.stopy - bounds.starty,
  48863. fill: bounds.fill,
  48864. class: 'rect'
  48865. });
  48866. rectElem.lower();
  48867. };
  48868. /**
  48869. * Setup arrow head and define the marker. The result is appended to the svg.
  48870. */
  48871. const insertArrowHead = function (elem) {
  48872. elem.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead
  48873. };
  48874. /**
  48875. * Setup node number. The result is appended to the svg.
  48876. */
  48877. const insertSequenceNumber = function (elem) {
  48878. elem.append('defs').append('marker').attr('id', 'sequencenumber').attr('refX', 15).attr('refY', 15).attr('markerWidth', 60).attr('markerHeight', 40).attr('orient', 'auto').append('circle').attr('cx', 15).attr('cy', 15).attr('r', 6); // .style("fill", '#f00');
  48879. };
  48880. /**
  48881. * Setup arrow head and define the marker. The result is appended to the svg.
  48882. */
  48883. const insertArrowCrossHead = function (elem) {
  48884. const defs = elem.append('defs');
  48885. const marker = defs.append('marker').attr('id', 'crosshead').attr('markerWidth', 15).attr('markerHeight', 8).attr('orient', 'auto').attr('refX', 16).attr('refY', 4); // The arrow
  48886. marker.append('path').attr('fill', 'black').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 9,2 V 6 L16,4 Z'); // The cross
  48887. marker.append('path').attr('fill', 'none').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7'); // this is actual shape for arrowhead
  48888. };
  48889. const getTextObj = function () {
  48890. const txt = {
  48891. x: 0,
  48892. y: 0,
  48893. 'fill': undefined,
  48894. 'text-anchor': 'start',
  48895. style: '#666',
  48896. width: 100,
  48897. height: 100,
  48898. textMargin: 0,
  48899. rx: 0,
  48900. ry: 0
  48901. };
  48902. return txt;
  48903. };
  48904. const getNoteRect = function () {
  48905. const rect = {
  48906. x: 0,
  48907. y: 0,
  48908. fill: '#EDF2AE',
  48909. stroke: '#666',
  48910. width: 100,
  48911. anchor: 'start',
  48912. height: 100,
  48913. rx: 0,
  48914. ry: 0
  48915. };
  48916. return rect;
  48917. };
  48918. const _drawTextCandidateFunc = function () {
  48919. function byText(content, g, x, y, width, height, textAttrs) {
  48920. const text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('text-anchor', 'middle').text(content);
  48921. _setTextAttrs(text, textAttrs);
  48922. }
  48923. function byTspan(content, g, x, y, width, height, textAttrs, conf) {
  48924. const {
  48925. actorFontSize,
  48926. actorFontFamily
  48927. } = conf;
  48928. const lines = content.split(/<br\/?>/ig);
  48929. for (let i = 0; i < lines.length; i++) {
  48930. const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
  48931. const text = g.append('text').attr('x', x + width / 2).attr('y', y).style('text-anchor', 'middle').style('font-size', actorFontSize).style('font-family', actorFontFamily);
  48932. text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);
  48933. text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');
  48934. _setTextAttrs(text, textAttrs);
  48935. }
  48936. }
  48937. function byFo(content, g, x, y, width, height, textAttrs, conf) {
  48938. const s = g.append('switch');
  48939. const f = s.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height);
  48940. const text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');
  48941. text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').text(content);
  48942. byTspan(content, s, x, y, width, height, textAttrs, conf);
  48943. _setTextAttrs(text, textAttrs);
  48944. }
  48945. function _setTextAttrs(toText, fromTextAttrsDict) {
  48946. for (const key in fromTextAttrsDict) {
  48947. if (fromTextAttrsDict.hasOwnProperty(key)) {
  48948. toText.attr(key, fromTextAttrsDict[key]);
  48949. }
  48950. }
  48951. }
  48952. return function (conf) {
  48953. return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;
  48954. };
  48955. }();
  48956. /* harmony default export */ __webpack_exports__["default"] = ({
  48957. drawRect,
  48958. drawText,
  48959. drawLabel,
  48960. drawActor,
  48961. anchorElement,
  48962. drawActivation,
  48963. drawLoop,
  48964. drawBackgroundRect,
  48965. insertArrowHead,
  48966. insertSequenceNumber,
  48967. insertArrowCrossHead,
  48968. getTextObj,
  48969. getNoteRect
  48970. });
  48971. /***/ }),
  48972. /***/ "./src/logger.js":
  48973. /*!***********************!*\
  48974. !*** ./src/logger.js ***!
  48975. \***********************/
  48976. /*! exports provided: LEVELS, logger, setLogLevel */
  48977. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48978. "use strict";
  48979. __webpack_require__.r(__webpack_exports__);
  48980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LEVELS", function() { return LEVELS; });
  48981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logger", function() { return logger; });
  48982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLogLevel", function() { return setLogLevel; });
  48983. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment-mini */ "./node_modules/moment-mini/moment.min.js");
  48984. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment_mini__WEBPACK_IMPORTED_MODULE_0__);
  48985. const LEVELS = {
  48986. debug: 1,
  48987. info: 2,
  48988. warn: 3,
  48989. error: 4,
  48990. fatal: 5
  48991. };
  48992. const logger = {
  48993. debug: () => {},
  48994. info: () => {},
  48995. warn: () => {},
  48996. error: () => {},
  48997. fatal: () => {}
  48998. };
  48999. const setLogLevel = function (level) {
  49000. logger.debug = () => {};
  49001. logger.info = () => {};
  49002. logger.warn = () => {};
  49003. logger.error = () => {};
  49004. logger.fatal = () => {};
  49005. if (level <= LEVELS.fatal) {
  49006. logger.fatal = console.log.bind(console, '\x1b[35m', format('FATAL'));
  49007. }
  49008. if (level <= LEVELS.error) {
  49009. logger.error = console.log.bind(console, '\x1b[31m', format('ERROR'));
  49010. }
  49011. if (level <= LEVELS.warn) {
  49012. logger.warn = console.log.bind(console, `\x1b[33m`, format('WARN'));
  49013. }
  49014. if (level <= LEVELS.info) {
  49015. logger.info = console.log.bind(console, '\x1b[34m', format('INFO'));
  49016. }
  49017. if (level <= LEVELS.debug) {
  49018. logger.debug = console.log.bind(console, '\x1b[32m', format('DEBUG'));
  49019. }
  49020. };
  49021. const format = level => {
  49022. const time = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()().format('HH:mm:ss.SSS');
  49023. return `${time} : ${level} : `;
  49024. };
  49025. /***/ }),
  49026. /***/ "./src/mermaid.js":
  49027. /*!************************!*\
  49028. !*** ./src/mermaid.js ***!
  49029. \************************/
  49030. /*! exports provided: default */
  49031. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49032. "use strict";
  49033. __webpack_require__.r(__webpack_exports__);
  49034. /* harmony import */ var he__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! he */ "./node_modules/he/he.js");
  49035. /* harmony import */ var he__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(he__WEBPACK_IMPORTED_MODULE_0__);
  49036. /* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mermaidAPI */ "./src/mermaidAPI.js");
  49037. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  49038. /**
  49039. * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render
  49040. * the diagrams to svg code.
  49041. */
  49042. /**
  49043. * ## init
  49044. * Function that goes through the document to find the chart definitions in there and render them.
  49045. *
  49046. * The function tags the processed attributes with the attribute data-processed and ignores found elements with the
  49047. * attribute already set. This way the init function can be triggered several times.
  49048. *
  49049. * Optionally, `init` can accept in the second argument one of the following:
  49050. * - a DOM Node
  49051. * - an array of DOM nodes (as would come from a jQuery selector)
  49052. * - a W3C selector, a la `.mermaid`
  49053. *
  49054. * ```mermaid
  49055. * graph LR;
  49056. * a(Find elements)-->b{Processed}
  49057. * b-->|Yes|c(Leave element)
  49058. * b-->|No |d(Transform)
  49059. * ```
  49060. * Renders the mermaid diagrams
  49061. * @param nodes a css selector or an array of nodes
  49062. */
  49063. const init = function () {
  49064. const conf = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig();
  49065. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Starting rendering diagrams');
  49066. let nodes;
  49067. if (arguments.length >= 2) {
  49068. /*! sequence config was passed as #1 */
  49069. if (typeof arguments[0] !== 'undefined') {
  49070. mermaid.sequenceConfig = arguments[0];
  49071. }
  49072. nodes = arguments[1];
  49073. } else {
  49074. nodes = arguments[0];
  49075. } // if last argument is a function this is the callback function
  49076. let callback;
  49077. if (typeof arguments[arguments.length - 1] === 'function') {
  49078. callback = arguments[arguments.length - 1];
  49079. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Callback function found');
  49080. } else {
  49081. if (typeof conf.mermaid !== 'undefined') {
  49082. if (typeof conf.mermaid.callback === 'function') {
  49083. callback = conf.mermaid.callback;
  49084. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Callback function found');
  49085. } else {
  49086. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('No Callback function found');
  49087. }
  49088. }
  49089. }
  49090. nodes = nodes === undefined ? document.querySelectorAll('.mermaid') : typeof nodes === 'string' ? document.querySelectorAll(nodes) : nodes instanceof window.Node ? [nodes] : nodes; // Last case - sequence config was passed pick next
  49091. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Start On Load before: ' + mermaid.startOnLoad);
  49092. if (typeof mermaid.startOnLoad !== 'undefined') {
  49093. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Start On Load inner: ' + mermaid.startOnLoad);
  49094. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({
  49095. startOnLoad: mermaid.startOnLoad
  49096. });
  49097. }
  49098. if (typeof mermaid.ganttConfig !== 'undefined') {
  49099. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({
  49100. gantt: mermaid.ganttConfig
  49101. });
  49102. }
  49103. let txt;
  49104. for (let i = 0; i < nodes.length; i++) {
  49105. const element = nodes[i];
  49106. /*! Check if previously processed */
  49107. if (!element.getAttribute('data-processed')) {
  49108. element.setAttribute('data-processed', true);
  49109. } else {
  49110. continue;
  49111. }
  49112. const id = `mermaid-${Date.now()}`; // Fetch the graph definition including tags
  49113. txt = element.innerHTML; // transforms the html to pure text
  49114. txt = he__WEBPACK_IMPORTED_MODULE_0___default.a.decode(txt).trim().replace(/<br>/ig, '<br/>');
  49115. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].render(id, txt, (svgCode, bindFunctions) => {
  49116. element.innerHTML = svgCode;
  49117. if (typeof callback !== 'undefined') {
  49118. callback(id);
  49119. }
  49120. if (bindFunctions) bindFunctions(element);
  49121. }, element);
  49122. }
  49123. };
  49124. const initialize = function (config) {
  49125. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Initializing mermaid ');
  49126. if (typeof config.mermaid !== 'undefined') {
  49127. if (typeof config.mermaid.startOnLoad !== 'undefined') {
  49128. mermaid.startOnLoad = config.mermaid.startOnLoad;
  49129. }
  49130. if (typeof config.mermaid.htmlLabels !== 'undefined') {
  49131. mermaid.htmlLabels = config.mermaid.htmlLabels;
  49132. }
  49133. }
  49134. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize(config);
  49135. };
  49136. /**
  49137. * ##contentLoaded
  49138. * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and
  49139. * calls init for rendering the mermaid diagrams on the page.
  49140. */
  49141. const contentLoaded = function () {
  49142. let config;
  49143. if (mermaid.startOnLoad) {
  49144. // No config found, do check API config
  49145. config = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig();
  49146. if (config.startOnLoad) {
  49147. mermaid.init();
  49148. }
  49149. } else {
  49150. if (typeof mermaid.startOnLoad === 'undefined') {
  49151. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('In start, no config');
  49152. config = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig();
  49153. if (config.startOnLoad) {
  49154. mermaid.init();
  49155. }
  49156. }
  49157. }
  49158. };
  49159. if (typeof document !== 'undefined') {
  49160. /*!
  49161. * Wait for document loaded before starting the execution
  49162. */
  49163. window.addEventListener('load', function () {
  49164. contentLoaded();
  49165. }, false);
  49166. }
  49167. const mermaid = {
  49168. startOnLoad: true,
  49169. htmlLabels: true,
  49170. mermaidAPI: _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"],
  49171. parse: _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parse,
  49172. render: _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].render,
  49173. init,
  49174. initialize,
  49175. contentLoaded
  49176. };
  49177. /* harmony default export */ __webpack_exports__["default"] = (mermaid);
  49178. /***/ }),
  49179. /***/ "./src/mermaidAPI.js":
  49180. /*!***************************!*\
  49181. !*** ./src/mermaidAPI.js ***!
  49182. \***************************/
  49183. /*! exports provided: encodeEntities, decodeEntities, default */
  49184. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49185. "use strict";
  49186. __webpack_require__.r(__webpack_exports__);
  49187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "encodeEntities", function() { return encodeEntities; });
  49188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decodeEntities", function() { return decodeEntities; });
  49189. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  49190. /* harmony import */ var scope_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! scope-css */ "./node_modules/scope-css/index.js");
  49191. /* harmony import */ var scope_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(scope_css__WEBPACK_IMPORTED_MODULE_1__);
  49192. /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../package.json */ "./package.json");
  49193. var _package_json__WEBPACK_IMPORTED_MODULE_2___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../package.json */ "./package.json", 1);
  49194. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ "./src/config.js");
  49195. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  49196. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
  49197. /* harmony import */ var _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer */ "./src/diagrams/flowchart/flowRenderer.js");
  49198. /* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./diagrams/flowchart/parser/flow */ "./src/diagrams/flowchart/parser/flow.jison");
  49199. /* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7__);
  49200. /* harmony import */ var _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./diagrams/flowchart/flowDb */ "./src/diagrams/flowchart/flowDb.js");
  49201. /* harmony import */ var _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diagrams/sequence/sequenceRenderer */ "./src/diagrams/sequence/sequenceRenderer.js");
  49202. /* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diagrams/sequence/parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison");
  49203. /* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10__);
  49204. /* harmony import */ var _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diagrams/sequence/sequenceDb */ "./src/diagrams/sequence/sequenceDb.js");
  49205. /* harmony import */ var _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diagrams/gantt/ganttRenderer */ "./src/diagrams/gantt/ganttRenderer.js");
  49206. /* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagrams/gantt/parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison");
  49207. /* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13__);
  49208. /* harmony import */ var _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagrams/gantt/ganttDb */ "./src/diagrams/gantt/ganttDb.js");
  49209. /* harmony import */ var _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diagrams/class/classRenderer */ "./src/diagrams/class/classRenderer.js");
  49210. /* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diagrams/class/parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison");
  49211. /* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_16__);
  49212. /* harmony import */ var _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diagrams/class/classDb */ "./src/diagrams/class/classDb.js");
  49213. /* harmony import */ var _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./diagrams/git/gitGraphRenderer */ "./src/diagrams/git/gitGraphRenderer.js");
  49214. /* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./diagrams/git/parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison");
  49215. /* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_19__);
  49216. /* harmony import */ var _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./diagrams/git/gitGraphAst */ "./src/diagrams/git/gitGraphAst.js");
  49217. /* harmony import */ var _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./diagrams/info/infoRenderer */ "./src/diagrams/info/infoRenderer.js");
  49218. /* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./diagrams/info/parser/info */ "./src/diagrams/info/parser/info.jison");
  49219. /* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_22__);
  49220. /* harmony import */ var _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./diagrams/info/infoDb */ "./src/diagrams/info/infoDb.js");
  49221. /**
  49222. * This is the api to be used when handling the integration with the web page instead of using the default integration
  49223. * (mermaid.js).
  49224. *
  49225. * The core of this api is the **render** function that given a graph definitionas text renders the graph/diagram and
  49226. * returns a svg element for the graph. It is is then up to the user of the API to make use of the svg, either insert it
  49227. * somewhere in the page or something completely different.
  49228. * @name mermaidAPI
  49229. */
  49230. const themes = {};
  49231. for (const themeName of ['default', 'forest', 'dark', 'neutral']) {
  49232. themes[themeName] = __webpack_require__("./src/themes sync recursive ^\\.\\/.*\\/index\\.scss$")(`./${themeName}/index.scss`);
  49233. }
  49234. /**
  49235. * These are the default options which can be overridden with the initialization call as in the example below:
  49236. * ```
  49237. * mermaid.initialize({
  49238. * flowchart:{
  49239. * htmlLabels: false
  49240. * }
  49241. * });
  49242. * ```
  49243. * @name Configuration
  49244. */
  49245. const config = {
  49246. /** theme , the CSS style sheet
  49247. *
  49248. * **theme** - Choose one of the built-in themes: default, forest, dark or neutral. To disable any pre-defined mermaid theme, use "null".
  49249. * **themeCSS** - Use your own CSS. This overrides **theme**.
  49250. *```
  49251. * "theme": "forest",
  49252. * "themeCSS": ".node rect { fill: red; }"
  49253. *```
  49254. */
  49255. theme: 'default',
  49256. themeCSS: undefined,
  49257. /**
  49258. * This option decides the amount of logging to be used.
  49259. * * debug: 1
  49260. * * info: 2
  49261. * * warn: 3
  49262. * * error: 4
  49263. * * fatal: (**default**) 5
  49264. */
  49265. logLevel: 5,
  49266. /**
  49267. * Sets the level of trust to be used on the parsed diagrams.
  49268. * * **true**: (**default**) tags in text are encoded, click functionality is disabeled
  49269. * * **false**: tags in text are allowed, click functionality is enabled
  49270. */
  49271. securityLevel: 'strict',
  49272. /**
  49273. * This options controls whether or mermaid starts when the page loads
  49274. * **Default value true**.
  49275. */
  49276. startOnLoad: true,
  49277. /**
  49278. * This options controls whether or arrow markers in html code will be absolute paths or
  49279. * an anchor, #. This matters if you are using base tag settings.
  49280. * **Default value false**.
  49281. */
  49282. arrowMarkerAbsolute: false,
  49283. /**
  49284. * The object containing configurations specific for flowcharts
  49285. */
  49286. flowchart: {
  49287. /**
  49288. * Flag for setting whether or not a html tag should be used for rendering labels
  49289. * on the edges.
  49290. * **Default value true**.
  49291. */
  49292. htmlLabels: true,
  49293. /**
  49294. * How mermaid renders curves for flowcharts. Possibel values are basis, linear and cardinal. **Default value linear**.
  49295. */
  49296. curve: 'linear'
  49297. },
  49298. /**
  49299. * The object containing configurations specific for sequence diagrams
  49300. */
  49301. sequence: {
  49302. /**
  49303. * margin to the right and left of the sequence diagram
  49304. * **Default value 50**.
  49305. */
  49306. diagramMarginX: 50,
  49307. /**
  49308. * margin to the over and under the sequence diagram.
  49309. * **Default value 10**.
  49310. */
  49311. diagramMarginY: 10,
  49312. /**
  49313. * Margin between actors.
  49314. * **Default value 50**.
  49315. */
  49316. actorMargin: 50,
  49317. /**
  49318. * Width of actor boxes
  49319. * **Default value 150**.
  49320. */
  49321. width: 150,
  49322. /**
  49323. * Height of actor boxes
  49324. * **Default value 65**.
  49325. */
  49326. height: 65,
  49327. /**
  49328. * Margin around loop boxes
  49329. * **Default value 10**.
  49330. */
  49331. boxMargin: 10,
  49332. /**
  49333. * margin around the text in loop/alt/opt boxes
  49334. * **Default value 5**.
  49335. */
  49336. boxTextMargin: 5,
  49337. /**
  49338. * margin around notes.
  49339. * **Default value 10**.
  49340. */
  49341. noteMargin: 10,
  49342. /**
  49343. * Space between messages.
  49344. * **Default value 35**.
  49345. */
  49346. messageMargin: 35,
  49347. /**
  49348. * mirror actors under diagram.
  49349. * **Default value true**.
  49350. */
  49351. mirrorActors: true,
  49352. /**
  49353. * Depending on css styling this might need adjustment.
  49354. * Prolongs the edge of the diagram downwards.
  49355. * **Default value 1**.
  49356. */
  49357. bottomMarginAdj: 1,
  49358. /**
  49359. * when this flag is set the height and width is set to 100% and is then scaling with the
  49360. * available space if not the absolute space required is used.
  49361. * **Default value true**.
  49362. */
  49363. useMaxWidth: true,
  49364. /**
  49365. * This will display arrows that start and begin at the same node as right angles, rather than a curve
  49366. * **Default value false**.
  49367. */
  49368. rightAngles: false,
  49369. /**
  49370. * This will show the node numbers
  49371. * **Default value false**.
  49372. */
  49373. showSequenceNumbers: false
  49374. },
  49375. /**
  49376. * The object containing configurations specific for gantt diagrams*
  49377. */
  49378. gantt: {
  49379. /**
  49380. * Margin top for the text over the gantt diagram
  49381. * **Default value 25**.
  49382. */
  49383. titleTopMargin: 25,
  49384. /**
  49385. * The height of the bars in the graph
  49386. * **Default value 20**.
  49387. */
  49388. barHeight: 20,
  49389. /**
  49390. * The margin between the different activities in the gantt diagram.
  49391. * **Default value 4**.
  49392. */
  49393. barGap: 4,
  49394. /**
  49395. * Margin between title and gantt diagram and between axis and gantt diagram.
  49396. * **Default value 50**.
  49397. */
  49398. topPadding: 50,
  49399. /**
  49400. * The space allocated for the section name to the left of the activities.
  49401. * **Default value 75**.
  49402. */
  49403. leftPadding: 75,
  49404. /**
  49405. * Vertical starting position of the grid lines.
  49406. * **Default value 35**.
  49407. */
  49408. gridLineStartPadding: 35,
  49409. /**
  49410. * Font size ...
  49411. * **Default value 11**.
  49412. */
  49413. fontSize: 11,
  49414. /**
  49415. * font family ...
  49416. * **Default value '"Open-Sans", "sans-serif"'**.
  49417. */
  49418. fontFamily: '"Open-Sans", "sans-serif"',
  49419. /**
  49420. * The number of alternating section styles.
  49421. * **Default value 4**.
  49422. */
  49423. numberSectionStyles: 4,
  49424. /**
  49425. * Datetime format of the axis, this might need adjustment to match your locale and preferences
  49426. * **Default value '%Y-%m-%d'**.
  49427. */
  49428. axisFormat: '%Y-%m-%d'
  49429. },
  49430. class: {},
  49431. git: {}
  49432. };
  49433. Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel);
  49434. Object(_config__WEBPACK_IMPORTED_MODULE_3__["setConfig"])(config);
  49435. function parse(text) {
  49436. const graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(text);
  49437. let parser;
  49438. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Type ' + graphType);
  49439. switch (graphType) {
  49440. case 'git':
  49441. parser = _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_19___default.a;
  49442. parser.parser.yy = _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_20__["default"];
  49443. break;
  49444. case 'flowchart':
  49445. parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default.a;
  49446. parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"];
  49447. break;
  49448. case 'sequence':
  49449. parser = _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10___default.a;
  49450. parser.parser.yy = _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_11__["default"];
  49451. break;
  49452. case 'gantt':
  49453. parser = _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13___default.a;
  49454. parser.parser.yy = _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__["default"];
  49455. break;
  49456. case 'class':
  49457. parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_16___default.a;
  49458. parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_17__["default"];
  49459. break;
  49460. case 'info':
  49461. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('info info info');
  49462. console.warn('In API', _package_json__WEBPACK_IMPORTED_MODULE_2__.version);
  49463. parser = _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_22___default.a;
  49464. parser.parser.yy = _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_23__["default"];
  49465. break;
  49466. }
  49467. parser.parser.yy.parseError = (str, hash) => {
  49468. const error = {
  49469. str,
  49470. hash
  49471. };
  49472. throw error;
  49473. };
  49474. parser.parse(text);
  49475. }
  49476. const encodeEntities = function (text) {
  49477. let txt = text;
  49478. txt = txt.replace(/style.*:\S*#.*;/g, function (s) {
  49479. const innerTxt = s.substring(0, s.length - 1);
  49480. return innerTxt;
  49481. });
  49482. txt = txt.replace(/classDef.*:\S*#.*;/g, function (s) {
  49483. const innerTxt = s.substring(0, s.length - 1);
  49484. return innerTxt;
  49485. });
  49486. txt = txt.replace(/#\w+;/g, function (s) {
  49487. const innerTxt = s.substring(1, s.length - 1);
  49488. const isInt = /^\+?\d+$/.test(innerTxt);
  49489. if (isInt) {
  49490. return 'fl°°' + innerTxt + '¶ß';
  49491. } else {
  49492. return 'fl°' + innerTxt + '¶ß';
  49493. }
  49494. });
  49495. return txt;
  49496. };
  49497. const decodeEntities = function (text) {
  49498. let txt = text;
  49499. txt = txt.replace(/fl°°/g, function () {
  49500. return '&#';
  49501. });
  49502. txt = txt.replace(/fl°/g, function () {
  49503. return '&';
  49504. });
  49505. txt = txt.replace(/¶ß/g, function () {
  49506. return ';';
  49507. });
  49508. return txt;
  49509. };
  49510. /**
  49511. * Function that renders an svg with a graph from a chart definition. Usage example below.
  49512. *
  49513. * ```js
  49514. * mermaidAPI.initialize({
  49515. * startOnLoad:true
  49516. * });
  49517. * $(function(){
  49518. * const graphDefinition = 'graph TB\na-->b';
  49519. * const cb = function(svgGraph){
  49520. * console.log(svgGraph);
  49521. * };
  49522. * mermaidAPI.render('id1',graphDefinition,cb);
  49523. * });
  49524. *```
  49525. * @param id the id of the element to be rendered
  49526. * @param txt the graph definition
  49527. * @param cb callback which is called after rendering is finished with the svg code as inparam.
  49528. * @param container selector to element in which a div with the graph temporarily will be inserted. In one is
  49529. * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is
  49530. * completed.
  49531. */
  49532. const render = function (id, txt, cb, container) {
  49533. if (typeof container !== 'undefined') {
  49534. container.innerHTML = '';
  49535. d3__WEBPACK_IMPORTED_MODULE_0__["select"](container).append('div').attr('id', 'd' + id).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');
  49536. } else {
  49537. const element = document.querySelector('#' + 'd' + id);
  49538. if (element) {
  49539. element.innerHTML = '';
  49540. }
  49541. d3__WEBPACK_IMPORTED_MODULE_0__["select"]('body').append('div').attr('id', 'd' + id).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');
  49542. }
  49543. window.txt = txt;
  49544. txt = encodeEntities(txt);
  49545. const element = d3__WEBPACK_IMPORTED_MODULE_0__["select"]('#d' + id).node();
  49546. const graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(txt); // insert inline style into svg
  49547. const svg = element.firstChild;
  49548. const firstChild = svg.firstChild; // pre-defined theme
  49549. let style = themes[config.theme];
  49550. if (style === undefined) {
  49551. style = '';
  49552. } // user provided theme CSS
  49553. if (config.themeCSS !== undefined) {
  49554. style += `\n${config.themeCSS}`;
  49555. } // classDef
  49556. if (graphType === 'flowchart') {
  49557. const classes = _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].getClasses(txt);
  49558. for (const className in classes) {
  49559. style += `\n.${className} > * { ${classes[className].styles.join(' !important; ')} !important; }`;
  49560. }
  49561. }
  49562. const style1 = document.createElement('style');
  49563. style1.innerHTML = scope_css__WEBPACK_IMPORTED_MODULE_1___default()(style, `#${id}`);
  49564. svg.insertBefore(style1, firstChild);
  49565. const style2 = document.createElement('style');
  49566. const cs = window.getComputedStyle(svg);
  49567. style2.innerHTML = `#${id} {
  49568. color: ${cs.color};
  49569. font: ${cs.font};
  49570. }`;
  49571. svg.insertBefore(style2, firstChild);
  49572. switch (graphType) {
  49573. case 'git':
  49574. config.flowchart.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  49575. _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_18__["default"].setConf(config.git);
  49576. _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_18__["default"].draw(txt, id, false);
  49577. break;
  49578. case 'flowchart':
  49579. config.flowchart.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  49580. _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(config.flowchart);
  49581. _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].draw(txt, id, false);
  49582. break;
  49583. case 'sequence':
  49584. config.sequence.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  49585. if (config.sequenceDiagram) {
  49586. // backwards compatibility
  49587. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(Object.assign(config.sequence, config.sequenceDiagram));
  49588. console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.');
  49589. } else {
  49590. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(config.sequence);
  49591. }
  49592. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].draw(txt, id);
  49593. break;
  49594. case 'gantt':
  49595. config.gantt.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  49596. _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].setConf(config.gantt);
  49597. _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].draw(txt, id);
  49598. break;
  49599. case 'class':
  49600. config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  49601. _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].setConf(config.class);
  49602. _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].draw(txt, id);
  49603. break;
  49604. case 'info':
  49605. config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  49606. _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_21__["default"].setConf(config.class);
  49607. _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_21__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version);
  49608. break;
  49609. }
  49610. d3__WEBPACK_IMPORTED_MODULE_0__["select"](`[id="${id}"]`).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml');
  49611. let url = '';
  49612. if (config.arrowMarkerAbsolute) {
  49613. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  49614. url = url.replace(/\(/g, '\\(');
  49615. url = url.replace(/\)/g, '\\)');
  49616. } // Fix for when the base tag is used
  49617. let svgCode = d3__WEBPACK_IMPORTED_MODULE_0__["select"]('#d' + id).node().innerHTML.replace(/url\(#arrowhead/g, 'url(' + url + '#arrowhead', 'g');
  49618. svgCode = decodeEntities(svgCode);
  49619. if (typeof cb !== 'undefined') {
  49620. switch (graphType) {
  49621. case 'flowchart':
  49622. cb(svgCode, _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"].bindFunctions);
  49623. break;
  49624. case 'gantt':
  49625. cb(svgCode, _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__["default"].bindFunctions);
  49626. break;
  49627. default:
  49628. cb(svgCode);
  49629. }
  49630. } else {
  49631. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('CB = undefined!');
  49632. }
  49633. const node = d3__WEBPACK_IMPORTED_MODULE_0__["select"]('#d' + id).node();
  49634. if (node !== null && typeof node.remove === 'function') {
  49635. d3__WEBPACK_IMPORTED_MODULE_0__["select"]('#d' + id).node().remove();
  49636. }
  49637. return svgCode;
  49638. };
  49639. const setConf = function (cnf) {
  49640. // Top level initially mermaid, gflow, sequenceDiagram and gantt
  49641. const lvl1Keys = Object.keys(cnf);
  49642. for (let i = 0; i < lvl1Keys.length; i++) {
  49643. if (typeof cnf[lvl1Keys[i]] === 'object' && cnf[lvl1Keys[i]] != null) {
  49644. const lvl2Keys = Object.keys(cnf[lvl1Keys[i]]);
  49645. for (let j = 0; j < lvl2Keys.length; j++) {
  49646. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Setting conf ', lvl1Keys[i], '-', lvl2Keys[j]);
  49647. if (typeof config[lvl1Keys[i]] === 'undefined') {
  49648. config[lvl1Keys[i]] = {};
  49649. }
  49650. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Setting config: ' + lvl1Keys[i] + ' ' + lvl2Keys[j] + ' to ' + cnf[lvl1Keys[i]][lvl2Keys[j]]);
  49651. config[lvl1Keys[i]][lvl2Keys[j]] = cnf[lvl1Keys[i]][lvl2Keys[j]];
  49652. }
  49653. } else {
  49654. config[lvl1Keys[i]] = cnf[lvl1Keys[i]];
  49655. }
  49656. }
  49657. };
  49658. function initialize(options) {
  49659. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Initializing mermaidAPI ', _package_json__WEBPACK_IMPORTED_MODULE_2__.version); // Update default config with options supplied at initialization
  49660. if (typeof options === 'object') {
  49661. setConf(options);
  49662. }
  49663. Object(_config__WEBPACK_IMPORTED_MODULE_3__["setConfig"])(config);
  49664. Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel);
  49665. } // function getConfig () {
  49666. // console.warn('get config')
  49667. // return config
  49668. // }
  49669. const mermaidAPI = {
  49670. render,
  49671. parse,
  49672. initialize,
  49673. getConfig: _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]
  49674. };
  49675. /* harmony default export */ __webpack_exports__["default"] = (mermaidAPI);
  49676. /***/ }),
  49677. /***/ "./src/themes sync recursive ^\\.\\/.*\\/index\\.scss$":
  49678. /*!***********************************************!*\
  49679. !*** ./src/themes sync ^\.\/.*\/index\.scss$ ***!
  49680. \***********************************************/
  49681. /*! no static exports found */
  49682. /***/ (function(module, exports, __webpack_require__) {
  49683. var map = {
  49684. "./dark/index.scss": "./src/themes/dark/index.scss",
  49685. "./default/index.scss": "./src/themes/default/index.scss",
  49686. "./forest/index.scss": "./src/themes/forest/index.scss",
  49687. "./neutral/index.scss": "./src/themes/neutral/index.scss"
  49688. };
  49689. function webpackContext(req) {
  49690. var id = webpackContextResolve(req);
  49691. return __webpack_require__(id);
  49692. }
  49693. function webpackContextResolve(req) {
  49694. var id = map[req];
  49695. if(!(id + 1)) { // check for number or string
  49696. var e = new Error("Cannot find module '" + req + "'");
  49697. e.code = 'MODULE_NOT_FOUND';
  49698. throw e;
  49699. }
  49700. return id;
  49701. }
  49702. webpackContext.keys = function webpackContextKeys() {
  49703. return Object.keys(map);
  49704. };
  49705. webpackContext.resolve = webpackContextResolve;
  49706. module.exports = webpackContext;
  49707. webpackContext.id = "./src/themes sync recursive ^\\.\\/.*\\/index\\.scss$";
  49708. /***/ }),
  49709. /***/ "./src/themes/dark/index.scss":
  49710. /*!************************************!*\
  49711. !*** ./src/themes/dark/index.scss ***!
  49712. \************************************/
  49713. /*! no static exports found */
  49714. /***/ (function(module, exports, __webpack_require__) {
  49715. // css-to-string-loader: transforms styles from css-loader to a string output
  49716. // Get the styles
  49717. var styles = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/lib/loader.js!./index.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/dark/index.scss");
  49718. if (typeof styles === 'string') {
  49719. // Return an existing string
  49720. module.exports = styles;
  49721. } else {
  49722. // Call the custom toString method from css-loader module
  49723. module.exports = styles.toString();
  49724. }
  49725. /***/ }),
  49726. /***/ "./src/themes/default/index.scss":
  49727. /*!***************************************!*\
  49728. !*** ./src/themes/default/index.scss ***!
  49729. \***************************************/
  49730. /*! no static exports found */
  49731. /***/ (function(module, exports, __webpack_require__) {
  49732. // css-to-string-loader: transforms styles from css-loader to a string output
  49733. // Get the styles
  49734. var styles = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/lib/loader.js!./index.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/default/index.scss");
  49735. if (typeof styles === 'string') {
  49736. // Return an existing string
  49737. module.exports = styles;
  49738. } else {
  49739. // Call the custom toString method from css-loader module
  49740. module.exports = styles.toString();
  49741. }
  49742. /***/ }),
  49743. /***/ "./src/themes/forest/index.scss":
  49744. /*!**************************************!*\
  49745. !*** ./src/themes/forest/index.scss ***!
  49746. \**************************************/
  49747. /*! no static exports found */
  49748. /***/ (function(module, exports, __webpack_require__) {
  49749. // css-to-string-loader: transforms styles from css-loader to a string output
  49750. // Get the styles
  49751. var styles = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/lib/loader.js!./index.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/forest/index.scss");
  49752. if (typeof styles === 'string') {
  49753. // Return an existing string
  49754. module.exports = styles;
  49755. } else {
  49756. // Call the custom toString method from css-loader module
  49757. module.exports = styles.toString();
  49758. }
  49759. /***/ }),
  49760. /***/ "./src/themes/neutral/index.scss":
  49761. /*!***************************************!*\
  49762. !*** ./src/themes/neutral/index.scss ***!
  49763. \***************************************/
  49764. /*! no static exports found */
  49765. /***/ (function(module, exports, __webpack_require__) {
  49766. // css-to-string-loader: transforms styles from css-loader to a string output
  49767. // Get the styles
  49768. var styles = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/lib/loader.js!./index.scss */ "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/themes/neutral/index.scss");
  49769. if (typeof styles === 'string') {
  49770. // Return an existing string
  49771. module.exports = styles;
  49772. } else {
  49773. // Call the custom toString method from css-loader module
  49774. module.exports = styles.toString();
  49775. }
  49776. /***/ }),
  49777. /***/ "./src/utils.js":
  49778. /*!**********************!*\
  49779. !*** ./src/utils.js ***!
  49780. \**********************/
  49781. /*! exports provided: detectType, isSubstringInArray, interpolateToCurve, default */
  49782. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49783. "use strict";
  49784. __webpack_require__.r(__webpack_exports__);
  49785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectType", function() { return detectType; });
  49786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSubstringInArray", function() { return isSubstringInArray; });
  49787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateToCurve", function() { return interpolateToCurve; });
  49788. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  49789. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  49790. /**
  49791. * @function detectType
  49792. * Detects the type of the graph text.
  49793. * ```mermaid
  49794. * graph LR
  49795. * a-->b
  49796. * b-->c
  49797. * c-->d
  49798. * d-->e
  49799. * e-->f
  49800. * f-->g
  49801. * g-->h
  49802. * ```
  49803. *
  49804. * @param {string} text The text defining the graph
  49805. * @returns {string} A graph definition key
  49806. */
  49807. const detectType = function (text) {
  49808. text = text.replace(/^\s*%%.*\n/g, '\n');
  49809. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('Detecting diagram type based on the text ' + text);
  49810. if (text.match(/^\s*sequenceDiagram/)) {
  49811. return 'sequence';
  49812. }
  49813. if (text.match(/^\s*gantt/)) {
  49814. return 'gantt';
  49815. }
  49816. if (text.match(/^\s*classDiagram/)) {
  49817. return 'class';
  49818. }
  49819. if (text.match(/^\s*gitGraph/)) {
  49820. return 'git';
  49821. }
  49822. if (text.match(/^\s*info/)) {
  49823. return 'info';
  49824. }
  49825. return 'flowchart';
  49826. };
  49827. /**
  49828. * @function isSubstringInArray
  49829. * Detects whether a substring in present in a given array
  49830. * @param {string} str The substring to detect
  49831. * @param {array} arr The array to search
  49832. * @returns {number} the array index containing the substring or -1 if not present
  49833. **/
  49834. const isSubstringInArray = function (str, arr) {
  49835. for (let i = 0; i < arr.length; i++) {
  49836. if (arr[i].match(str)) return i;
  49837. }
  49838. return -1;
  49839. };
  49840. const interpolateToCurve = (interpolate, defaultCurve) => {
  49841. if (!interpolate) {
  49842. return defaultCurve;
  49843. }
  49844. const curveName = `curve${interpolate.charAt(0).toUpperCase() + interpolate.slice(1)}`;
  49845. return d3__WEBPACK_IMPORTED_MODULE_0__[curveName] || defaultCurve;
  49846. };
  49847. /* harmony default export */ __webpack_exports__["default"] = ({
  49848. detectType,
  49849. isSubstringInArray,
  49850. interpolateToCurve
  49851. });
  49852. /***/ })
  49853. /******/ })["default"];
  49854. });
  49855. //# sourceMappingURL=mermaid.js.map